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

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

/**
 * 
 * 
 * @copyright        [PHPFOX_COPYRIGHT]
 * @author          Raymond_Benc
 * @package         Phpfox_Component
 * @version         $Id: file.class.php 3681 2011-12-06 09:45:11Z Raymond_Benc $
 */
class Video_Component_Block_File extends Phpfox_Component
{
    
/**
     * Class process method wnich is used to execute this component.
     */
    
public function process()
    {        
        
$sCategories '<select name="val[category][0]" class="js_mp_category_list" id="js_mp_id_0">';
        
$sCategories .= '<option value="0">' Phpfox::getPhrase('video.select') . ':</option>';
        
$sCategories .= Phpfox::getService('video.category')->display('option')->get();
        
$sCategories .= '</select>';
        
        
$this->template()->assign(array(
                
'iUploadLimit' => Phpfox::getLib('file')->getLimit(Phpfox::getUserParam('video.video_file_size_limit')),
                
'sFileExt' => Phpfox::getService('video')->getFileExt(true),
                
'sCategories' => $sCategories,
                
'sEditorId' => $this->request()->get('editor_id')    
            )
        );        
    }
    
    
/**
     * 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('video.component_block_file_clean')) ? eval($sPlugin) : false);
    }
}

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