public function fromObject($sourceObject)
 {
     if (!$sourceObject) {
         return;
     }
     parent::fromObject($sourceObject);
     $entryFilter = $sourceObject->getEntryFilterObject();
     if ($entryFilter) {
         $this->entryFilter = new KalturaBaseEntryFilter();
         $this->entryFilter->fromObject($entryFilter);
     }
 }
 public function doFromObject($sourceObject, KalturaDetachedResponseProfile $responseProfile = null)
 {
     if (!$sourceObject) {
         return;
     }
     parent::doFromObject($sourceObject, $responseProfile);
     if ($this->shouldGet('entryFilter', $responseProfile)) {
         $entryFilter = $sourceObject->getEntryFilterObject();
         if ($entryFilter) {
             $this->entryFilter = new KalturaBaseEntryFilter();
             $this->entryFilter->fromObject($entryFilter);
         }
     }
 }
 public function doFromObject($source_object, KalturaDetachedResponseProfile $responseProfile = null)
 {
     parent::doFromObject($source_object, $responseProfile);
     $permissions = PermissionPeer::retrievePartnerLevelPermissions($source_object->getId());
     $this->permissions = KalturaPermissionArray::fromDbArray($permissions);
     $this->limits = KalturaSystemPartnerLimitArray::fromPartner($source_object);
     $this->restrictEntryByMetadata = $source_object->getShouldApplyAccessControlOnEntryMetadata();
     $dbAutoModerationEntryFilter = $source_object->getAutoModerateEntryFilter();
     if ($dbAutoModerationEntryFilter) {
         $this->autoModerateEntryFilter = new KalturaBaseEntryFilter();
         $this->autoModerateEntryFilter->fromObject($dbAutoModerationEntryFilter);
     }
     $this->partnerName = kString::stripUtf8InvalidChars($this->partnerName);
     $this->description = kString::stripUtf8InvalidChars($this->description);
     $this->adminName = kString::stripUtf8InvalidChars($this->adminName);
     if ($this->deliveryProfileIds) {
         $this->deliveryProfileIds = json_encode($this->deliveryProfileIds);
     }
 }
 public function fromObject($source_object)
 {
     parent::fromObject($source_object);
     $permissions = PermissionPeer::retrievePartnerLevelPermissions($source_object->getId());
     $this->permissions = KalturaPermissionArray::fromDbArray($permissions);
     $this->limits = KalturaSystemPartnerLimitArray::fromPartner($source_object);
     $dbAutoModerationEntryFilter = $source_object->getAutoModerateEntryFilter();
     if ($dbAutoModerationEntryFilter) {
         $this->autoModerateEntryFilter = new KalturaBaseEntryFilter();
         $this->autoModerateEntryFilter->fromObject($dbAutoModerationEntryFilter);
     }
     $this->partnerName = kString::stripUtf8InvalidChars($this->partnerName);
     $this->description = kString::stripUtf8InvalidChars($this->description);
     $this->adminName = kString::stripUtf8InvalidChars($this->adminName);
 }