当前位置: 首页>>代码示例>>PHP>>正文


PHP ViewEdit::ViewEdit方法代码示例

本文整理汇总了PHP中ViewEdit::ViewEdit方法的典型用法代码示例。如果您正苦于以下问题:PHP ViewEdit::ViewEdit方法的具体用法?PHP ViewEdit::ViewEdit怎么用?PHP ViewEdit::ViewEdit使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在ViewEdit的用法示例。


在下文中一共展示了ViewEdit::ViewEdit方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: array

 function zd_TicketsViewEdit()
 {
     parent::ViewEdit();
     if ($_REQUEST['return_module'] && $_REQUEST['return_id']) {
         $this->requesters = array();
         switch ($_REQUEST['return_module']) {
             case 'Accounts':
                 $this->referrer = new Account();
                 $this->referrer->retrieve($_REQUEST['return_id']);
                 $count = 0;
                 foreach ($this->referrer->get_contacts() as $contact) {
                     $this->requesters[$contact->email1] = $contact->name;
                 }
                 break;
             case 'Leads':
                 $this->referrer = new Lead();
                 $this->referrer->retrieve($_REQUEST['return_id']);
                 $this->requesters = array($this->referrer->email1 => $this->referrer->name);
                 break;
             case 'Contacts':
                 $this->referrer = new Contact();
                 $this->referrer->retrieve($_REQUEST['return_id']);
                 $this->requesters = array($this->referrer->email1 => $this->referrer->name);
                 break;
             case 'Opportunities':
                 $this->referrer = new Opportunity();
                 $this->referrer->retrieve($_REQUEST['return_id']);
                 $this->referrer->load_relationship('contacts');
                 $query_array = $this->referrer->contacts->getQuery(true);
                 $query_array['select'] = "SELECT contacts.id, contacts.first_name, contacts.last_name, contacts.title, contacts.phone_work, opportunities_contacts.contact_role as opportunity_role, opportunities_contacts.id as opportunity_rel_id ";
                 $query = '';
                 foreach ($query_array as $qstring) {
                     $query .= ' ' . $qstring;
                 }
                 $temp = array('id', 'first_name', 'last_name', 'title', 'phone_work', 'opportunity_role', 'opportunity_rel_id');
                 $contacts = $this->referrer->build_related_list2($query, new Contact(), $temp);
                 foreach ($contacts as $contact) {
                     $contact->retrieve();
                     $this->requesters[$contact->email1] = $contact->name;
                 }
                 break;
         }
         if (sizeof($this->requesters) == 0) {
             $this->requesters = array($this->referrer->email1 => $this->referrer->name);
         }
     }
 }
开发者ID:nunoabc,项目名称:Web2,代码行数:47,代码来源:view.edit.php

示例2: OfficeReportsVariablesViewEdit

 function OfficeReportsVariablesViewEdit()
 {
     parent::ViewEdit();
 }
开发者ID:omusico,项目名称:sugar_work,代码行数:4,代码来源:view.edit.php

示例3: __construct

 public function __construct()
 {
     parent::ViewEdit();
     $this->useForSubpanel = true;
     $this->useModuleQuickCreateTemplate = true;
 }
开发者ID:delkyd,项目名称:sugarcrm_dev,代码行数:6,代码来源:view.edit.php

示例4: BugsViewEdit

 function BugsViewEdit()
 {
     parent::ViewEdit();
 }
开发者ID:omusico,项目名称:sugar_work,代码行数:4,代码来源:view.edit.php

示例5: DocumentsViewEdit

 /**
  * @see SugarView::ViewEdit()
  */
 function DocumentsViewEdit()
 {
     parent::ViewEdit();
     $this->useForSubpanel = true;
 }
开发者ID:omusico,项目名称:sugar_work,代码行数:8,代码来源:view.edit.php

示例6: __construct

 public function __construct()
 {
     parent::ViewEdit();
 }
开发者ID:omusico,项目名称:SelkirkCRM,代码行数:4,代码来源:view.edit.php

示例7: CasesViewEdit

 function CasesViewEdit()
 {
     parent::ViewEdit();
 }
开发者ID:switcode,项目名称:SuiteCRM,代码行数:4,代码来源:view.edit.php

示例8: QuotesViewEdit

 function QuotesViewEdit()
 {
     parent::ViewEdit();
 }
开发者ID:sysraj86,项目名称:carnivalcrm,代码行数:4,代码来源:view.edit.php

示例9: xInventoriesViewEdit

 function xInventoriesViewEdit()
 {
     parent::ViewEdit();
 }
开发者ID:sunmo,项目名称:snowlotus,代码行数:4,代码来源:view.edit.php

示例10:

 function FP_eventsViewEdit()
 {
     parent::ViewEdit();
 }
开发者ID:NALSS,项目名称:SuiteCRM,代码行数:4,代码来源:view.edit.php

示例11: PdfManagerViewEdit

 public function PdfManagerViewEdit()
 {
     parent::ViewEdit();
 }
开发者ID:jglaine,项目名称:sugar761-ent,代码行数:4,代码来源:view.edit.php

示例12: CallsViewEdit

 function CallsViewEdit()
 {
     parent::ViewEdit();
 }
开发者ID:klr2003,项目名称:sourceread,代码行数:4,代码来源:view.edit.php

示例13: FavoritesViewEdit

 function FavoritesViewEdit()
 {
     parent::ViewEdit();
 }
开发者ID:MexinaD,项目名称:SuiteCRM,代码行数:4,代码来源:view.edit.php

示例14:

 function oqc_OfferingViewEdit()
 {
     parent::ViewEdit();
 }
开发者ID:santara12,项目名称:OpenQuotesAndContracts,代码行数:4,代码来源:view.edit.php

示例15: ProjectViewTemplatesEdit

 function ProjectViewTemplatesEdit()
 {
     parent::ViewEdit();
 }
开发者ID:klr2003,项目名称:sourceread,代码行数:4,代码来源:view.templatesedit.php


注:本文中的ViewEdit::ViewEdit方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。