public function listen_configCreateuserEmail(framework\Event $event) { framework\ActionComponent::includeComponent('mailing/configcreateuseremail'); }
/** * Includes a component with specified parameters * * @param string $component name of component to load, or module/component to load * @param array $params key => value pairs of parameters for the template */ function include_component($component, $params = array()) { return ActionComponent::includeComponent($component, $params); }
public function listen_quicksearchDropdownFoundItems(framework\Event $event) { $searchterm = $event->getSubject(); list($resultcount, $articles) = Article::findArticlesByContentAndProject($searchterm, framework\Context::getCurrentProject()); framework\ActionComponent::includeComponent('publish/quicksearch_dropdown_founditems', array('searchterm' => $searchterm, 'articles' => $articles, 'resultcount' => $resultcount)); }
/** * Header "Agile" menu and board list * * @Listener(module="core", identifier="templates/headermainmenu::projectmenulinks") * * @param \thebuggenie\core\framework\Event $event */ public function headerMenuProjectLinks(framework\Event $event) { if (framework\Context::isProjectContext()) { $boards = \thebuggenie\modules\agile\entities\AgileBoard::getB2DBTable()->getAvailableProjectBoards(framework\Context::getUser()->getID(), framework\Context::getCurrentProject()->getID()); framework\ActionComponent::includeComponent('agile/headermenuprojectlinks', array('project' => $event->getSubject(), 'boards' => $boards)); } }