コード例 #1
0
 public function toInsertableObject($object_to_fill = null, $props_to_skip = array())
 {
     if (is_null($this->slugRegex)) {
         $this->slugRegex = kDropFolderEventsConsumer::DEFAULT_SLUG_REGEX;
     }
     return parent::toInsertableObject($object_to_fill, $props_to_skip);
 }
コード例 #2
0
ファイル: KalturaDropFolder.php プロジェクト: DBezemer/server
 public function toInsertableObject($object_to_fill = null, $props_to_skip = array())
 {
     $this->validateForInsert($props_to_skip);
     // will check that not insertable properties are not set
     $this->fileHandlerConfig->validateForInsert();
     $result = $this->toObject($object_to_fill, $props_to_skip);
     if (!is_null($this->fileHandlerConfig)) {
         $dbInsertedHandlerConfig = $this->fileHandlerConfig->toInsertableObject();
         $result->setFileHandlerConfig($dbInsertedHandlerConfig);
     }
     return $result;
 }