當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Vtiger_Module_Model::getSettingLinks方法代碼示例

本文整理匯總了PHP中Vtiger_Module_Model::getSettingLinks方法的典型用法代碼示例。如果您正苦於以下問題:PHP Vtiger_Module_Model::getSettingLinks方法的具體用法?PHP Vtiger_Module_Model::getSettingLinks怎麽用?PHP Vtiger_Module_Model::getSettingLinks使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Vtiger_Module_Model的用法示例。


在下文中一共展示了Vtiger_Module_Model::getSettingLinks方法的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: getSettingLinks

 /**
  * Function to get Settings links for admin user
  * @return Array
  */
 public function getSettingLinks()
 {
     $settingsLinks = parent::getSettingLinks();
     $currentUserModel = Users_Record_Model::getCurrentUserModel();
     if ($currentUserModel->isAdminUser()) {
         $settingsLinks[] = array('linktype' => 'LISTVIEWSETTING', 'linklabel' => 'LBL_EDIT_MAILSCANNER', 'linkurl' => 'index.php?parent=Settings&module=MailConverter&view=List', 'linkicon' => '');
     }
     return $settingsLinks;
 }
開發者ID:andreadanzi,項目名稱:sws,代碼行數:13,代碼來源:Module.php

示例2: getSettingLinks

 public function getSettingLinks()
 {
     $settingsLinks = parent::getSettingLinks();
     $layoutEditorImagePath = Vtiger_Theme::getImagePath('LayoutEditor.gif');
     $db = PearDatabase::getInstance();
     $result = $db->query("SELECT fieldid FROM vtiger_settings_field WHERE name =  'OSSMailView' AND description =  'OSSMailView'", true);
     $settingsLinks[] = array('linktype' => 'LISTVIEWSETTING', 'linklabel' => 'Konfiguracja modułu', 'linkurl' => 'index.php?module=OSSMailView&parent=Settings&view=index&block=4&fieldid=' . $db->query_result($result, 0, 'fieldid'), 'linkicon' => $layoutEditorImagePath);
     return $settingsLinks;
 }
開發者ID:rcrrich,項目名稱:UpdatePackages,代碼行數:9,代碼來源:Module.php

示例3: getSettingLinks

 /**
  * Function returns Settings Links
  * @return Array
  */
 public function getSettingLinks()
 {
     $currentUserModel = Users_Record_Model::getCurrentUserModel();
     $settingLinks = parent::getSettingLinks();
     if ($currentUserModel->isAdminUser()) {
         $settingLinks[] = array('linktype' => 'LISTVIEWSETTING', 'linklabel' => 'LBL_CUSTOM_FIELD_MAPPING', 'linkurl' => 'index.php?parent=Settings&module=Leads&view=MappingDetail', 'linkicon' => '');
     }
     return $settingLinks;
 }
開發者ID:cannking,項目名稱:vtigercrm-debug,代碼行數:13,代碼來源:Module.php

示例4: getSettingLinks

 public function getSettingLinks()
 {
     $settingsLinks = parent::getSettingLinks();
     $settingsLinks[] = array('linktype' => 'LISTVIEWSETTING', 'linklabel' => 'General Configuration', 'linkurl' => 'index.php?module=' . $this->getName() . '&view=Index&parent=Settings&block=4', 'linkicon' => '');
     return $settingsLinks;
 }
開發者ID:Bergdahls,項目名稱:YetiForceCRM,代碼行數:6,代碼來源:Module.php


注:本文中的Vtiger_Module_Model::getSettingLinks方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。