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

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

/**
 * 
 * 
 * @copyright        [PHPFOX_COPYRIGHT]
 * @author          Raymond Benc
 * @package          Module_Feed
 * @version         $Id: mini.class.php 4545 2012-07-20 10:40:35Z Raymond_Benc $
 */
class Feed_Component_Block_Mini extends Phpfox_Component 
{
    
/**
     * Class process method wnich is used to execute this component.
     */
    
public function process()
    {
        
$iParentFeedId = (int) $this->getParam('parent_feed_id');
        
$sParentModuleId $this->getParam('parent_module_id');
        
        if (!
$iParentFeedId)
        {
            return 
false;
        }
        
        if (!
Phpfox::hasCallback($sParentModuleId'canShareItemOnFeed'))
        {
            return 
false;
        }

        
$aParentFeed Phpfox::callback($sParentModuleId '.getActivityFeed', array(
                
'feed_id' => $iParentFeedId,
                
'item_id' => $iParentFeedId
            
), nulltrue
        
);        

        
/*
        if ($aParentFeed[0]['privacy'] != '0')
        {
            return false;
        }
         * 
         */
        
if (!isset($aParentFeed['type_id']))
        {
            
$aParentFeed['type_id'] = $sParentModuleId;
        }
        
        
$this->template()->assign(array(
                
'aParentFeed' => $aParentFeed
            
)
        );
    }
    
    
/**
     * 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('feed.component_block_mini_clean')) ? eval($sPlugin) : false);
    }    
}
?>
Онлайн: 0
Реклама