コード例 #1
0
ファイル: array.php プロジェクト: ortodesign/cms
 public function onRemoveDocument(DataSource_Hybrid_Document $doc)
 {
     $ids = explode(',', $doc->get($this->name));
     $this->delete_related_docs($doc->id);
     if ($this->one_to_many and !empty($ids)) {
         DataSource_Hybrid_Factory::remove_documents($ids);
     }
 }
コード例 #2
0
ファイル: hybrid.php プロジェクト: ZerGabriel/cms-1
 /**
  * Удаление раздела
  * 
  * @return \DataSource_Hybrid_Section
  */
 public function remove()
 {
     $id = $this->id();
     parent::remove();
     $this->record()->destroy();
     DataSource_Hybrid_Factory::remove($id);
     $this->_record = NULL;
     $this->_agent = NULL;
     return $this;
 }
コード例 #3
0
ファイル: document.php プロジェクト: ortodesign/cms
 public function onRemoveDocument(DataSource_Hybrid_Document $doc)
 {
     if ($this->one_to_one) {
         DataSource_Hybrid_Factory::remove_documents($doc->get($this->name));
     }
 }