本文整理汇总了PHP中FieldList::showFieldForUser方法的典型用法代码示例。如果您正苦于以下问题:PHP FieldList::showFieldForUser方法的具体用法?PHP FieldList::showFieldForUser怎么用?PHP FieldList::showFieldForUser使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类FieldList
的用法示例。
在下文中一共展示了FieldList::showFieldForUser方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: getSubstitution
function getSubstitution()
{
$subs = array();
$aclman =& Docebo::user()->getAclManager();
$user = $aclman->getUser($this->id_user, false);
$subs['[display_name]'] = $user[ACL_INFO_LASTNAME] . $user[ACL_INFO_FIRSTNAME] ? $user[ACL_INFO_LASTNAME] . ' ' . $user[ACL_INFO_FIRSTNAME] : $aclman->relativeId($user[ACL_INFO_USERID]);
$subs['[username]'] = $aclman->relativeId($user[ACL_INFO_USERID]);
$subs['[firstname]'] = $user[ACL_INFO_FIRSTNAME];
$subs['[lastname]'] = $user[ACL_INFO_LASTNAME];
//variable fields
require_once $GLOBALS['where_framework'] . '/lib/lib.field.php';
$temp = new FieldList();
$fields = $temp->getFlatAllFields();
foreach ($fields as $key => $value) {
$subs['[userfield_' . $key . ']'] = $temp->showFieldForUser($this->id_user, $key);
}
return $subs;
}