sm = new SubModule(); } public function init() { logger('dev_init', LOGGER_DEBUG); if (argc() > 1) { $this->sm->call('init'); } } public function post() { logger('dev_post', LOGGER_DEBUG); if (argc() > 1) { $this->sm->call('post'); } } /** * @return string */ public function get() { logger('dev_content', LOGGER_DEBUG); /* * Page content */ Navbar::set_selected('Dev'); $o = ''; if (argc() > 1) { $o = $this->sm->call('get'); if ($o === false) { notice(t('Item not found.')); } } if (is_ajax()) { echo $o; killme(); } else { return $o; } } }