[ Index ] |
PHP Cross Reference of vtigercrm-6.1.0 |
[Summary view] [Print] [Text view]
1 <?php 2 /*+*********************************************************************************** 3 * The contents of this file are subject to the vtiger CRM Public License Version 1.0 4 * ("License"); You may not use this file except in compliance with the License 5 * The Original Code is: vtiger CRM Open Source 6 * The Initial Developer of the Original Code is vtiger. 7 * Portions created by vtiger are Copyright (C) vtiger. 8 * All Rights Reserved. 9 *************************************************************************************/ 10 11 class Potentials_Record_Model extends Vtiger_Record_Model { 12 13 function getCreateInvoiceUrl() { 14 $invoiceModuleModel = Vtiger_Module_Model::getInstance('Invoice'); 15 return 'index.php?module='.$invoiceModuleModel->getName().'&view='.$invoiceModuleModel->getEditViewName().'&account_id='.$this->get('related_to').'&contact_id='.$this->get('contact_id'); 16 } 17 18 /** 19 * Function returns the url for create event 20 * @return <String> 21 */ 22 function getCreateEventUrl() { 23 $calendarModuleModel = Vtiger_Module_Model::getInstance('Calendar'); 24 return $calendarModuleModel->getCreateEventRecordUrl().'&parent_id='.$this->getId(); 25 } 26 27 /** 28 * Function returns the url for create todo 29 * @return <String> 30 */ 31 function getCreateTaskUrl() { 32 $calendarModuleModel = Vtiger_Module_Model::getInstance('Calendar'); 33 return $calendarModuleModel->getCreateTaskRecordUrl().'&parent_id='.$this->getId(); 34 } 35 36 /** 37 * Function to get List of Fields which are related from Contacts to Inventyory Record 38 * @return <array> 39 */ 40 public function getInventoryMappingFields() { 41 return array( 42 array('parentField'=>'related_to', 'inventoryField'=>'account_id', 'defaultValue'=>''), 43 array('parentField'=>'contact_id', 'inventoryField'=>'contact_id', 'defaultValue'=>''), 44 ); 45 } 46 47 /** 48 * Function returns the url for create quote 49 * @return <String> 50 */ 51 public function getCreateQuoteUrl() { 52 $quoteModuleModel = Vtiger_Module_Model::getInstance('Quotes'); 53 return $quoteModuleModel->getCreateRecordUrl().'&sourceRecord='.$this->getId().'&sourceModule='.$this->getModuleName().'&potential_id='.$this->getId().'&relationOperation=true'; 54 } 55 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Fri Nov 28 20:08:37 2014 | Cross-referenced by PHPXref 0.7.1 |