public function view() { $r = ResponseAssetGroup::get(); $r->requireAsset('core/gathering'); Loader::helper('overlay')->init(false); $gathering = Gathering::getByID($this->gaID); if (is_object($gathering)) { $list = new GatheringItemList($gathering); $list->sortByDateDescending(); $this->set('gathering', $gathering); $this->set('itemList', $list); } }
public function composer() { $r = ResponseAssetGroup::get(); $r->requireAsset('core/conversation'); $this->view(); }
public function view() { if ($this->gaID) { $gathering = Gathering::getByID($this->gaID); if (is_object($gathering)) { $r = ResponseAssetGroup::get(); $r->requireAsset('core/gathering'); Loader::helper('overlay')->init(false); if ($this->enablePostingFromGathering && $this->ptID) { $pt = PageType::getByID($this->ptID); Loader::helper('concrete/composer')->addAssetsToRequest($pt, $this); $p = new Permissions($pt); if ($p->canEditPageTypeInComposer()) { $this->set('pagetype', $pt); } } $list = new GatheringItemList($gathering); $list->sortByDateDescending(); $list->setItemsPerPage($this->itemsPerPage); $this->set('gathering', $gathering); $this->set('itemList', $list); } } }