public function toObject($dbObject = null, $propertiesToSkip = array()) { if (is_null($dbObject)) { $dbObject = new kHttpNotificationDataText(); } return parent::toObject($dbObject, $propertiesToSkip); }
public function toObject($dbObject = null, $skip = array()) { if (!$this->apiObjectType || !is_subclass_of($this->apiObjectType, 'KalturaObject')) { throw new KalturaAPIException(KalturaHttpNotificationErrors::HTTP_NOTIFICATION_INVALID_OBJECT_TYPE); } if (!$dbObject) { $dbObject = new kHttpNotificationObjectData(); } return parent::toObject($dbObject, $skip); }