当前位置: 首页>>代码示例>>PHP>>正文


PHP JEventsHTML::getUserMailtoLink方法代码示例

本文整理汇总了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;
 }
开发者ID:andreassetiawanhartanto,项目名称:PDKKI,代码行数:42,代码来源:datamodel.php

示例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;
 }
开发者ID:poorgeek,项目名称:JEvents,代码行数:15,代码来源:jeventcal.php

示例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;
 }
开发者ID:andreassetiawanhartanto,项目名称:PDKKI,代码行数:11,代码来源:jeventcal.php


注:本文中的JEventsHTML::getUserMailtoLink方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。