public function __construct() { parent::__construct(); $this->loadClass(array('ActeLocaleModel')); Event::listen('home_right_top', array($this, 'loadHome')); Template::registerViewMethod('page', 'acteList', 'Lista de actelocale', array($this, 'acteList'), true); }
public function __construct() { parent::__construct(); $this->loadClass(array('PollModel', 'PollAnswerLangModel', 'PollVotesModel')); Route::get('poll/list', array('before' => 'auth', array($this, 'poll_list'))); Route::post('poll/getlist', array('before' => 'auth', array($this, 'getlist'))); Route::get('poll/form', array('before' => 'auth', array($this, 'form'))); Route::get('poll/form/{id}', array('before' => 'auth', array($this, 'form'))); Route::post('poll/save', array('before' => 'auth', array($this, 'save'))); Route::post('poll/save_lang', array('before' => 'auth', array($this, 'save_lang'))); Route::post('poll/edititem', array('before' => 'auth', array($this, 'edititem'))); Route::post('poll/edititem/{poll_lang_id}', array('before' => 'auth', array($this, 'edititem'))); Route::post('poll/add', array('before' => 'auth', array($this, 'poll_add'))); Route::get('poll/del', array('before' => 'auth', array($this, 'poll_del'))); Route::get('poll/del/{id}', array('before' => 'auth', array($this, 'poll_del'))); Route::post('poll/list/answer', array('before' => 'auth', array($this, 'getlist_answer'))); Route::post('poll/list/answer/{poll_lang_id}', array('before' => 'auth', array($this, 'getlist_answer'))); Route::get('poll/anwser/create/{id}', array('before' => 'auth', array($this, 'create_answer'))); Route::get('poll/answer/edit/{id}', array('before' => 'auth', array($this, 'edit_answer'))); Route::post('poll/answer/save', array('before' => 'auth', array($this, 'save_answer'))); Route::get('poll/answer/delete/{id}', array('before' => 'auth', array($this, 'delete_answer'))); Route::post('poll/answer/jqsave', array('before' => 'auth', array($this, 'jqsave_answer'))); Event::listen('construct_left_menu', array($this, 'left_menu_item')); Event::listen('language_created', array($this, 'language_created')); Event::listen('language_deleted', array($this, 'language_deleted')); Template::registerViewMethod('page', 'pollList', 'Lista de sondaje', null, true); $this->layout = Template::mainLayout(); }
public function __construct() { parent::__construct(); $this->loadClass(array('PollModel')); Template::registerViewMethod('page', 'pollList', 'Lista de sondaje', array($this, 'pollList'), true); Route::post('poll/register', array($this, 'pollRegister')); \WebAPL\Shortcodes::register('poll', array($this, 'pollShortcode')); }
public function __construct() { parent::__construct(); $this->loadClass(array('SComplaintsModel')); // Set settings page Shortcodes::register('complaint_form', array($this, 'complaint_form')); Route::post("create_complaint", array($this, 'create_complaint')); Template::registerViewMethod('page', 'secial_complaints_list', 'Lista cu plingeri', array($this, 'secial_complaints_list'), true); }
public function __construct() { parent::__construct(); $this->loadClass(array('CalendarModel', 'CalendarLangModel')); Route::get('calendar/cron', [$this, 'email_notifications']); $cron_date = \SettingsModel::one('calendar_cron_time'); if (date("Y-m-d", intval($cron_date)) !== date('Y-m-d')) { \SettingsModel::put('calendar_cron_time', time()); $this->email_notifications(); } Template::registerViewMethod('page', $this->page_view_mod, 'Pagina calendar', array($this, 'calendarViewMod'), true); }
public function __construct() { parent::__construct(); $this->loadClass(array('SComplaintsModel')); // Set settings page Shortcodes::register('scomplaint', array()); Route::get('socialcomplaints/list', array('before' => 'auth', array($this, 'soclist'))); Route::post('socialcomplaints/getlist', array('before' => 'auth', array($this, 'getlist'))); Route::post('socialcomplaints/edititem', array('before' => 'auth', array($this, 'edititem'))); Template::registerViewMethod('page', 'secial_complaints_list', 'Lista cu plângeri', null, true); Event::listen('construct_left_menu', array($this, 'left_menu_item')); // Set layout $this->layout = Template::mainLayout(); }
public function __construct() { parent::__construct(); $this->loadClass(array('ActeLocaleModel')); Route::get('actelocale/list', array('before' => 'auth', array($this, 'acte_list'))); Route::post('actelocale/getlist', array('before' => 'auth', array($this, 'getlist'))); Route::get('actelocale/create', array('before' => 'auth', array($this, 'create'))); Route::get('actelocale/edit/{id}', array('before' => 'auth', array($this, 'editact'))); Route::get('actelocale/parse', array('before' => 'auth', array($this, 'parse'))); Route::post('actelocale/save', array('before' => 'auth', array($this, 'save'))); Event::listen('construct_left_menu', array($this, 'left_menu_item')); Template::registerViewMethod('page', 'acteList', 'Lista de acte locale', null, true); $this->layout = Template::mainLayout(); }
public function __construct() { parent::__construct(); $this->loadClass(array('PersonModel', 'PersonLangModel', 'PersonAudienceModel')); Template::registerViewMethod('page', 'group_with_persons', '', array($this, 'group_list'), true); Template::registerViewMethod('page', 'persons_with_photo', 'Persoane cu foto', array($this, 'photo_persons'), true); Template::registerViewMethod('page', 'persons_big', 'Persoane cu foto (viceprimari)', array($this, 'vicemayor'), true); Template::registerViewMethod('page', 'persons_mayor', 'Persoana cu foto (primar)', array($this, 'mayor'), true); Template::registerViewMethod('page', 'persons_secretar', 'Persoana cu foto (secretar)', array($this, 'secretar'), true); Template::registerViewMethod('page', 'city_councilors', 'Consilieri locali', array($this, 'councilors'), true); Shortcodes::register('person_subscribe', array($this, 'subscribe')); Route::post('person/subscribe_to_audience', array($this, 'subscribe_to_audience')); View::addNamespace('person', app_path('/modules/person/views')); $online_persons = \PersonModel::where('for_audience', 1)->get(); $online_persons_arr = []; foreach ($online_persons as $person) { $online_persons_arr[] = $person->id; } View::share('online_persons', $online_persons_arr); }
public function __construct() { parent::__construct(); $this->loadClass(array('CalendarModel', 'CalendarLangModel', 'CalendarGroup')); Route::get('calendar/list', array('before' => 'auth', array($this, 'calendar_list'))); Route::post('calendar/getlist', array('before' => 'auth', array($this, 'getlist'))); Route::get('calendar/edit/{id}', array('before' => 'auth', array($this, 'edit_item'))); Route::post('calendar/create', array('before' => 'auth', array($this, 'create_item'))); Route::post('calendar/getgroups', array('before' => 'auth', array($this, 'getgroups'))); Route::post('calendar/editgroup', array('before' => 'auth', array($this, 'editgroup'))); Route::post('calendar/save', array('before' => 'auth', array($this, 'save'))); Route::post('calendar/save_lang', array('before' => 'auth', array($this, 'save_lang'))); Event::listen('page_attachment', array($this, 'page_group_attachment')); Route::post('calendar/save_post_attach', array('before' => 'auth', array($this, 'save_post_attach'))); Event::listen('construct_left_menu', array($this, 'left_menu_item')); Event::listen('language_created', array($this, 'language_created')); Event::listen('language_deleted', array($this, 'language_deleted')); Template::registerViewMethod('page', $this->page_view_mod, 'Calendar', null, true); $this->layout = Template::mainLayout(); Event::listen('feed_post_bottom', [$this, 'post_event']); Route::post('calendar/save_post_cal_attach', array('before' => 'auth', array($this, 'save_post_cal_attach'))); Route::post('calendar/get_person_list/{id}', array('before' => 'auth', array($this, 'get_person_list'))); }
public function __construct() { parent::__construct(); $this->loadClass(array('PersonModel', 'PersonLangModel', 'PersonGroupPostModel', 'PersonGroupLang', 'PersonGroup')); // Set settings page Route::get('person/settings', array('before' => 'auth', array($this, 'settings'))); // Set others routes Route::get('person/list', array('before' => 'auth', array($this, 'list_persons'))); Route::post('person/getlist', array('before' => 'auth', array($this, 'getlist'))); Route::post('person/getgroups', array('before' => 'auth', array($this, 'list_groups'))); Route::get('person/editgroup/{id}', array('before' => 'auth', array($this, 'edit_group'))); Route::post('person/savegroup', array('before' => 'auth', array($this, 'save_group'))); Route::get('person/emptyperson', array('before' => 'auth', array($this, 'emptyperson'))); Route::get('person/form', array('before' => 'auth', array($this, 'form'))); Route::get('person/form/{id}', array('before' => 'auth', array($this, 'form'))); Route::post('person/save', array('before' => 'auth', array($this, 'save'))); Route::post('person/save_lang', array('before' => 'auth', array($this, 'save_lang'))); Route::post('person/save_dynamic_fields', array('before' => 'auth', array($this, 'save_dynamic_fields'))); Route::post('person/delete', array('before' => 'auth', array($this, 'deleteperson'))); Route::post('person/save_post_attach', array('before' => 'auth', array($this, 'save_post_attach'))); Route::post('person/save_person_groups', array('before' => 'auth', array($this, 'save_person_groups'))); Route::post('person/getaudiences', array('before' => 'auth', array($this, 'getaudiences'))); // Register new action Event::listen('construct_left_menu', array($this, 'left_menu_item')); Event::listen('page_attachment', array($this, 'page_group_attachment')); Event::listen('language_created', array($this, 'language_created')); Event::listen('language_deleted', array($this, 'language_deleted')); //Template::registerViewMethod('page', 'persons_list', 'Tabel persoane (consilieri)', null, true); Template::registerViewMethod('page', 'group_with_persons', 'Grupe de persoane', null, true); Template::registerViewMethod('page', 'persons_with_photo', 'Personalități', null, true); Template::registerViewMethod('page', 'persons_big', 'Viceprimar', null, true); Template::registerViewMethod('page', 'persons_mayor', 'Primar', null, true); Template::registerViewMethod('page', 'persons_secretar', 'Secretar', array($this, 'secretar'), true); Template::registerViewMethod('page', 'city_councilors', 'Consilieri locali', null, true); // Set layout $this->layout = Template::mainLayout(); }