예제 #1
0
 public function afterDelete()
 {
     parent::afterDelete();
     unlink(\Yii::getAlias('@webroot' . $this->path));
 }
예제 #2
0
파일: Post.php 프로젝트: Penton/MoBlog
 public function afterDelete()
 {
     parent::afterDelete();
     $this->deleteCategories($this->status == static::STATUS_PUBLISH);
     $this->deleteTags($this->status == static::STATUS_PUBLISH);
     $this->deleteAttachments();
 }
예제 #3
0
파일: Page.php 프로젝트: Penton/MoBlog
 public function afterDelete()
 {
     parent::afterDelete();
     $this->deleteAttachments();
 }