Вход Регистрация
Файл: upload/module/admincp/include/component/controller/stat/index.class.php
Строк: 49
<?php
/**
 * [PHPFOX_HEADER]
 */

defined('PHPFOX') or exit('NO DICE!');

/**
 * 
 * 
 * @copyright        [PHPFOX_COPYRIGHT]
 * @author          Raymond Benc
 * @package         Phpfox_Component
 * @version         $Id: index.class.php 2846 2011-08-18 09:30:49Z Raymond_Benc $
 */
class Admincp_Component_Controller_Stat_Index extends Phpfox_Component
{
    
/**
     * Class process method wnich is used to execute this component.
     */
    
public function process()
    {
        if ((
$iDeleteId $this->request()->get('delete')))
        {
            if (
Phpfox::getService('core.stat.process')->delete($iDeleteId))
            {
                
$this->url()->send('admincp.stat'nullPhpfox::getPhrase('admincp.stat_successfully_deleted'));
            }
        }
        
        
$this->template()->setTitle(Phpfox::getPhrase('admincp.manage_stats'))
            ->
setBreadcrumb(Phpfox::getPhrase('admincp.manage_stats'), $this->url()->makeUrl('admincp.stat'))    
            ->
setHeader(array(
                    
'drag.js' => 'static_script',
                    
'<script type="text/javascript">Core_drag.init({table: '#js_drag_drop', ajax: 'core.statOrdering'});</script>'        
                
)
            )
            ->
assign(array(
                    
'aStats' => Phpfox::getService('core.stat')->get()
                )
            );        
    }
    
    
/**
     * Garbage collector. Is executed after this class has completed
     * its job and the template has also been displayed.
     */
    
public function clean()
    {
        ((
$sPlugin Phpfox_Plugin::get('admincp.component_controller_stat_index_clean')) ? eval($sPlugin) : false);
    }
}

?>
Онлайн: 1
Реклама