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


PHP X2Model::getModuleModelName方法代码示例

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


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

示例1: getModuleModel

 /**
  * Returns model of module associated with current controller
  * Precondition: model is an instance of X2Model
  * @return object model
  */
 public static function getModuleModel()
 {
     return X2Model::model(X2Model::getModuleModelName());
 }
开发者ID:tymiles003,项目名称:X2CRM,代码行数:9,代码来源:X2Model.php

示例2: array

    echo X2Html::editRecordButton($model);
}
echo X2Html::emailFormButton();
echo X2Html::inlineEditButtons();
?>
</div>
</div>
</div>
<div id="main-column" <?php 
echo $layoutManager->columnWidthStyleAttr(1);
?>
>

<?php 
$form = $this->beginWidget('CActiveForm', array('id' => 'accounts-form', 'enableAjaxValidation' => false, 'action' => array('saveChanges', 'id' => $model->id)));
$this->widget('DetailView', array('model' => $model));
// $this->renderPartial('application.components.views.@DETAILVIEW',array('model'=>$model,'form'=>$form,'modelName'=>'accounts'));
$this->endWidget();
$this->widget('InlineEmailForm', array('attributes' => array('to' => implode(', ', $model->getRelatedContactsEmails()), 'modelName' => 'Accounts', 'modelId' => $model->id), 'templateType' => 'email', 'insertableAttributes' => array(Yii::t('accounts', '{module} Attributes', array('{module}' => Modules::displayName(false))) => $model->getEmailInsertableAttrs()), 'startHidden' => true));
?>
    <div id="quote-form-wrapper">
        <?php 
$this->widget('InlineQuotes', array('startHidden' => true, 'recordId' => $model->id, 'account' => $model->name, 'modelName' => X2Model::getModuleModelName()));
?>
    </div>
<?php 
$this->widget('ModelFileUploader', array('associationId' => $model->id, 'associationType' => 'accounts'));
?>
</div>
<?php 
$this->widget('X2WidgetList', array('layoutManager' => $layoutManager, 'block' => 'center', 'model' => $model, 'modelType' => 'accounts'));
开发者ID:dsyman2,项目名称:X2CRM,代码行数:31,代码来源:view.php

示例3: array

    $accountName = $linkModel->name;
} else {
    $accountName = '';
}
$createContactUrl = $this->createUrl('/contacts/contacts/create');
$createAccountUrl = $this->createUrl('/accounts/accounts/create');
$createOpportunityUrl = $this->createUrl('/opportunities/opportunities/create');
$createCaseUrl = $this->createUrl('/services/services/create');
$assignedTo = $model->assignedTo;
$tooltip = Yii::t('contacts', 'Create a new {opportunity} associated with this {contact}.', array('{contact}' => $modTitles['contact'], '{opportunity}' => $modTitles['opportunity']));
$contactTooltip = Yii::t('contacts', 'Create a new {contact} associated with this {contact}.', array('{contact}' => $modTitles['contact']));
$accountsTooltip = Yii::t('contacts', 'Create a new {account} associated with this {contact}.', array('{contact}' => $modTitles['contact'], '{account}' => $modTitles['account']));
$caseTooltip = Yii::t('contacts', 'Create a new {service} Case associated with this {contact}.', array('{contact}' => $modTitles['contact'], '{service}' => Modules::displayName(false, "Services")));
$contactName = $model->firstName . ' ' . $model->lastName;
$phone = $model->phone;
$website = $model->website;
$leadSource = $model->leadSource;
$leadtype = $model->leadtype;
$leadStatus = $model->leadstatus;
//*** End Create Related models ***/
$this->widget('Attachments', array('associationType' => 'contacts', 'associationId' => $model->id, 'startHidden' => true));
?>
    <div id="quote-form-wrapper">
        <?php 
$this->widget('InlineQuotes', array('startHidden' => true, 'recordId' => $model->id, 'contactId' => $model->id, 'account' => $model->getLinkedAttribute('company', 'name'), 'modelName' => X2Model::getModuleModelName()));
?>
    </div>

</div>
<?php 
$this->widget('X2WidgetList', array('model' => $model, 'layoutManager' => $layoutManager, 'widgetParamsByWidgetName' => array('InlineRelationshipsWidget' => array('defaultsByRelatedModelType' => array('Accounts' => array('name' => $accountName, 'assignedTo' => $assignedTo, 'phone' => $phone, 'website' => $website), 'Contacts' => array('company' => $accountName, 'assignedTo' => $assignedTo, 'leadSource' => $leadSource, 'leadtype' => $leadtype, 'leadstatus' => $leadStatus), 'Opportunity' => array('accountName' => $accountName, 'assignedTo' => $assignedTo), 'Services' => array('contactName' => $contactName, 'assignedTo' => $assignedTo))))));
开发者ID:keyeMyria,项目名称:CRM,代码行数:31,代码来源:view.php

示例4: array

    <?php 
echo CHtml::link('<span></span>', $this->createUrl('update', array('id' => $model->id)), array('class' => 'x2-button icon edit right', 'title' => Yii::t('app', 'Edit {X}', array('{X}' => $moduleConfig['recordName']))));
echo CHtml::link('<img src="' . Yii::app()->request->baseUrl . '/themes/x2engine/images/icons/email_button.png' . '"></img>', '#', array('class' => 'x2-button icon right email', 'title' => Yii::t('app', 'Open email form'), 'onclick' => 'toggleEmailForm(); return false;'));
?>
</div>
</div>
</div>
<div id="main-column" class="half-width">
<?php 
$this->widget('DetailView', array('model' => $model));
//$this->renderPartial('application.components.views.@DETAILVIEW',array('model'=>$model, 'modelName'=>'templates'));
?>

<?php 
$this->widget('InlineEmailForm', array('attributes' => array('to' => implode(', ', $model->getRelatedContactsEmails()), 'modelName' => get_class($model), 'modelId' => $model->id), 'insertableAttributes' => array(Yii::t('module', '{modelName} Attributes', array('{modelName}' => get_class($model))) => $model->getEmailInsertableAttrs($model)), 'startHidden' => true));
$this->widget('Attachments', array('associationType' => 'templates', 'associationId' => $model->id, 'startHidden' => true));
$this->widget('X2WidgetList', array('model' => $model));
?>
<div id="quote-form-wrapper">
    <?php 
$this->widget('InlineQuotes', array('startHidden' => true, 'contactId' => $model->id, 'modelName' => X2Model::getModuleModelName()));
?>
</div>
</div>
<div class="history half-width">
<?php 
$this->widget('Publisher', array('associationType' => 'templates', 'associationId' => $model->id, 'assignedTo' => Yii::app()->user->getName(), 'calendar' => false));
$this->widget('History', array('associationType' => 'templates', 'associationId' => $model->id));
?>
</div>
开发者ID:tymiles003,项目名称:X2CRM,代码行数:30,代码来源:view.php


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