Example #1
0
/**
 * @copyright Copyright (C) eZ Systems AS. All rights reserved.
 * @license For full copyright and license information view LICENSE file distributed with this source code.
 * @version 2014.11.1
 * @package kernel
 */
$Module = $Params['Module'];
$ViewMode = $Params['ViewMode'];
$GroupID = $Params['GroupID'];
$Offset = $Params['Offset'];
if (!is_numeric($Offset)) {
    $Offset = 0;
}
$collabGroup = eZCollaborationGroup::fetch($GroupID);
if ($collabGroup === null) {
    return $Module->handleError(eZError::KERNEL_NOT_AVAILABLE, 'kernel');
}
if (!eZCollaborationViewHandler::groupExists($ViewMode)) {
    return $Module->handleError(eZError::KERNEL_NOT_AVAILABLE, 'kernel');
}
$view = eZCollaborationViewHandler::instance($ViewMode, eZCollaborationViewHandler::TYPE_GROUP);
$template = $view->template();
$collabGroupTitle = $collabGroup->attribute('title');
$viewParameters = array('offset' => $Offset);
$tpl = eZTemplate::factory();
$tpl->setVariable('view_parameters', $viewParameters);
$tpl->setVariable('collab_group', $collabGroup);
$Result = array();
$Result['content'] = $tpl->fetch($template);
$Result['path'] = array(array('url' => 'collaboration/view/summary', 'text' => ezpI18n::tr('kernel/collaboration', 'Collaboration')), array('url' => false, 'text' => 'Group'), array('url' => false, 'text' => $collabGroupTitle));
 static function fetchGroupList()
 {
     return eZCollaborationViewHandler::ini()->variable('ViewSettings', 'GroupViewList');
 }
Example #3
0
 * @license http://ez.no/Resources/Software/Licenses/eZ-Business-Use-License-Agreement-eZ-BUL-Version-2.1 eZ Business Use License Agreement eZ BUL Version 2.1
 * @version 4.7.0
 * @package kernel
 */

$Module = $Params['Module'];
$ViewMode = $Params['ViewMode'];

$Offset = $Params['Offset'];
if ( !is_numeric( $Offset ) )
    $Offset = 0;

if ( !eZCollaborationViewHandler::exists( $ViewMode ) )
    return $Module->handleError( eZError::KERNEL_NOT_AVAILABLE, 'kernel' );

$view = eZCollaborationViewHandler::instance( $ViewMode );

$template = $view->template();

// $collaborationHandlers =& eZCollaborationItemHandler::fetchList();

$viewParameters = array( 'offset' => $Offset );

$tpl = eZTemplate::factory();
$tpl->setVariable( 'view_parameters', $viewParameters );

$Result = array();
$Result['content'] = $tpl->fetch( $template );
$Result['path'] = array( array( 'url' => false,
                                'text' => ezpI18n::tr( 'kernel/collaboration', 'Collaboration' ) ) );