Skip to content

Commit

Permalink
Allow remove video from usergroup
Browse files Browse the repository at this point in the history
  • Loading branch information
DanieL authored and DanieL committed Nov 1, 2022
1 parent 6d48ff5 commit 9bf63db
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions objects/video.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@ class Video extends ObjectYPT {
protected $users_id_company;
protected $created;
protected $epg_link;
protected $publish_datetime;
protected $notification_datetime;
public static $statusDesc = [
'a' => 'Active',
'k' => 'Active and Encoding',
Expand Down Expand Up @@ -126,6 +128,22 @@ public function __construct($title = "", $filename = "", $id = 0) {
}
}

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;
}
Expand Down Expand Up @@ -434,6 +452,12 @@ public function save($updateVideoGroups = false, $allowOfflineUser = false) {
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);

Expand Down

0 comments on commit 9bf63db

Please sign in to comment.