本文整理汇总了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;
}
示例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;
}
示例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;
}
示例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;
}