本文整理汇总了PHP中GridView::__construct方法的典型用法代码示例。如果您正苦于以下问题:PHP GridView::__construct方法的具体用法?PHP GridView::__construct怎么用?PHP GridView::__construct使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类GridView
的用法示例。
在下文中一共展示了GridView::__construct方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: __construct
public function __construct($controllerId, $moduleId, $module, $attributeTypeName, $modelClassName, AttributeForm $attributeForm, $title)
{
parent::__construct(2, 1);
$this->setView(new ActionBarForDesignerModuleView($controllerId, $moduleId, $module, 'DesignerFieldsMenu'), 0, 0);
$attributeTypeEditViewClassName = $attributeTypeName . 'AttributeEditView';
$this->setView(new $attributeTypeEditViewClassName($controllerId, $moduleId, $attributeForm, $title), 1, 0);
}
示例2: __construct
public function __construct($controllerId, $moduleId, UserPasswordForm $userForm)
{
parent::__construct(2, 1);
$this->setView(new ActionBarForUserEditAndDetailsView($controllerId, $moduleId, $userForm->getModel(), 'ChangePasswordMenu'), 0, 0);
$title = strval($userForm) . ': ' . Zurmo::t('UsersModule', 'Change Password');
$this->setView(new UserChangePasswordView($controllerId, $moduleId, $userForm, $title), 1, 0);
}
示例3: __construct
public function __construct($controllerId, $moduleId, RedBeanModel $model, $moduleName)
{
parent::__construct(2, 1);
$this->setView(new ActionBarForUserEditAndDetailsView($controllerId, $moduleId, $model, 'UserEditMenu'), 0, 0);
$editViewClassName = get_class($model) . 'EditView';
$this->setView(new $editViewClassName($controllerId, $moduleId, $model), 1, 0);
}
示例4: __construct
public function __construct($controllerId, $moduleId)
{
parent::__construct(2, 1);
$moduleDisplayName = LeadsModule::getModuleLabelByTypeAndLanguage('Plural');
$this->setView(new ActionBarForDesignerModuleView($controllerId, $moduleId, Yii::app()->getModule('leads'), 'DesignerFieldsLink'), 0, 0);
$this->setView(new AttributesRedirectToContactsView($controllerId, $moduleId), 1, 0);
}
示例5: __construct
public function __construct($controllerId, $moduleId, $modelId, $title, $opportunity, $convertToOpportunitySetting, $userCanCreateOpportunity)
{
assert('$convertToOpportunitySetting != LeadsModule::CONVERT_NO_OPPORTUNITY');
assert('is_bool($userCanCreateOpportunity)');
if ($userCanCreateOpportunity) {
Yii::app()->clientScript->registerScript('leadConvert', "\n \$(document).ready(function()\n {\n \$('#LeadConvertOpportunitySkipView').hide();\n \$('#opportunity-skip-title').hide();\n }\n );\n ");
} else {
Yii::app()->clientScript->registerScript('leadConvert', "\n \$(document).ready(function()\n {\n \$('#opportunity-create-title').hide();\n \$('#OpportunityConvertToView').hide();\n \$('#LeadConvertOpportunitySkipView').hide();\n \$('#opportunity-skip-title').hide();\n }\n );\n ");
}
if ($convertToOpportunitySetting == LeadsModule::CONVERT_OPPORTUNITY_NOT_REQUIRED) {
$gridSize = 2;
} else {
$gridSize = 1;
}
$title = Zurmo::t('LeadsModule', 'LeadsModuleSingularLabel Conversion', LabelUtil::getTranslationParamsForAllModules()) . ': ' . $title;
parent::__construct($gridSize, 1);
$this->setView(new OpportunityConvertToView($controllerId, $moduleId, $opportunity, $modelId), 0, 0);
if ($convertToOpportunitySetting == LeadsModule::CONVERT_OPPORTUNITY_NOT_REQUIRED) {
$this->setView(new LeadConvertOpportunitySkipView($controllerId, $moduleId, $modelId), 1, 0);
}
$this->controllerId = $controllerId;
$this->moduleId = $moduleId;
$this->modelId = $modelId;
$this->convertToOpportunitySetting = $convertToOpportunitySetting;
$this->userCanCreateOpportunity = $userCanCreateOpportunity;
$this->title = $title;
}
示例6: __construct
public function __construct($controllerId, $moduleId, $module, ModuleForm $moduleForm, $title)
{
parent::__construct(2, 1);
$this->setView(new ActionBarForDesignerModuleView($controllerId, $moduleId, $module, 'DesignerGeneralMenu'), 0, 0);
$moduleEditViewClassName = get_class($module) . 'EditView';
$this->setView(new $moduleEditViewClassName($controllerId, $moduleId, $moduleForm, $title), 1, 0);
}
示例7: __construct
public function __construct($controllerId, $moduleId, User $user, ConfigurationForm $formModel)
{
parent::__construct(2, 1);
$this->setView(new ActionBarForUserEditAndDetailsView($controllerId, $moduleId, $user, 'UserConfigurationMenu'), 0, 0);
$title = strval($user) . ': ' . Zurmo::t('ConfigurationModule', 'Configuration');
$this->setView(new UserConfigurationEditView($controllerId, $moduleId, $formModel, $title), 1, 0);
}
示例8: __construct
public function __construct($controllerId, $moduleId, User $user, UserNotificationConfigurationForm $notificationConfigurationForm)
{
parent::__construct(2, 1);
$this->setView(new ActionBarForUserEditAndDetailsView($controllerId, $moduleId, $user, 'UserConfigurationEditLink'), 0, 0);
$title = strval($user) . ': ' . Zurmo::t('Core', 'Notifications Configuration');
$this->setView(new UserNotificationConfigurationEditView('Edit', $controllerId, $moduleId, $notificationConfigurationForm, $title), 1, 0);
}
开发者ID:RamaKavanan,项目名称:InitialVersion,代码行数:7,代码来源:UserActionBarAndNotificationConfigurationEditView.php
示例9: __construct
public function __construct($controllerId, $moduleId, User $user, UserEmailConfigurationForm $emailAccountForm)
{
parent::__construct(2, 1);
$this->setView(new ActionBarForUserEditAndDetailsView($controllerId, $moduleId, $user, 'UserConfigurationEditLink'), 0, 0);
$title = strval($user) . ': ' . Zurmo::t('UsersModule', 'Email Configuration');
$this->setView(new UserEmailConfigurationEditView($controllerId, $moduleId, $emailAccountForm, $title), 1, 0);
}
示例10: __construct
public function __construct($controllerId, $moduleId, $uniqueLayoutId, $model, $params)
{
parent::__construct(2, 1);
$this->setView(new TitleBarView(strval($model)), 0, 0);
$homeDashboardView = new HomeDashboardView($controllerId, $moduleId, $uniqueLayoutId, $model, $params);
$homeDashboardView->setCssClasses(array('clearfix'));
$this->setView($homeDashboardView, 1, 0);
}
示例11: __construct
public function __construct($controllerId, $moduleId, $module, $moduleDisplayName, $standardAttributesCollection, $customAttributesCollection, $modelClassName)
{
parent::__construct(3, 1);
$this->setView(new ActionBarForDesignerModuleView($controllerId, $moduleId, $module, 'DesignerFieldsMenu'), 0, 0);
$title = $moduleDisplayName . ': ' . Zurmo::t('DesignerModule', 'Custom Fields');
$this->setView(new CustomAttributesCollectionView($controllerId, $moduleId, $customAttributesCollection, get_class($module), $modelClassName, $title), 1, 0);
$title = $moduleDisplayName . ': ' . Zurmo::t('DesignerModule', 'Standard Fields');
$this->setView(new AttributesCollectionView($controllerId, $moduleId, $standardAttributesCollection, get_class($module), $modelClassName, $title), 2, 0);
}
示例12: __construct
public function __construct($controllerId, $moduleId, $actionId, $modalListLinkProvider, ModelForm $searchForm, RedBeanModel $model, CDataProvider $dataProvider, $gridIdSuffix = null)
{
assert('$modalListLinkProvider instanceof ModalListLinkProvider');
parent::__construct(2, 1);
$searchViewClassName = static::getSearchViewClassName();
$listViewClassName = static::getListViewClassName();
$this->setView(new $searchViewClassName($searchForm, get_class($model), $gridIdSuffix), 0, 0);
$this->setView(new $listViewClassName($controllerId, $moduleId, $actionId, get_class($model), $modalListLinkProvider, $dataProvider, $gridIdSuffix), 1, 0);
}
示例13: __construct
/**
* @param string $controllerId
* @param string $moduleId
* @param array $roles
*/
public function __construct($controllerId, $moduleId, $roles)
{
assert('$controllerId != null');
assert('$moduleId != null');
assert('is_array($roles)');
parent::__construct(2, 1);
$this->setView(new TitleBarView(Zurmo::t('ZurmoModule', 'Roles'), Zurmo::t('ZurmoModule', 'Home'), 1), 0, 0);
$this->setView(new RolesTreeView($controllerId, $moduleId, $roles), 1, 0);
}
示例14: __construct
public function __construct($controllerId, $moduleId, $form, Group $model, $moduleName, $metadata, $editViewClassName, $activeActionElementType)
{
assert('$form instanceof ModulePermissionsForm ||
$form instanceof RightsForm ||
$form instanceof PoliciesForm');
assert('is_string($activeActionElementType)');
parent::__construct(2, 1);
$this->setView(new ActionBarForGroupEditAndDetailsView($controllerId, $moduleId, $model, $activeActionElementType), 0, 0);
$this->setView(new $editViewClassName('Edit', $controllerId, $moduleId, $form, $model->id, $metadata, strval($model)), 1, 0);
}
示例15: __construct
/**
* @param string $controllerId
* @param string $moduleId
* @param array $leaderboardData
* @param string $activeActionElementType
*/
public function __construct($controllerId, $moduleId, $leaderboardData, $activeActionElementType)
{
assert('is_string($controllerId)');
assert('is_string($moduleId)');
assert('is_array($leaderboardData)');
assert('is_string($activeActionElementType)');
parent::__construct(2, 1);
$this->setView(new TitleBarView(Zurmo::t('GamificationModule', 'Leaderboard'), null, 1), 0, 0);
$this->setView(new LeaderboardView($controllerId, $moduleId, $leaderboardData, $activeActionElementType), 1, 0);
}