Example #1
0
 public function view()
 {
     $stm = new StackList();
     $stm->filterByUserAdded();
     $this->setupMultilingualStackList($stm);
     $this->set('stacks', $stm->get());
     $parent = Page::getByPath(STACKS_PAGE_PATH);
     $cpc = new Permissions($parent);
     if ($cpc->canMoveOrCopyPage()) {
         $this->set('canMoveStacks', true);
         $sortUrl = View::url('/dashboard/blocks/stacks', 'update_order');
         $this->set('sortURL', $sortUrl);
     }
 }
 /**
  * Get a list of stacks available.
  *
  * @return \Concrete\Core\Page\Stack\StackList
  */
 public function getStacks()
 {
     $list = new StackList();
     $list->filterByUserAdded();
     return $list->get();
 }
Example #3
0
 public function filterByUserAdded()
 {
     return parent::filterByUserAdded();
 }