コード例 #1
0
ファイル: block.php プロジェクト: vosaan/ankor.local
 /**
  * @see parent::drop()
  */
 public function drop()
 {
     if (parent::drop()) {
         File::detach($this);
         return true;
     }
     return false;
 }
コード例 #2
0
ファイル: user.php プロジェクト: vosaan/ankor.local
 /**
  * @see parent::drop()
  */
 public function drop()
 {
     if (parent::drop()) {
         $Row = $this->getSessionRow();
         $Row->dropList(array('UserId = ' . $this->Id));
         return true;
     }
     return false;
 }
コード例 #3
0
ファイル: order.php プロジェクト: vosaan/ankor.local
 /**
  * @see parent::drop()
  */
 public function drop()
 {
     if (parent::drop()) {
         $Row = new Order_Row($this);
         $Row->dropList(array('OrderId = ' . $this->Id));
         return true;
     }
     return false;
 }
コード例 #4
0
ファイル: proud.php プロジェクト: vosaan/ankor.local
 /**
  * @see parent::drop()
  */
 public function drop()
 {
     if (parent::drop()) {
         File::detach($this);
         $Document = new Proud_Document();
         foreach ($Document->findList(array('ProudId = ' . $this->Id)) as $Document) {
             $Document->drop();
         }
         $Example = new Proud_Example();
         foreach ($Example->findList(array('ProudId = ' . $this->Id)) as $Example) {
             $Example->drop();
         }
         $Image = new Proud_Image();
         foreach ($Image->findList(array('ProudId = ' . $this->Id)) as $Image) {
             $Image->drop();
         }
         $Model = new Proud_Model();
         foreach ($Model->findList(array('ProudId = ' . $this->Id)) as $Model) {
             $Model->drop();
         }
         $Unit = new Proud_Unit();
         foreach ($Unit->findList(array('ProudId = ' . $this->Id)) as $Unit) {
             $Unit->drop();
         }
         return true;
     }
     return false;
 }
コード例 #5
0
ファイル: gallery.php プロジェクト: vosaan/ankor.local
 /**
  * @see parent::drop()
  */
 public function drop()
 {
     if (parent::drop()) {
         File::detach($this);
         foreach ($this->getItems() as $Item) {
             $Item->drop();
         }
         return true;
     }
     return false;
 }
コード例 #6
0
ファイル: article.php プロジェクト: vosaan/ankor.local
 /**
  * @see parent::drop()
  */
 public function drop()
 {
     if (parent::drop()) {
         File::detach($this);
         $Tag = new Article_Tag();
         $Tag->dropList(array('ArticleId = ' . $this->Id));
         return true;
     }
     return false;
 }
コード例 #7
0
ファイル: page.php プロジェクト: vosaan/ankor.local
 /**
  * @see parent::drop()
  */
 public function drop()
 {
     if (parent::drop()) {
         foreach ($this->getBlocks() as $Block) {
             $Block->drop();
         }
         return true;
     }
     return false;
 }