public function toObject($dbObject = null, $skip = array()) { if (!$dbObject) { $dbObject = new kEventObjectChangedCondition(); } return parent::toObject($dbObject, $skip); }
public function toObject($dbObject = null, $skip = array()) { if (!$dbObject) { $dbObject = new kValidateActiveEdgeCondition(); } return parent::toObject($dbObject, $skip); }
public function toObject($dbObject = null, $skip = array()) { if (!$dbObject) { $dbObject = new kUserRoleCondition(); } return parent::toObject($dbObject, $skip); }
public function toObject($dbObject = null, $skip = array()) { if (!$dbObject) { $dbObject = new kDeliveryProfileCondition(); } return parent::toObject($dbObject, $skip); }
public function toObject($dbObject = null, $skip = array()) { if (!$dbObject) { $dbObject = new kAuthenticatedCondition(); } return parent::toObject($dbObject, $skip); }
public function doFromObject($dbObject, KalturaDetachedResponseProfile $responseProfile = null) { /** @var $dbObject kAssetPropertiesCompareCondition */ parent::doFromObject($dbObject, $responseProfile); if ($this->shouldGet('properties', $responseProfile)) { $this->properties = KalturaKeyValueArray::fromKeyValueArray($dbObject->getProperties()); } }
public function doFromObject($dbObject, KalturaDetachedResponseProfile $responseProfile = null) { /* @var $dbObject kEventFieldCondition */ parent::doFromObject($dbObject, $responseProfile); $fieldType = get_class($dbObject->getField()); KalturaLog::debug("Loading KalturaBooleanField from type [{$fieldType}]"); switch ($fieldType) { case 'kEvalBooleanField': $this->field = new KalturaEvalBooleanField(); break; default: $this->field = KalturaPluginManager::loadObject('KalturaBooleanField', $fieldType); break; } if ($this->field) { $this->field->fromObject($dbObject->getField()); } }
public function doFromObject($dbObject, KalturaDetachedResponseProfile $responseProfile = null) { /* @var $dbObject kFieldMatchCondition */ parent::doFromObject($dbObject, $responseProfile); $valueType = get_class($dbObject->getValue()); KalturaLog::debug("Loading KalturaIntegerValue from type [{$valueType}]"); switch ($valueType) { case 'kIntegerValue': $this->value = new KalturaIntegerValue(); break; case 'kTimeContextField': $this->value = new KalturaTimeContextField(); break; default: $this->value = KalturaPluginManager::loadObject('KalturaIntegerValue', $valueType); break; } if ($this->value) { $this->value->fromObject($dbObject->getValue()); } }
public function getMapBetweenObjects() { return array_merge(parent::getMapBetweenObjects(), self::$mapBetweenObjects); }