1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-03 01:39:24 +02:00

Allow remove video from usergroup

This commit is contained in:
DanieL 2022-11-01 14:16:40 -03:00
parent 6d48ff55cf
commit 9bf63db499

View file

@ -65,6 +65,8 @@ if (!class_exists('Video')) {
protected $users_id_company;
protected $created;
protected $epg_link;
protected $publish_datetime;
protected $notification_datetime;
public static $statusDesc = [
'a' => 'Active',
'k' => 'Active and Encoding',
@ -126,6 +128,22 @@ if (!class_exists('Video')) {
}
}
public function getPublish_datetime() {
return $this->publish_datetime;
}
public function getNotification_datetime() {
return $this->notification_datetime;
}
public function setPublish_datetime($publish_datetime): void {
$this->publish_datetime = $publish_datetime;
}
public function setNotification_datetime($notification_datetime): void {
$this->notification_datetime = $notification_datetime;
}
public function getCreated() {
return $this->created;
}
@ -434,6 +452,12 @@ if (!class_exists('Video')) {
if (empty($this->live_transmitions_history_id)) {
$this->live_transmitions_history_id = 'NULL';
}
if (empty($this->publish_datetime)) {
$this->publish_datetime = 'NULL';
}
if (empty($this->notification_datetime)) {
$this->notification_datetime = 'NULL';
}
$this->duration = self::getCleanDuration($this->duration);