本文整理匯總了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;
}