public function toObject($object_to_fill = null, $props_to_skip = array()) { //No need to add objectId to result with status ERROR if ($this->status != KalturaBulkUploadResultStatus::ERROR) { $kuser = kuserPeer::getKuserByPartnerAndUid($this->partnerId, $this->userId); if (!$kuser) { throw new KalturaAPIException(KalturaErrors::INVALID_USER_ID); } $categoryKuser = categoryKuserPeer::retrieveByCategoryIdAndKuserId($this->categoryId, $kuser->getId()); if ($categoryKuser) { $this->objectId = $categoryKuser->getId(); } } return parent::toObject($object_to_fill, $props_to_skip); }
public function toObject($object_to_fill = null, $props_to_skip = array()) { if (!is_numeric($this->objectId)) { $kuser = kuserPeer::getKuserByPartnerAndUid($this->partnerId, $this->userId); if ($kuser) { $this->objectId = $kuser->getId(); } } return parent::toObject($object_to_fill, $props_to_skip); }
public function toObject($object_to_fill = null, $props_to_skip = array()) { if ($this->entryId) { $this->objectId = $this->entryId; } if ($this->entryStatus) { $this->objectStatus = $this->entryStatus; } return parent::toObject($object_to_fill, $props_to_skip); }