本文整理汇总了PHP中JEventsHTML::getUserMailtoLink方法的典型用法代码示例。如果您正苦于以下问题:PHP JEventsHTML::getUserMailtoLink方法的具体用法?PHP JEventsHTML::getUserMailtoLink怎么用?PHP JEventsHTML::getUserMailtoLink使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类JEventsHTML
的用法示例。
在下文中一共展示了JEventsHTML::getUserMailtoLink方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: getDataForAdmin
function getDataForAdmin($creator_id, $limit, $limitstart, $showrepeats = false, $orderby = "")
{
$data = array();
$is_event_editor = JEVHelper::isEventCreator();
$user =& JFactory::getUser();
$Itemid = JEVHelper::getItemid();
$user =& JFactory::getUser();
$db =& JFactory::getDBO();
$cfg =& JEVConfig::getInstance();
include_once JPATH_ADMINISTRATOR . "/components/" . JEV_COM_COMPONENT . "/libraries/colorMap.php";
// Note that these are the vevents not the repeats
if (!$showrepeats) {
$total = $this->queryModel->countIcalEventsByCreator($creator_id);
} else {
$total = $this->queryModel->countIcalEventRepeatsByCreator($creator_id);
}
$data['total'] = $total;
$data['limit'] = $limit;
if ($data["total"] <= $data["limit"]) {
$limitstart = 0;
}
$data["limitstart"] = $limitstart;
// Note that these are the vevents not the repeats
if (!$showrepeats) {
$rows = $this->queryModel->listIcalEventsByCreator($creator_id, $limitstart, $limit, $orderby);
} else {
$rows = $this->queryModel->listIcalEventRepeatsByCreator($creator_id, $limitstart, $limit, $orderby);
}
$adminView = true;
$num_events = count($rows);
if ($num_events > 0) {
for ($r = 0; $r < $num_events; $r++) {
$row =& $rows[$r];
$row->catname($row->getCategoryName());
$row->contactlink(JEventsHTML::getUserMailtoLink($row->id(), $row->created_by(), true));
$row->bgcolor = JEV_CommonFunctions::setColor($row);
$row->fgcolor = JevMapColor($row->bgcolor);
}
}
$data['rows'] = $rows;
return $data;
}
示例2: contactLink
function contactLink($val = "", $admin = false)
{
if (JString::strlen($val) == 0) {
if (!isset($this->_contactLink) || $this->_contactLink == "") {
$this->_contactLink = JEventsHTML::getUserMailtoLink($this->id(), $this->created_by(), $admin, $this);
}
} else {
$this->_contactLink = $val;
}
// New Joomla code for mail cloak only works once on a page !!!
// Random number
$rand = rand(1, 100000);
return preg_replace("/cloak[0-9]*/i", "cloak" . $rand, $this->_contactLink);
//return $this->_contactLink;
}
示例3: contactLink
function contactLink($val = "", $admin = false)
{
if (strlen($val) == 0) {
if (!isset($this->_contactLink) || $this->_contactLink == "") {
$this->_contactLink = JEventsHTML::getUserMailtoLink($this->id(), $this->created_by(), $admin);
}
} else {
$this->_contactLink = $val;
}
return $this->_contactLink;
}