コード例 #1
0
ファイル: page.php プロジェクト: nsteiner/kdoc
 public function hide()
 {
     // keep the old state of the page object
     $old = clone $this;
     // don't hide pages, which are not allowed to change their status
     if (!$this->canChangeStatus()) {
         return false;
     }
     parent::hide();
     $this->sorter()->hide();
     kirby()->trigger('panel.page.hide', array($this, $old));
 }
コード例 #2
0
 public function hide()
 {
     parent::hide();
     $this->sorter()->hide();
     kirby()->trigger('panel.page.hide', $this);
 }
コード例 #3
0
ファイル: page.php プロジェクト: robinandersen/robin
 public function hide()
 {
     // don't hide pages, which are not allowed to change their status
     if (!$this->canChangeStatus()) {
         return false;
     }
     parent::hide();
     $this->sorter()->hide();
     kirby()->trigger('panel.page.hide', $this);
 }