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

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

/**
 * 
 * 
 * @copyright        [PHPFOX_COPYRIGHT]
 * @author          Raymond Benc
 * @package          Module_Theme
 * @version         $Id: index.class.php 1179 2009-10-12 13:56:40Z Raymond_Benc $
 */
class Theme_Component_Controller_Admincp_Index extends Phpfox_Component 
{
    
/**
     * Class process method wnich is used to execute this component.
     */
    
public function process()
    {
        if ((
$iDeleteId $this->request()->getInt('delete')))
        {
            if (
Phpfox::getService('theme.process')->delete($iDeleteId))
            {
                
$this->url()->send('admincp.theme'nullPhpfox::getPhrase('theme.theme_successfully_deleted'));
            }
        }
        
        
$this->template()->setTitle(Phpfox::getPhrase('theme.themes'))
            ->
setBreadcrumb(Phpfox::getPhrase('theme.themes'), $this->url()->makeUrl('admincp.theme'))
            ->
assign(array(
                    
'aThemes' => Phpfox::getService('theme')->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_product_index_clean')) ? eval($sPlugin) : false);
    }
}

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