Вход Регистрация
Файл: upload/module/music/include/component/block/list.class.php
Строк: 43
<?php
/**
 * [PHPFOX_HEADER]
 */

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

/**
 * 
 * 
 * @copyright        [PHPFOX_COPYRIGHT]
 * @author          Raymond Benc
 * @package         Phpfox_Component
 * @version         $Id: list.class.php 2556 2011-04-21 20:02:54Z Raymond_Benc $
 */
class Music_Component_Block_List extends Phpfox_Component
{
    
/**
     * Class process method wnich is used to execute this component.
     */
    
public function process()
    {        
        
$aGenres Phpfox::getService('music.genre')->getList();
        
        if (!
count($aGenres))
        {
            return 
false;
        }
        
        
$this->template()->assign(array(
                
'sHeader' => Phpfox::getPhrase('music.genres'),
                
'aGenres' => $aGenres,
                
'iCurrentGenre' => $this->request()->getInt('req3')
            )
        );
        
        return 
'block';
    }
    
    
/**
     * 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('music.component_block_list_clean')) ? eval($sPlugin) : false);
    }
}

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