本文整理汇总了PHP中getUserFullName函数的典型用法代码示例。如果您正苦于以下问题:PHP getUserFullName函数的具体用法?PHP getUserFullName怎么用?PHP getUserFullName使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了getUserFullName函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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';
}
}
开发者ID:rathervague,项目名称:phpgedview,代码行数:27,代码来源:user_welcome.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);
}
开发者ID:yozhi,项目名称:YetiForceCRM,代码行数:25,代码来源:CampaignsWidget.php
示例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;
}
}
开发者ID:gitter-badger,项目名称:openshift-salesplatform,代码行数:33,代码来源:PotentialsPDFController.php
示例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);
}
开发者ID:nvh3010,项目名称:quancrm,代码行数:7,代码来源:ModTracker_Basic.php
示例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);
}
开发者ID:Bergdahls,项目名称:YetiForceCRM,代码行数:10,代码来源:TicketsByStatus.php
示例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;
}
开发者ID:nobelium,项目名称:pragyan,代码行数:55,代码来源:viewregistrants.php
示例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();
}
开发者ID:Wasage,项目名称:werpa,代码行数:54,代码来源:IncomingCallPoll.php
示例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);
}
开发者ID:rubichcube,项目名称:YetiForceCRM,代码行数:12,代码来源:TimeControl.php
示例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);
}
开发者ID:cin-system,项目名称:cinrepo,代码行数:13,代码来源:ITSReportsDashboards.php
示例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;
}
开发者ID:cin-system,项目名称:vtigercrm-cin,代码行数:15,代码来源:PDFContentUtils.php
示例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();
}
开发者ID:Bergdahls,项目名称:YetiForceCRM,代码行数:22,代码来源:CalendarUserActions.php
示例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;
}
开发者ID:kduqi,项目名称:corebos,代码行数:20,代码来源:Utils.php
示例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;
}
开发者ID:honj51,项目名称:taobaocrm,代码行数:20,代码来源:Accountsrel.php
示例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;
}
}
开发者ID:gitter-badger,项目名称:openshift-salesplatform,代码行数:39,代码来源:HelpDeskPDFController.php
示例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);
}
开发者ID:bitweaver,项目名称:phpgedview,代码行数:43,代码来源:class_grampsexport.php
示例16: buildDocumentModel
function buildDocumentModel()
{
global $app_strings;
try {
$model = parent::buildDocumentModel();
$this->generateEntityModel($this->focus, 'SPPayments', 'payment_', $model);
$this->generateUi10Models($model);
$this->generateRelatedListModels($model);
$model->set('payment_owner', getUserFullName($this->focusColumnValue('assigned_user_id')));
$model->set('payment_payer', getParentName($this->focusColumnValue('payer')));
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;
}
}
开发者ID:DeliveryPLANET,项目名称:vTiger,代码行数:23,代码来源:SPPaymentsPDFController.php
示例17: getAnnouncements
static function getAnnouncements()
{
$adb = PearDatabase::getInstance();
$sql = " select * from vtiger_announcement inner join vtiger_users on vtiger_announcement.creatorid=vtiger_users.id";
$sql .= " AND vtiger_users.is_admin='on' AND vtiger_users.status='Active' AND vtiger_users.deleted = 0";
$result = $adb->pquery($sql, array());
for ($i = 0; $i < $adb->num_rows($result); $i++) {
$announce = getUserFullName($adb->query_result($result, $i, 'creatorid')) . ' : ' . $adb->query_result($result, $i, 'announcement') . ' ';
if ($adb->query_result($result, $i, 'announcement') != '') {
$announcement .= $announce;
}
}
return $announcement;
}
开发者ID:yozhi,项目名称:YetiForceCRM,代码行数:14,代码来源:Deprecated.php
示例18: getUpdateLogCreateMessage
public static function getUpdateLogCreateMessage($column_fields, $assigned_group_name, $assigntype)
{
global $log, $current_user;
$updatelog = "Ticket created. Assigned to ";
if (!empty($assigned_group_name) && $assigntype == 'T') {
$updatelog .= " group " . (is_array($assigned_group_name) ? $assigned_group_name[0] : $assigned_group_name);
} elseif ($column_fields['assigned_user_id'] != '') {
$updatelog .= " user " . getUserFullName($column_fields['assigned_user_id']);
} else {
$updatelog .= " user " . getUserFullName($current_user->id);
}
$fldvalue = date("l dS F Y h:i:s A") . ' by ' . $current_user->user_name;
$updatelog .= " -- " . $fldvalue . "--//--";
return $updatelog;
}
开发者ID:kikojover,项目名称:corebos,代码行数:15,代码来源:HelpDesk.php
示例19: showImportLockedError
public static function showImportLockedError($lockInfo)
{
$errorMessage = vtranslate('ERR_MODULE_IMPORT_LOCKED', 'Import');
$errorDetails = array(vtranslate('LBL_MODULE_NAME', 'Import') => getTabModuleName($lockInfo['tabid']), vtranslate('LBL_USER_NAME', 'Import') => getUserFullName($lockInfo['userid']), vtranslate('LBL_LOCKED_TIME', 'Import') => $lockInfo['locked_since']);
self::showErrorPage($errorMessage, $errorDetails);
}
开发者ID:Bergdahls,项目名称:YetiForceCRM,代码行数:6,代码来源:Utils.php
示例20: iCalendar_event_attendee
function iCalendar_event_attendee($activity)
{
$adb = PearDatabase::getInstance();
$users_res = $adb->pquery("SELECT inviteeid FROM vtiger_invitees WHERE activityid=?", array($activity['id']));
if ($adb->num_rows($users_res) > 0) {
for ($i = 0; $i < $adb->num_rows($users_res); $i++) {
$inviteeid = $adb->query_result($users_res, $i, 'inviteeid');
$username = getUserFullName($inviteeid);
$user_email = getUserEmail($inviteeid);
$attendee = 'mailto:' . $user_email;
$this->add_property('ATTENDEE', $attendee);
}
}
return true;
}
开发者ID:Bergdahls,项目名称:YetiForceCRM,代码行数:15,代码来源:iCalendar_components.php
注:本文中的getUserFullName函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论