本文整理汇总了PHP中Vtiger_ListView_Model::getListViewLinks方法的典型用法代码示例。如果您正苦于以下问题:PHP Vtiger_ListView_Model::getListViewLinks方法的具体用法?PHP Vtiger_ListView_Model::getListViewLinks怎么用?PHP Vtiger_ListView_Model::getListViewLinks使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Vtiger_ListView_Model
的用法示例。
在下文中一共展示了Vtiger_ListView_Model::getListViewLinks方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: getListViewLinks
/**
* Function to get the list of listview links
* @param <Array> $linkParams Parameters to be replaced in the link template
* @return <Array> - an array of Vtiger_Link_Model instances
*/
public function getListViewLinks($linkParams)
{
$links = parent::getListViewLinks($linkParams);
$quickLinks = array(array('linktype' => 'LISTVIEWQUICK', 'linklabel' => 'Tasks List', 'linkurl' => $this->getModule()->getDefaultUrl(), 'linkicon' => ''));
foreach ($quickLinks as $quickLink) {
$links['LISTVIEWQUICK'][] = Vtiger_Link_Model::getInstanceFromValues($quickLink);
}
return $links;
}
示例2: getListViewLinks
/**
* Function to get the list of listview links for the module
* @param <Array> $linkParams
* @return <Array> - Associate array of Link Type to List of Vtiger_Link_Model instances
*/
function getListViewLinks($linkParams)
{
$links = parent::getListViewLinks($linkParams);
$index = 0;
foreach ($links['LISTVIEWBASIC'] as $link) {
if ($link->linklabel == 'Send SMS') {
unset($links['LISTVIEWBASIC'][$index]);
}
$index++;
}
return $links;
}
示例3: getListViewLinks
/**
* Function to get the list of listview links for the module
* @param <Array> $linkParams
* @return <Array> - Associate array of Link Type to List of Vtiger_Link_Model instances
*/
function getListViewLinks($linkParams)
{
$currentUserModel = Users_Record_Model::getCurrentUserModel();
$links = parent::getListViewLinks($linkParams);
$index = 0;
foreach ($links['LISTVIEWBASIC'] as $link) {
if ($link->linklabel == 'Send SMS') {
unset($links['LISTVIEWBASIC'][$index]);
}
$index++;
}
return $links;
}
示例4: getListViewLinks
/**
* Function to get the list of listview links for the module
* @param <Array> $linkParams
* @return <Array> - Associate array of Link Type to List of Vtiger_Link_Model instances
*/
public function getListViewLinks($linkParams)
{
$links = parent::getListViewLinks($linkParams);
$currentUserModel = Users_Record_Model::getCurrentUserModel();
$moduleModel = $this->getModule();
unset($links['LISTVIEW']);
unset($links['LISTVIEWSETTING']);
if ($currentUserModel->isAdminUser()) {
$settingsLink = array('linktype' => 'LISTVIEWSETTING', 'linklabel' => 'LBL_EDIT_WORKFLOWS', 'linkurl' => 'index.php?parent=Settings&module=Workflow&sourceModule=' . $this->getName(), 'linkicon' => Vtiger_Theme::getImagePath('EditWorkflows.png'));
$links['LISTVIEWSETTING'][] = Vtiger_Link_Model::getInstanceFromValues($settingsLink);
}
return $links;
}