本文整理汇总了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);
}
}
}
示例2: OfficeReportsVariablesViewEdit
function OfficeReportsVariablesViewEdit()
{
parent::ViewEdit();
}
示例3: __construct
public function __construct()
{
parent::ViewEdit();
$this->useForSubpanel = true;
$this->useModuleQuickCreateTemplate = true;
}
示例4: BugsViewEdit
function BugsViewEdit()
{
parent::ViewEdit();
}
示例5: DocumentsViewEdit
/**
* @see SugarView::ViewEdit()
*/
function DocumentsViewEdit()
{
parent::ViewEdit();
$this->useForSubpanel = true;
}
示例6: __construct
public function __construct()
{
parent::ViewEdit();
}
示例7: CasesViewEdit
function CasesViewEdit()
{
parent::ViewEdit();
}
示例8: QuotesViewEdit
function QuotesViewEdit()
{
parent::ViewEdit();
}
示例9: xInventoriesViewEdit
function xInventoriesViewEdit()
{
parent::ViewEdit();
}
示例10:
function FP_eventsViewEdit()
{
parent::ViewEdit();
}
示例11: PdfManagerViewEdit
public function PdfManagerViewEdit()
{
parent::ViewEdit();
}
示例12: CallsViewEdit
function CallsViewEdit()
{
parent::ViewEdit();
}
示例13: FavoritesViewEdit
function FavoritesViewEdit()
{
parent::ViewEdit();
}
示例14:
function oqc_OfferingViewEdit()
{
parent::ViewEdit();
}
示例15: ProjectViewTemplatesEdit
function ProjectViewTemplatesEdit()
{
parent::ViewEdit();
}