コード例 #1
0
 /**
  * @inheritdoc
  */
 public function disableContentContainer(ContentContainerActiveRecord $container)
 {
     parent::disableContentContainer($container);
     foreach (CalendarEntry::find()->contentContainer($container)->all() as $entry) {
         $entry->delete();
     }
 }
コード例 #2
0
 /**
  * @inheritdoc
  */
 public function disableContentContainer(ContentContainerActiveRecord $container)
 {
     parent::disableContentContainer($container);
     foreach (WikiPage::find()->contentContainer($container)->all() as $page) {
         $page->delete();
     }
 }
コード例 #3
0
 /**
  * @inheritdoc
  */
 public function disable()
 {
     foreach (DropboxPost::find()->all() as $post) {
         $post->delete();
     }
     parent::disable();
 }
コード例 #4
0
 /**
  * @inheritdoc
  */
 public function disableContentContainer(ContentContainerActiveRecord $container)
 {
     parent::disableContentContainer($container);
     foreach (Poll::find()->contentContainer($container)->all() as $poll) {
         $poll->delete();
     }
 }
コード例 #5
0
 /**
  * @inheritdoc
  */
 public function disableContentContainer(ContentContainerActiveRecord $container)
 {
     parent::disableContentContainer($container);
     foreach (Task::find()->contentContainer($container)->all() as $task) {
         $task->delete();
     }
 }
コード例 #6
0
 /**
  * @inheritdoc
  */
 public function disableContentContainer(ContentContainerActiveRecord $container)
 {
     parent::disableContentContainer($container);
     foreach (Category::find()->contentContainer($container)->all() as $content) {
         $content->delete();
     }
     foreach (Link::find()->contentContainer($container)->all() as $content) {
         $content->delete();
     }
 }