本文整理汇总了PHP中CostbenefitprojectionHelper::setGroupNames方法的典型用法代码示例。如果您正苦于以下问题:PHP CostbenefitprojectionHelper::setGroupNames方法的具体用法?PHP CostbenefitprojectionHelper::setGroupNames怎么用?PHP CostbenefitprojectionHelper::setGroupNames使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CostbenefitprojectionHelper
的用法示例。
在下文中一共展示了CostbenefitprojectionHelper::setGroupNames方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: Zusammenarbeit
@created 15th June, 2012
@package Cost Benefit Projection
@subpackage default.php
@author Llewellyn van der Merwe <http://www.vdm.io>
@owner Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
@copyright Copyright (C) 2015. All Rights Reserved
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
/-------------------------------------------------------------------------------------------------------/
Cost Benefit Projection Tool.
/------------------------------------------------------------------------------------------------------*/
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
// get user type
$useris = CostbenefitprojectionHelper::userIs($this->user->id);
$usergroup = CostbenefitprojectionHelper::setGroupNames($this->user->get('groups'));
// load modules if public
$login_cp = false;
$public_cp = false;
$top_cp = array();
if (!$useris) {
$login_cp = $this->getModules('login-cp', 'div', 'uk-panel');
$public_cp = $this->getModules('public-cp', 'div', 'uk-panel');
$top_cp = $this->getModules('top_cp', 'array');
}
// quick header fix function
function setHeaderString($n)
{
return CostbenefitprojectionHelper::safeString($n, 'Ww');
}
// setting the published state