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

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

/**
 * 
 * 
 * @copyright        [PHPFOX_COPYRIGHT]
 * @author          Raymond Benc
 * @package          Module_Report
 * @version         $Id: add.class.php 1179 2009-10-12 13:56:40Z Raymond_Benc $
 */
class Report_Component_Block_Add extends Phpfox_Component 
{
    
/**
     * Class process method wnich is used to execute this component.
     */
    
public function process()
    {    
        
Phpfox::isUser(true);
        
        
$oReport Phpfox::getService('report');
        
$sType $this->getParam('sType');
        
$iItemId $this->getParam('iItemId');        
        
$bCanReport $oReport->canReport($sType$iItemId);
        
        
$this->template()->assign(array(
                
'aOptions' => ($bCanReport $oReport->getOptions($sType) : null),
                
'sType' => $sType,
                
'iItemId' => $iItemId,
                
'bCanReport' => $bCanReport,
                
'sTermsUrl' => $this->url()->makeUrl('terms')
            )
        );
    }
}

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