コード例 #1
0
 public function toObject($dbObject = null, $skip = array())
 {
     if (!$dbObject) {
         $dbObject = new kCompareMetadataCondition();
     }
     return parent::toObject($dbObject, $skip);
 }
 public function toObject($dbObject = null, $skip = array())
 {
     $this->validatePropertyNotNull('xPath');
     $this->validatePropertyNotNull('profileId');
     if (!$dbObject) {
         $dbObject = new kCompareMetadataCondition();
     }
     return parent::toObject($dbObject, $skip);
 }
コード例 #3
0
 public function doFromObject($dbObject, KalturaDetachedResponseProfile $responseProfile = null)
 {
     /* @var $dbObject kFieldMatchCondition */
     parent::doFromObject($dbObject, $responseProfile);
     $fieldType = get_class($dbObject->getField());
     KalturaLog::debug("Loading KalturaIntegerField from type [{$fieldType}]");
     switch ($fieldType) {
         case 'kTimeContextField':
             $this->field = new KalturaTimeContextField();
             break;
         default:
             $this->field = KalturaPluginManager::loadObject('KalturaIntegerField', $fieldType);
             break;
     }
     if ($this->field) {
         $this->field->fromObject($dbObject->getField());
     }
 }