本文整理汇总了PHP中Vtiger_Link_Model::getInstanceFromLinkObject方法的典型用法代码示例。如果您正苦于以下问题:PHP Vtiger_Link_Model::getInstanceFromLinkObject方法的具体用法?PHP Vtiger_Link_Model::getInstanceFromLinkObject怎么用?PHP Vtiger_Link_Model::getInstanceFromLinkObject使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Vtiger_Link_Model
的用法示例。
在下文中一共展示了Vtiger_Link_Model::getInstanceFromLinkObject方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: getHeaderLinks
/**
* Function to get the list of Header Links
* @return <Array> - List of Vtiger_Link_Model instances
*/
function getHeaderLinks()
{
$userModel = Users_Record_Model::getCurrentUserModel();
$headerLinks = [];
$userPersonalSettingsLinks = array('linktype' => 'HEADERLINK', 'linklabel' => $userModel->getDisplayName(), 'linkurl' => '', 'linkicon' => '', 'childlinks' => array(array('linktype' => 'HEADERLINK', 'linklabel' => 'LBL_MY_PREFERENCES', 'linkurl' => $userModel->getPreferenceDetailViewUrl(), 'linkicon' => ''), array('linktype' => 'HEADERLINK', 'linklabel' => 'LBL_SIGN_OUT', 'linkurl' => '?module=Users&parent=Settings&action=Logout', 'linkicon' => '')));
array_push($headerLinks, $userPersonalSettingsLinks);
if ($userModel->isAdminUser()) {
$crmSettingsLink = array('linktype' => 'HEADERLINK', 'linklabel' => 'LBL_SYSTEM_SETTINGS', 'linkurl' => '', 'linkicon' => 'setting.png', 'childlinks' => array(array('linktype' => 'HEADERLINK', 'linklabel' => 'LBL_SYSTEM_SETTINGS', 'linkurl' => '?module=Vtiger&parent=Settings&view=Index', 'linkicon' => ''), array('linktype' => 'HEADERLINK', 'linklabel' => 'LBL_MANAGE_USERS', 'linkurl' => '?module=Users&parent=Settings&view=List', 'linkicon' => '')));
array_push($headerLinks, $crmSettingsLink);
}
$headerLinkInstances = array();
$index = 0;
foreach ($headerLinks as $headerLink) {
$headerLinkInstance = Vtiger_Link_Model::getInstanceFromValues($headerLink);
foreach ($headerLink['childlinks'] as $childLink) {
$headerLinkInstance->addChildLink(Vtiger_Link_Model::getInstanceFromValues($childLink));
}
$headerLinkInstances[$index++] = $headerLinkInstance;
}
$headerLinks = Vtiger_Link_Model::getAllByType(Vtiger_Link::IGNORE_MODULE, array('HEADERLINK'));
foreach ($headerLinks as $headerType => $headerLinks) {
foreach ($headerLinks as $headerLink) {
$headerLinkInstances[$index++] = Vtiger_Link_Model::getInstanceFromLinkObject($headerLink);
}
}
return $headerLinkInstances;
}
示例2: getHeaderLinks
/**
* Function to get the list of Header Links
* @return <Array> - List of Vtiger_Link_Model instances
*/
function getHeaderLinks()
{
global $log;
$appUniqueKey = vglobal('application_unique_key');
$vtigerCurrentVersion = vglobal('vtiger_current_version');
$site_URL = vglobal('site_URL');
$userModel = Users_Record_Model::getCurrentUserModel();
$userEmail = $userModel->get('email1');
$headerLinks = array(array('linktype' => 'HEADERLINK', 'linklabel' => 'LBL_FEEDBACK', 'linkurl' => "javascript:window.open('http://vtiger.com/products/crm/od-feedback/index.php?version=" . $vtigerCurrentVersion . "&email=" . $userEmail . "&uid=" . $appUniqueKey . "&ui=6','feedbackwin','height=400,width=550,top=200,left=300')", 'linkicon' => 'info.png', 'childlinks' => array(array('linktype' => 'HEADERLINK', 'linklabel' => 'LBL_DOCUMENTATION', 'linkurl' => 'https://wiki.vtiger.com/vtiger6/index.php/Main_Page', 'linkicon' => '', 'target' => '_blank'), array('linktype' => 'HEADERLINK', 'linklabel' => 'LBL_VIDEO_TUTORIAL', 'linkurl' => 'https://www.vtiger.com/crm/videos', 'linkicon' => '', 'target' => '_blank'), array('linktype' => 'HEADERLINK', 'linklabel' => 'LBL_FEEDBACK', 'linkurl' => "javascript:window.open('http://vtiger.com/products/crm/od-feedback/index.php?version=" . $vtigerCurrentVersion . "&email=" . $userEmail . "&uid=" . $appUniqueKey . "&ui=6','feedbackwin','height=400,width=550,top=200,left=300')", 'linkicon' => ''))));
if ($userModel->isAdminUser()) {
$crmSettingsLink = array('linktype' => 'HEADERLINK', 'linklabel' => 'LBL_CRM_SETTINGS', 'linkurl' => '', 'linkicon' => 'setting.png', 'childlinks' => array(array('linktype' => 'HEADERLINK', 'linklabel' => 'LBL_CRM_SETTINGS', 'linkurl' => '?module=Vtiger&parent=Settings&view=Index', 'linkicon' => ''), array(), array('linktype' => 'HEADERLINK', 'linklabel' => 'LBL_MANAGE_USERS', 'linkurl' => '?module=Users&parent=Settings&view=List', 'linkicon' => '')));
array_push($headerLinks, $crmSettingsLink);
}
$userPersonalSettingsLinks = array('linktype' => 'HEADERLINK', 'linklabel' => $userModel->getDisplayName(), 'linkurl' => '', 'linkicon' => '', 'childlinks' => array(array('linktype' => 'HEADERLINK', 'linklabel' => 'LBL_MY_PREFERENCES', 'linkurl' => $userModel->getPreferenceDetailViewUrl(), 'linkicon' => ''), array(), array('linktype' => 'HEADERLINK', 'linklabel' => 'LBL_SIGN_OUT', 'linkurl' => '?module=Users&parent=Settings&action=Logout', 'linkicon' => '')));
array_push($headerLinks, $userPersonalSettingsLinks);
$headerLinkInstances = array();
$index = 0;
foreach ($headerLinks as $headerLink) {
$headerLinkInstance = Vtiger_Link_Model::getInstanceFromValues($headerLink);
foreach ($headerLink['childlinks'] as $childLink) {
$headerLinkInstance->addChildLink(Vtiger_Link_Model::getInstanceFromValues($childLink));
}
$headerLinkInstances[$index++] = $headerLinkInstance;
}
$headerLinks = Vtiger_Link_Model::getAllByType(Vtiger_Link::IGNORE_MODULE, array('HEADERLINK'));
foreach ($headerLinks as $headerType => $headerLinks) {
foreach ($headerLinks as $headerLink) {
$headerLinkInstances[$index++] = Vtiger_Link_Model::getInstanceFromLinkObject($headerLink);
}
}
return $headerLinkInstances;
}
示例3: getHeaderLinks
/**
* Function to get the list of Header Links
* @return <Array> - List of Vtiger_Link_Model instances
*/
function getHeaderLinks()
{
$appUniqueKey = vglobal('application_unique_key');
$vtigerCurrentVersion = vglobal('vtiger_current_version');
$site_URL = vglobal('site_URL');
$userModel = Users_Record_Model::getCurrentUserModel();
$userEmail = $userModel->get('email1');
$headerLinks = array(array('linktype' => 'HEADERLINK', 'linklabel' => 'LBL_HELP', 'linkicon' => 'info.png', 'childlinks' => array(array('linktype' => 'HEADERLINK', 'linklabel' => 'LBL_DOCUMENTATION', 'linkurl' => 'http://salesplatform.ru/wiki/index.php/SalesPlatform_vtiger_crm_640', 'linkicon' => '', 'target' => '_blank'), array('linktype' => 'HEADERLINK', 'linklabel' => 'LBL_FEEDBACK', 'linkurl' => 'http://community.salesplatform.ru/forums/', 'target' => '_blank', 'linkicon' => ''))));
if ($userModel->isAdminUser()) {
$crmSettingsLink = array('linktype' => 'HEADERLINK', 'linklabel' => 'LBL_CRM_SETTINGS', 'linkurl' => '', 'linkicon' => 'setting.png', 'childlinks' => array(array('linktype' => 'HEADERLINK', 'linklabel' => 'LBL_CRM_SETTINGS', 'linkurl' => '?module=Vtiger&parent=Settings&view=Index', 'linkicon' => ''), array(), array('linktype' => 'HEADERLINK', 'linklabel' => 'LBL_MANAGE_USERS', 'linkurl' => '?module=Users&parent=Settings&view=List', 'linkicon' => '')));
array_push($headerLinks, $crmSettingsLink);
}
$userPersonalSettingsLinks = array('linktype' => 'HEADERLINK', 'linklabel' => $userModel->getDisplayName(), 'linkurl' => '', 'linkicon' => '', 'childlinks' => array(array('linktype' => 'HEADERLINK', 'linklabel' => 'LBL_MY_PREFERENCES', 'linkurl' => $userModel->getPreferenceDetailViewUrl(), 'linkicon' => ''), array(), array('linktype' => 'HEADERLINK', 'linklabel' => 'LBL_SIGN_OUT', 'linkurl' => '?module=Users&parent=Settings&action=Logout', 'linkicon' => '')));
array_push($headerLinks, $userPersonalSettingsLinks);
$headerLinkInstances = array();
$index = 0;
foreach ($headerLinks as $headerLink) {
$headerLinkInstance = Vtiger_Link_Model::getInstanceFromValues($headerLink);
foreach ($headerLink['childlinks'] as $childLink) {
$headerLinkInstance->addChildLink(Vtiger_Link_Model::getInstanceFromValues($childLink));
}
$headerLinkInstances[$index++] = $headerLinkInstance;
}
$headerLinks = Vtiger_Link_Model::getAllByType(Vtiger_Link::IGNORE_MODULE, array('HEADERLINK'));
foreach ($headerLinks as $headerType => $headerLinks) {
foreach ($headerLinks as $headerLink) {
$headerLinkInstances[$index++] = Vtiger_Link_Model::getInstanceFromLinkObject($headerLink);
}
}
return $headerLinkInstances;
}
示例4: getHeaderLinks
/**
* Function to get the list of Header Links
* @return <Array> - List of Vtiger_Link_Model instances
*/
public function getHeaderLinks(Vtiger_Request $request)
{
$userModel = Users_Record_Model::getCurrentUserModel();
$headerLinks = [];
if ($userModel->isAdminUser()) {
if ($request->get('parent') != 'Settings') {
$headerLinks[] = ['linktype' => 'HEADERLINK', 'linklabel' => 'LBL_SYSTEM_SETTINGS', 'linkurl' => 'index.php?module=Vtiger&parent=Settings&view=Index', 'glyphicon' => 'glyphicon glyphicon-cog'];
} else {
$headerLinks[] = ['linktype' => 'HEADERLINK', 'linklabel' => 'LBL_USER_PANEL', 'linkurl' => 'index.php', 'glyphicon' => 'glyphicon glyphicon-user'];
}
}
//TODO To remove in the future
if (AppConfig::security('SHOW_MY_PREFERENCES')) {
$headerLinks[] = ['linktype' => 'HEADERLINK', 'linklabel' => 'LBL_MY_PREFERENCES', 'linkurl' => $userModel->getPreferenceDetailViewUrl(), 'glyphicon' => 'glyphicon glyphicon-tasks'];
}
$headerLinks[] = ['linktype' => 'HEADERLINK', 'linklabel' => 'LBL_SIGN_OUT', 'linkurl' => 'index.php?module=Users&parent=Settings&action=Logout', 'glyphicon' => 'glyphicon glyphicon-off'];
if (Users_Module_Model::getSwitchUsers()) {
$headerLinks[] = ['linktype' => 'HEADERLINK', 'linklabel' => 'SwitchUsers', 'linkurl' => '', 'glyphicon' => 'glyphicon glyphicon-transfer', 'nocaret' => true, 'linkdata' => ['url' => $userModel->getSwitchUsersUrl()], 'linkclass' => 'showModal'];
}
$headerLinkInstances = [];
foreach ($headerLinks as $headerLink) {
$headerLinkInstance = Vtiger_Link_Model::getInstanceFromValues($headerLink);
if (isset($headerLink['childlinks'])) {
foreach ($headerLink['childlinks'] as $childLink) {
$headerLinkInstance->addChildLink(Vtiger_Link_Model::getInstanceFromValues($childLink));
}
}
$headerLinkInstances[] = $headerLinkInstance;
}
$headerLinks = Vtiger_Link_Model::getAllByType(Vtiger_Link::IGNORE_MODULE, ['HEADERLINK']);
foreach ($headerLinks as $headerType => $headerLinks) {
foreach ($headerLinks as $headerLink) {
$headerLinkInstances[] = Vtiger_Link_Model::getInstanceFromLinkObject($headerLink);
}
}
return $headerLinkInstances;
}
示例5: getHeaderLinks
/**
* Function to get the list of Header Links
* @return <Array> - List of Vtiger_Link_Model instances
*/
function getHeaderLinks()
{
$userModel = Users_Record_Model::getCurrentUserModel();
$headerLinks = [];
$userPersonalSettingsLinks = array('linktype' => 'HEADERLINK', 'linklabel' => $userModel->getDisplayName(), 'linkurl' => '', 'linkicon' => '', 'childlinks' => array(array('linktype' => 'HEADERLINK', 'linklabel' => 'LBL_SIGN_OUT', 'linkurl' => '?module=Users&parent=Settings&action=Logout', 'linkicon' => '')));
array_push($headerLinks, $userPersonalSettingsLinks);
if ($userModel->isAdminUser()) {
$crmSettingsLink = array('linktype' => 'HEADERLINK', 'linklabel' => 'LBL_SYSTEM_SETTINGS', 'linkurl' => '', 'linkicon' => 'setting.png', 'nocaret' => true, 'childlinks' => array(array('linktype' => 'HEADERLINK', 'linklabel' => 'LBL_SYSTEM_SETTINGS', 'linkurl' => '?module=Vtiger&parent=Settings&view=Index', 'linkicon' => ''), array('linktype' => 'HEADERLINK', 'linklabel' => 'LBL_MANAGE_USERS', 'linkurl' => '?module=Users&parent=Settings&view=List', 'linkicon' => '')));
array_push($headerLinks, $crmSettingsLink);
}
require 'user_privileges/switchUsers.php';
$baseUserId = $userModel->getId();
if (Vtiger_Session::has('baseUserId') && Vtiger_Session::get('baseUserId') != '') {
$baseUserId = Vtiger_Session::get('baseUserId');
}
if (key_exists($baseUserId, $switchUsers)) {
$childlinks = [];
if (Vtiger_Session::has('baseUserId') && Vtiger_Session::get('baseUserId') != '') {
$user = new Users();
$currentUser = $user->retrieveCurrentUserInfoFromFile($baseUserId);
$userName = $currentUser->column_fields['first_name'] . ' ' . $currentUser->column_fields['last_name'];
$childlinks[] = ['linktype' => 'HEADERLINK', 'linklabel' => $userName, 'linkurl' => '?module=Users&action=SwitchUsers&id=' . $baseUserId, 'linkicon' => ''];
$childlinks[] = ['linktype' => 'HEADERLINK', 'linklabel' => NULL];
}
foreach ($switchUsers[$baseUserId] as $userid => $userName) {
if ($userid != $baseUserId) {
$childlinks[] = ['linktype' => 'HEADERLINK', 'linklabel' => $userName, 'linkurl' => '?module=Users&action=SwitchUsers&id=' . $userid, 'linkicon' => ''];
}
}
$customHeaderLinks = ['linktype' => 'HEADERLINK', 'linklabel' => 'SwitchUsers', 'linkurl' => '', 'linkicon' => 'glyphicon glyphicon-transfer', 'nocaret' => true, 'childlinks' => $childlinks];
array_push($headerLinks, $customHeaderLinks);
}
$headerLinkInstances = [];
$index = 0;
foreach ($headerLinks as $headerLink) {
$headerLinkInstance = Vtiger_Link_Model::getInstanceFromValues($headerLink);
if (isset($headerLink['childlinks'])) {
foreach ($headerLink['childlinks'] as $childLink) {
$headerLinkInstance->addChildLink(Vtiger_Link_Model::getInstanceFromValues($childLink));
}
}
$headerLinkInstances[$index++] = $headerLinkInstance;
}
$headerLinks = Vtiger_Link_Model::getAllByType(Vtiger_Link::IGNORE_MODULE, ['HEADERLINK']);
foreach ($headerLinks as $headerType => $headerLinks) {
foreach ($headerLinks as $headerLink) {
$headerLinkInstances[$index++] = Vtiger_Link_Model::getInstanceFromLinkObject($headerLink);
}
}
return $headerLinkInstances;
}
示例6: getHeaderLinks
/**
* Function to get the list of Header Links
* @return <Array> - List of Vtiger_Link_Model instances
*/
public function getHeaderLinks(Vtiger_Request $request)
{
$userModel = Users_Record_Model::getCurrentUserModel();
$headerLinks = [];
if ($userModel->isAdminUser()) {
if ($request->get('parent') != 'Settings') {
$headerLinks[] = ['linktype' => 'HEADERLINK', 'linklabel' => 'LBL_SYSTEM_SETTINGS', 'linkurl' => 'index.php?module=Vtiger&parent=Settings&view=Index', 'glyphicon' => 'glyphicon glyphicon-cog'];
} else {
$headerLinks[] = ['linktype' => 'HEADERLINK', 'linklabel' => 'LBL_USER_PANEL', 'linkurl' => 'index.php', 'glyphicon' => 'glyphicon glyphicon-user'];
}
}
//TODO To remove in the future
if (SysSecurity::getBoolean('SHOW_MY_PREFERENCES')) {
$headerLinks[] = ['linktype' => 'HEADERLINK', 'linklabel' => 'LBL_MY_PREFERENCES', 'linkurl' => $userModel->getPreferenceDetailViewUrl(), 'glyphicon' => 'glyphicon glyphicon-tasks'];
}
$headerLinks[] = ['linktype' => 'HEADERLINK', 'linklabel' => 'LBL_SIGN_OUT', 'linkurl' => 'index.php?module=Users&parent=Settings&action=Logout', 'glyphicon' => 'glyphicon glyphicon-off'];
require 'user_privileges/switchUsers.php';
$baseUserId = $userModel->getId();
if (Vtiger_Session::has('baseUserId') && Vtiger_Session::get('baseUserId') != '') {
$baseUserId = Vtiger_Session::get('baseUserId');
}
if (key_exists($baseUserId, $switchUsers)) {
$childlinks = [];
if (Vtiger_Session::has('baseUserId') && Vtiger_Session::get('baseUserId') != '') {
$entityData = Vtiger_Functions::getEntityModuleInfo('Users');
$user = new Users();
$currentUser = $user->retrieveCurrentUserInfoFromFile($baseUserId);
$colums = [];
foreach (explode(',', $entityData['fieldname']) as $fieldname) {
$colums[] = $currentUser->column_fields[$fieldname];
}
$userName = implode(' ', $colums);
$childlinks[] = ['linktype' => 'HEADERLINK', 'linklabel' => $userName, 'linkurl' => '?module=Users&action=SwitchUsers&id=' . $baseUserId, 'linkicon' => ''];
$childlinks[] = ['linktype' => 'HEADERLINK', 'linklabel' => NULL];
}
foreach ($switchUsers[$baseUserId] as $userid => $userName) {
if ($userid != $baseUserId) {
$childlinks[] = ['linktype' => 'HEADERLINK', 'linklabel' => $userName, 'linkurl' => '?module=Users&action=SwitchUsers&id=' . $userid, 'linkicon' => ''];
}
}
$customHeaderLinks = ['linktype' => 'HEADERLINK', 'linklabel' => 'SwitchUsers', 'linkurl' => '', 'glyphicon' => 'glyphicon glyphicon-transfer', 'nocaret' => true, 'childlinks' => $childlinks];
if (count($childlinks)) {
array_push($headerLinks, $customHeaderLinks);
}
}
$headerLinkInstances = [];
foreach ($headerLinks as $headerLink) {
$headerLinkInstance = Vtiger_Link_Model::getInstanceFromValues($headerLink);
if (isset($headerLink['childlinks'])) {
foreach ($headerLink['childlinks'] as $childLink) {
$headerLinkInstance->addChildLink(Vtiger_Link_Model::getInstanceFromValues($childLink));
}
}
$headerLinkInstances[] = $headerLinkInstance;
}
$headerLinks = Vtiger_Link_Model::getAllByType(Vtiger_Link::IGNORE_MODULE, ['HEADERLINK']);
foreach ($headerLinks as $headerType => $headerLinks) {
foreach ($headerLinks as $headerLink) {
$headerLinkInstances[] = Vtiger_Link_Model::getInstanceFromLinkObject($headerLink);
}
}
return $headerLinkInstances;
}
示例7: getHeaderLinks
//.........这里部分代码省略.........
'linklabel' => 'LBL_DOCUMENTATION',
'linkurl' => 'http://salesplatform.ru/wiki/index.php/SalesPlatform_vtiger_crm_630',
'target' => '_blank'
),
array ()
)
);
//////////////////////////////////////////////////////////////////////////////
// sysmenu из sysmenu.inc.php
$incHeaderLinks = array();
global $WERPASCOPEDIR;
include($WERPASCOPEDIR . '/sysmenu.inc.php');
//////////////////////////////////////////////////////////////////////////////
// sysmenu из SysVars
$sysmenu_vars = SysVars::getVars('sysmenu');
// переносим список сортировки
if (array_key_exists('sort', $sysmenu_vars)) {
$headerSortList = Zend_Json::decode(decode_html($sysmenu_vars['sort']));
}
else if (isset($incHeaderSortList)) {
$headerSortList = $incHeaderSortList;
}
else {
$headerSortList = Array("toch", "info", "admin", "user");
}
// Сформируем меню из трех массивов
foreach($headerSortList as $key) {
if($key == 'admin' && !$userModel->isAdminUser()) continue;
if ($defHeaderLinks[$key]) $headerLinks[$key] = $defHeaderLinks[$key];
if ($incHeaderLinks[$key]) {
$tempChildlinks = $headerLinks[$key]['childlinks'];
$newHeaderLinks = $incHeaderLinks[$key];
$headerLinks[$key] = ($headerLinks[$key]) ? array_replace($headerLinks[$key], $newHeaderLinks) : $newHeaderLinks;
if($newHeaderLinks['childupdate'] && $newHeaderLinks['childlinks'] && $tempChildlinks) { // если надо дописать подпункты, а не заменить
switch($newHeaderLinks['childupdate']) {
case 'top':
$headerLinks[$key]['childlinks'] = array_merge($newHeaderLinks['childlinks'], $tempChildlinks); break;
case 'bottom':
$headerLinks[$key]['childlinks'] = array_merge($tempChildlinks, $newHeaderLinks['childlinks']); break;
}
unset($headerLinks[$key]['childupdate']);
}
}
if ($sysmenu_vars[$key]) {
$tempChildlinks = $headerLinks[$key]['childlinks'];
$newHeaderLinks = Zend_Json::decode(decode_html($sysmenu_vars[$key]));
$headerLinks[$key] = ($headerLinks[$key]) ? array_replace($headerLinks[$key], $newHeaderLinks) : $newHeaderLinks;
if($newHeaderLinks['childupdate'] && $newHeaderLinks['childlinks'] && $tempChildlinks) { // если надо дописать подпункты, а не заменить
switch($newHeaderLinks['childupdate']) {
case 'top':
$headerLinks[$key]['childlinks'] = array_merge($newHeaderLinks['childlinks'], $tempChildlinks); break;
case 'bottom':
$headerLinks[$key]['childlinks'] = array_merge($tempChildlinks, $newHeaderLinks['childlinks']); break;
}
unset($headerLinks[$key]['childupdate']);
}
}
$headerLinks[$key]['linktype'] = 'HEADERLINK';
if (array_key_exists('childlinks', $headerLinks[$key])) {
foreach($headerLinks[$key]['childlinks'] as $childKey => $childLink) {
$headerLinks[$key]['childlinks'][$childKey]['linktype'] = 'HEADERLINK';
}
}
}
// Конвертировать headerLinks в ссылки
$headerLinkInstances = array();
$index = 0;
foreach($headerLinks as $headerLink) {
$headerLinkInstance = Vtiger_Link_Model::getInstanceFromValues($headerLink);
foreach($headerLink['childlinks'] as $childLink) {
$headerLinkInstance->addChildLink(Vtiger_Link_Model::getInstanceFromValues($childLink));
}
$headerLinkInstances[$index++] = $headerLinkInstance;
}
$headerLinks = Vtiger_Link_Model::getAllByType(Vtiger_Link::IGNORE_MODULE, array('HEADERLINK'));
foreach($headerLinks as $headerType => $headerLinks) {
foreach($headerLinks as $headerLink) {
$headerLinkInstances[$index++] = Vtiger_Link_Model::getInstanceFromLinkObject($headerLink);
}
}
return $headerLinkInstances;
}