本文整理汇总了PHP中getUserFullName函数的典型用法代码示例。如果您正苦于以下问题:PHP getUserFullName函数的具体用法?PHP getUserFullName怎么用?PHP getUserFullName使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了getUserFullName函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: print_welcome_block
function print_welcome_block($block = true, $config = "", $side, $index)
{
global $pgv_lang, $PGV_IMAGE_DIR, $PGV_IMAGES;
$id = "user_welcome";
$title = $pgv_lang["welcome"] . " " . getUserFullName(PGV_USER_ID);
$content = "<table class=\"blockcontent\" cellspacing=\"0\" cellpadding=\"0\" style=\" width: 100%; direction:ltr;\"><tr>";
$content .= "<td class=\"tab_active_bottom\" colspan=\"3\" ></td></tr><tr>";
if (get_user_setting(PGV_USER_ID, 'editaccount') == 'Y') {
$content .= "<td class=\"center details2\" style=\" width: 33%; clear: none; vertical-align: top; margin-top: 2px;\"><a href=\"edituser.php\"><img src=\"" . $PGV_IMAGE_DIR . "/" . $PGV_IMAGES["mygedview"]["small"] . "\" border=\"0\" alt=\"" . $pgv_lang["myuserdata"] . "\" title=\"" . $pgv_lang["myuserdata"] . "\" /><br />" . $pgv_lang["myuserdata"] . "</a></td>";
}
if (PGV_USER_GEDCOM_ID) {
$content .= "<td class=\"center details2\" style=\" width: 34%; clear: none; vertical-align: top; margin-top: 2px;\"><a href=\"" . encode_url("pedigree.php?rootid=" . PGV_USER_GEDCOM_ID) . "\"><img src=\"" . $PGV_IMAGE_DIR . "/" . $PGV_IMAGES["pedigree"]["small"] . "\" border=\"0\" alt=\"" . $pgv_lang["my_pedigree"] . "\" title=\"" . $pgv_lang["my_pedigree"] . "\" /><br />" . $pgv_lang["my_pedigree"] . "</a></td>";
$content .= "<td class=\"center details2\" style=\" width: 33%; clear: none; vertical-align: top; margin-top: 2px;\"><a href=\"" . encode_url("individual.php?pid=" . PGV_USER_GEDCOM_ID) . "\"><img src=\"" . $PGV_IMAGE_DIR . "/" . $PGV_IMAGES["indis"]["small"] . "\" border=\"0\" alt=\"" . $pgv_lang["my_indi"] . "\" title=\"" . $pgv_lang["my_indi"] . "\" /><br />" . $pgv_lang["my_indi"] . "</a></td>";
}
$content .= "</tr><tr><td class=\"center\" colspan=\"3\">";
$content .= print_help_link("mygedview_customize_help", "qm", "", false, true);
$content .= "<a href=\"javascript:;\" onclick=\"window.open('" . encode_url("index_edit.php?name=" . PGV_USER_NAME . "&ctype=user") . "', '_blank', 'top=50,left=10,width=600,height=350,scrollbars=1,resizable=1');\">" . $pgv_lang["customize_page"] . "</a>";
$content .= "<br />" . format_timestamp(client_time());
$content .= "</td>";
$content .= "</tr></table>";
global $THEME_DIR;
if ($block) {
require $THEME_DIR . 'templates/block_small_temp.php';
} else {
require $THEME_DIR . 'templates/block_main_temp.php';
}
}
示例2: getSearchParams
function getSearchParams($stage, $assignedto, $dates)
{
$listSearchParams = array();
$conditions = array();
array_push($conditions, array("sales_stage", "e", $stage));
if ($assignedto == '') {
$currenUserModel = Users_Record_Model::getCurrentUserModel();
$assignedto = $currenUserModel->getId();
}
if ($assignedto != 'all') {
$ownerType = vtws_getOwnerType($assignedto);
if ($ownerType == 'Users') {
array_push($conditions, array("assigned_user_id", "e", getUserFullName($assignedto)));
} else {
$groupName = getGroupName($assignedto);
$groupName = $groupName[0];
array_push($conditions, array("assigned_user_id", "e", $groupName));
}
}
if (!empty($dates)) {
array_push($conditions, array("closingdate", "bw", $dates['start'] . ',' . $dates['end']));
}
$listSearchParams[] = $conditions;
return '&search_params=' . json_encode($listSearchParams);
}
示例3: buildDocumentModel
function buildDocumentModel()
{
global $app_strings;
try {
$model = parent::buildDocumentModel();
$this->generateEntityModel($this->focus, 'Potentials', 'potential_', $model);
$entity = new Accounts();
if ($this->focusColumnValue('related_to')) {
$entity->retrieve_entity_info($this->focusColumnValue('related_to'), 'Accounts');
}
$this->generateEntityModel($entity, 'Accounts', 'account_', $model);
$entity = new Contacts();
if ($this->focusColumnValue('contact_id')) {
$entity->retrieve_entity_info($this->focusColumnValue('contact_id'), 'Contacts');
}
$this->generateEntityModel($entity, 'Contacts', 'contact_', $model);
$this->generateUi10Models($model);
$this->generateRelatedListModels($model);
$model->set('potential_no', $this->focusColumnValue('potential_no'));
$model->set('potential_owner', getUserFullName($this->focusColumnValue('assigned_user_id')));
return $model;
} catch (Exception $e) {
echo '<meta charset="utf-8" />';
if ($e->getMessage() == $app_strings['LBL_RECORD_DELETE']) {
echo $app_strings['LBL_RECORD_INCORRECT'];
echo '<br><br>';
} else {
echo $e->getMessage();
echo '<br><br>';
}
return null;
}
}
示例4: getModifiedByLabel
function getModifiedByLabel() {
global $current_user, $currentModule;
if (isset($current_user) && $current_user->id == $this->whodid) {
return getFullNameFromArray('Users', $current_user->column_fields);
}
return getUserFullName($this->whodid);
}
示例5: getSearchParams
function getSearchParams($value, $assignedto = '')
{
$listSearchParams = array();
$conditions = array(array('ticketstatus', 'e', $value));
if ($assignedto != '') {
array_push($conditions, array('assigned_user_id', 'e', getUserFullName($assignedto)));
}
$listSearchParams[] = $conditions;
return '&search_params=' . json_encode($listSearchParams);
}
示例6: generateFormDataRow
function generateFormDataRow($moduleCompId, $userId, $columnList, $showProfileData = false)
{
$display = array();
$elementRow = array();
$elementDataQuery = 'SELECT `form_elementdata`, `form_elementdesc`.`form_elementid`, `form_elementdesc`.`form_elementtype` FROM `form_elementdesc`, `form_elementdata` WHERE ' . "`form_elementdata`.`page_modulecomponentid` = '{$moduleCompId}' AND `user_id` = '{$userId}' AND " . '`form_elementdata`.`page_modulecomponentid` = `form_elementdesc`.`page_modulecomponentid` AND ' . '`form_elementdata`.`form_elementid` = `form_elementdesc`.`form_elementid` ' . 'ORDER BY `form_elementrank` ASC';
$elementDataResult = mysql_query($elementDataQuery) or die($elementDataQuery . ' ' . mysql_error());
while ($elementDataRow = mysql_fetch_row($elementDataResult)) {
$elementRow['elementid_' . $elementDataRow[1]] = $elementDataRow[0];
if ($elementDataRow[2] == 'file') {
$elementRow['elementid_' . $elementDataRow[1]] = '<a href="./' . $elementDataRow[0] . '">' . $elementDataRow[0] . '</a>';
}
}
if ($showProfileData) {
if ($userId > 0) {
$elementDataQuery = 'SELECT `form_elementdata`, `form_elementdesc`.`form_elementid`, `form_elementdesc`.`form_elementname`, `form_elementdesc`.`form_elementtype` FROM `form_elementdesc`, `form_elementdata` WHERE ' . "`form_elementdata`.`page_modulecomponentid` = 0 AND `user_id` = '{$userId}' AND " . "`form_elementdata`.`page_modulecomponentid` = `form_elementdesc`.`page_modulecomponentid` AND " . "`form_elementdata`.`form_elementid` = `form_elementdesc`.`form_elementid` ORDER BY `form_elementrank`";
$elementDataResult = mysql_query($elementDataQuery) or die($elementDataQuery . '<br />' . mysql_error());
while ($elementDataRow = mysql_fetch_assoc($elementDataResult)) {
$elementRow['form0_' . $elementDataRow['form_elementname']] = $elementDataRow['form_elementdata'];
if ($elementDataRow['form_elementtype'] == 'file') {
$elementRow['form0_' . $elementDataRow['form_elementname']] = '<a href="./' . $elementDataRow['form_elementdata'] . '">' . $elementDataRow['form_elementdata'] . '</a>';
}
}
} else {
$elementDataQuery = 'SELECT `form_elementname` FROM `form_elementdesc` WHERE `page_modulecomponentid` = 0';
$elementDataResult = mysql_query($elementDataQuery);
while ($elementDataRow = mysql_fetch_row($elementDataResult)) {
$elementDataRow['form0_' . $elementDataRow['form_elementname']] = ' ';
}
}
}
if (in_array('useremail', $columnList)) {
$elementRow['useremail'] = getUserEmail($userId);
}
if (in_array('username', $columnList)) {
$elementRow['username'] = getUserName($userId);
}
if (in_array('userfullname', $columnList)) {
$elementRow['userfullname'] = getUserFullName($userId);
}
if (in_array('lastupdated', $columnList)) {
$elementRow['lastupdated'] = getLastUpdateDate($moduleCompId, $userId);
}
if (in_array('registrationdate', $columnList)) {
$elementRow['registrationdate'] = getRegistrationDate($moduleCompId, $userId);
}
$columnCount = count($columnList);
for ($i = 0; $i < count($columnList); $i++) {
if (isset($elementRow[$columnList[$i]])) {
$display[] = $elementRow[$columnList[$i]];
} else {
$display[] = ' ';
}
}
return $display;
}
示例7: searchIncomingCalls
public function searchIncomingCalls(Vtiger_Request $request){
$recordModel = PBXManager_Record_Model::getCleanInstance();
$response = new Vtiger_Response();
$user = Users_Record_Model::getCurrentUserModel();
$recordModels = $recordModel->searchIncomingCall();
// To check whether user have permission on caller record
if($recordModels){
foreach ($recordModels as $recordModel){
// To check whether the user has permission to see contact name in popup
$recordModel->set('callername', null);
//SalesPlatform.ru begin incoming call for calling user
if($user->id != $recordModel->get('user')) {
continue;
}
//SalesPlatform.ru end
$callerid = $recordModel->get('customer');
if($callerid){
$moduleName = $recordModel->get('customertype');
// SalesPlatform.ru begin
$callerRecordModel = Vtiger_Record_Model::getInstanceById($callerid, $moduleName);
$ownerId = $callerRecordModel->get('assigned_user_id');
$recordModel->set('ownername',getUserFullName($ownerId));
// SalesPlatform.ru end
if(!Users_Privileges_Model::isPermitted($moduleName, 'DetailView', $callerid)){
$name = $recordModel->get('customernumber').vtranslate('LBL_HIDDEN','PBXManager');
$recordModel->set('callername',$name);
}else{
$entityNames = getEntityName($moduleName, array($callerid));
$callerName = $entityNames[$callerid];
$recordModel->set('callername',$callerName);
}
}
// End
$direction = $recordModel->get('direction');
if($direction == 'inbound'){
$userid = $recordModel->get('user');
if($userid){
$entityNames = getEntityName('Users', array($userid));
$userName = $entityNames[$userid];
$recordModel->set('answeredby',$userName);
}
}
$recordModel->set('current_user_id',$user->id);
$calls[] = $recordModel->getData();
}
}
$response->setResult($calls);
$response->emit();
}
示例8: getSearchParams
function getSearchParams($assignedto = '', $date)
{
$conditions = array();
$listSearchParams = array();
if ($assignedto != '')
array_push($conditions, array('assigned_user_id', 'e', getUserFullName($assignedto)));
if (!empty($date)) {
array_push($conditions, array('due_date', 'bw', $date . ',' . $date . ''));
}
$listSearchParams[] = $conditions;
return '&search_params=' . json_encode($listSearchParams);
}
示例9: getSearchParams
function getSearchParams($value, $assignedto, $dates)
{
$listSearchParams = array();
$conditions = array(array('leadstatus', 'e', $value));
if ($assignedto != '') {
array_push($conditions, array('assigned_user_id', 'e', getUserFullName($assignedto)));
}
if (!empty($dates)) {
array_push($conditions, array('createdtime', 'bw', $dates['start'] . ' 00:00:00,' . $dates['end'] . ' 23:59:59'));
}
$listSearchParams[] = $conditions;
return '&search_params=' . json_encode($listSearchParams);
}
示例10: getOwnerNameCustom
public function getOwnerNameCustom($id)
{
$db = PearDatabase::getInstance();
if ($id != "") {
$result = $db->pquery("SELECT user_name FROM vtiger_users WHERE id=?", array($id));
$ownername = $db->query_result($result, 0, "user_name");
}
if ($ownername == "") {
$result = $db->pquery("SELECT groupname FROM vtiger_groups WHERE groupid=?", array($id));
$ownername = $db->query_result($result, 0, "groupname");
} else {
$ownername = getUserFullName($id);
}
return $ownername;
}
示例11: deleteUserCalendar
/**
* Function to delete the user calendar from shared calendar
* @param Vtiger_Request $request
* @return Vtiger_Response $response
*/
function deleteUserCalendar(Vtiger_Request $request)
{
$currentUser = Users_Record_Model::getCurrentUserModel();
$userId = $currentUser->getId();
$sharedUserId = $request->get('userid');
$db = PearDatabase::getInstance();
$result = $db->pquery('SELECT 1 FROM vtiger_shareduserinfo WHERE userid=? AND shareduserid=?', array($userId, $sharedUserId));
if ($db->num_rows($result) > 0) {
$db->pquery('UPDATE vtiger_shareduserinfo SET visible=? WHERE userid=? AND shareduserid=?', array('0', $userId, $sharedUserId));
} else {
$db->pquery('INSERT INTO vtiger_shareduserinfo (userid, shareduserid, visible) VALUES(?, ?, ?)', array($userId, $sharedUserId, '0'));
}
$result = array('userid' => $userId, 'sharedid' => $sharedUserId, 'username' => getUserFullName($sharedUserId));
$response = new Vtiger_Response();
$response->setResult($result);
$response->emit();
}
示例12: vtws_getUsersInTheSameGroup
function vtws_getUsersInTheSameGroup($id)
{
require_once 'include/utils/GetGroupUsers.php';
require_once 'include/utils/GetUserGroups.php';
$groupUsers = new GetGroupUsers();
$userGroups = new GetUserGroups();
$allUsers = array();
$userGroups->getAllUserGroups($id);
$groups = $userGroups->user_groups;
foreach ($groups as $group) {
$groupUsers->getAllUsersInGroup($group);
$usersInGroup = $groupUsers->group_users;
foreach ($usersInGroup as $user) {
if ($user != $id) {
$allUsers[$user] = getUserFullName($user);
}
}
}
return $allUsers;
}
示例13: getDetailsNoteInfo
function getDetailsNoteInfo($accountid)
{
global $log;
global $adb;
$log->debug("Entering getDetailsNoteInfo method ...");
if ($accountid != '') {
$query = "select * from ec_notes where accountid={$accountid} and deleted=0";
$result = $adb->query($query);
$num_rows = $adb->num_rows($result);
if ($num_rows > 0) {
while ($row = $adb->fetch_array($result)) {
$row['smownerid'] = getUserFullName($row['smownerid']);
$row['title'] = "<a href='index.php?action=DetailView&module=Notes&record=" . $row['notesid'] . "&parenttab=Customer' target='_blank'>" . $row['title'] . "</a>";
$arr[] = $row;
}
}
}
$log->debug("Exiting getDetailsNoteInfo method ...");
return $arr;
}
示例14: buildDocumentModel
function buildDocumentModel()
{
global $app_strings;
try {
$model = parent::buildDocumentModel();
$this->generateEntityModel($this->focus, 'HelpDesk', 'helpdesk_', $model);
$entity = new Products();
if ($this->focusColumnValue('product_id')) {
$entity->retrieve_entity_info($this->focusColumnValue('product_id'), 'Products');
}
$this->generateEntityModel($entity, 'Products', 'product_', $model);
if ($this->focusColumnValue('parent_id')) {
$setype = getSalesEntityType($this->focusColumnValue('parent_id'));
}
$account = new Accounts();
$contact = new Contacts();
if ($setype == 'Accounts') {
$account->retrieve_entity_info($this->focusColumnValue('parent_id'), $setype);
} elseif ($setype == 'Contacts') {
$contact->retrieve_entity_info($this->focusColumnValue('parent_id'), $setype);
}
$this->generateEntityModel($account, 'Accounts', 'account_', $model);
$this->generateEntityModel($contact, 'Contacts', 'contact_', $model);
$this->generateUi10Models($model);
$this->generateRelatedListModels($model);
$model->set('helpdesk_owner', getUserFullName($this->focusColumnValue('assigned_user_id')));
return $model;
} catch (Exception $e) {
echo '<meta charset="utf-8" />';
if ($e->getMessage() == $app_strings['LBL_RECORD_DELETE']) {
echo $app_strings['LBL_RECORD_INCORRECT'];
echo '<br><br>';
} else {
echo $e->getMessage();
echo '<br><br>';
}
return null;
}
}
示例15: begin_xml
/**
* Creates the root elements for the GRAMPS XML file.
*
* The methods adds all the root elements and appends them to a DOMDocument.
*/
function begin_xml()
{
global $pgv_lang, $factarray;
//, $eventsArray, $dom, $ePeople, $this->eFams, $eSources, $ePlaces, $eObject;
$user = PGV_USER_NAME;
$this->dom = new DomDocument("1.0", "UTF-8");
$this->dom->formatOutput = true;
$eRoot = $this->dom->createElementNS("http://gramps-project.org/xml/1.1.0/", "database");
$eRoot = $this->dom->appendChild($eRoot);
$eHeader = $this->dom->createElement("header");
$eHeader = $eRoot->appendChild($eHeader);
$eCreated = $this->dom->createElement("created");
$eCreated = $eHeader->appendChild($eCreated);
$eCreated->setAttribute("date", date("Y-m-d"));
$eCreated->setAttribute("version", "1.1.2.6");
$eResearcher = $this->dom->createElement("researcher");
$eResname = $this->dom->createElement("resname");
$etResname = $this->dom->createTextNode(getUserFullName($user));
$etResname = $eResname->appendChild($etResname);
$eResname = $eResearcher->appendChild($eResname);
$eResemail = $this->dom->createElement("resemail");
$etResemail = $this->dom->createTextNode(get_user_setting($user, 'email'));
$etResemail = $eResemail->appendChild($etResemail);
$eResemail = $eResearcher->appendChild($eResemail);
$eResearcher = $eHeader->appendChild($eResearcher);
$this->eEvents = $this->dom->createElement("events");
$this->eEvents = $eRoot->appendChild($this->eEvents);
$this->ePeople = $this->dom->createElement("people");
$this->ePeople = $eRoot->appendChild($this->ePeople);
$this->eFams = $this->dom->createElement("families");
$this->eFams = $eRoot->appendChild($this->eFams);
$this->eSources = $this->dom->createElement("sources");
$this->eSources = $eRoot->appendChild($this->eSources);
$this->ePlaces = $this->dom->createElement("places");
$this->ePlaces = $eRoot->appendChild($this->ePlaces);
$this->eObject = $this->dom->createElement("objects");
$this->eObject = $eRoot->appendChild($this->eObject);
}