1
0
Fork 0
mirror of https://github.com/Oreolek/ifhub.club.git synced 2024-07-08 17:34:26 +03:00
ifhub.club/classes/actions/ActionIndex.class.php
Mzhelskiy Maxim 2f1e4059a4 clean
2012-09-24 10:21:00 +04:00

68 lines
1.6 KiB
PHP
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php
/*-------------------------------------------------------
*
* LiveStreet Engine Social Networking
* Copyright © 2008 Mzhelskiy Maxim
*
*--------------------------------------------------------
*
* Official site: www.livestreet.ru
* Contact e-mail: rus.engine@gmail.com
*
* GNU General Public License, version 2:
* http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
*
---------------------------------------------------------
*/
/**
* Обработка главной страницы, т.е. УРЛа вида /index/
*
* @package actions
* @since 1.0
*/
class ActionIndex extends Action {
/**
* Инициализация
*
*/
public function Init() {
$this->SetDefaultEvent('index');
}
/**
* Регистрация евентов
*
*/
protected function RegisterEvent() {
$this->AddEventPreg('/^index$/i','EventIndex');
$this->AddEventPreg('/^about/i','EventAbout');
}
/**********************************************************************************
************************ РЕАЛИЗАЦИЯ ЭКШЕНА ***************************************
**********************************************************************************
*/
/**
* Обработка эвента /index/
*/
protected function EventIndex() {
/**
* Устанавливаем шаблон вывода
*/
$this->SetTemplateAction('index');
}
/**
* Обработка эвента /about/
*/
protected function EventAbout() {
/**
* Устанавливаем шаблон вывода
*/
$this->SetTemplateAction('about');
}
}
?>