Example #1
0
 public function __construct()
 {
     $this->query = Model::currentVersion()->withUrl();
     if (Editor::isDisabled()) {
         $this->query = $this->query->isVisible();
     }
 }
Example #2
0
 /**
  * Returns a page with the given ID.
  *
  * @param int $pageId
  *
  * @return null|PageModelInterface
  */
 public function find($pageId)
 {
     return $this->model->currentVersion()->find($pageId);
 }
Example #3
0
 public function __construct()
 {
     $this->query = Model::currentVersion();
 }