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

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

/**
 * Display a photo stread based on the album the main photo belongs to.
 * 
 * @copyright        [PHPFOX_COPYRIGHT]
 * @author          Raymond Benc
 * @package          Module_Photo
 * @version         $Id: stream.class.php 1247 2009-11-03 16:08:56Z Raymond_Benc $
 */
class Photo_Component_Block_Stream extends Phpfox_Component
{
    
/**
     * Class process method wnich is used to execute this component.
     */
    
public function process()
    {        
        if (!
$this->getParam('bIsValidImage'))
        {
            return 
false;
        }        
        
        
$aPhoto $this->getParam('aPhoto');
        
$aUser $this->getParam('aUser');        
        
$aCallback $this->getParam('aCallback'null);        
        
        
$aStreams Phpfox::getService('photo')->getPhotoStream($aPhoto['photo_id'], ($aCallback === null 'album' 'group'), ($aCallback === null $aPhoto['album_id'] : $aCallback['group_id']), $aCallback$aUser['user_id']);
        
$this->template()->assign(array(
                
'aStreams' => $aStreams
            
)
        );    
    }
    
    
/**
     * 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('photo.component_block_stream_clean')) ? eval($sPlugin) : false);
        
        
$this->template()->clean(array(
                
'aStreams'
            
)
        );
    }
}

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