當前位置: 首頁>>代碼示例>>PHP>>正文


PHP GridView類代碼示例

本文整理匯總了PHP中GridView的典型用法代碼示例。如果您正苦於以下問題:PHP GridView類的具體用法?PHP GridView怎麽用?PHP GridView使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


在下文中一共展示了GridView類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: __construct

 public function __construct(View $view)
 {
     $horizontalGridView = new GridView(1, 1);
     $horizontalGridView->setView($view, 0, 0);
     $this->verticalGridView = new GridView(1, 1);
     $this->verticalGridView->setView($horizontalGridView, 0, 0);
 }
開發者ID:maruthisivaprasad,項目名稱:zurmo,代碼行數:7,代碼來源:InstallView.php

示例2: makeExternalViewForCurrentUser

 public static function makeExternalViewForCurrentUser(View $containedView)
 {
     $horizontalGridView = new GridView(1, 1);
     $containedView->setCssClasses(array_merge($containedView->getCssClasses(), array('AppContent')));
     $horizontalGridView->setView($containedView, 0, 0);
     $verticalGridView = new GridView(1, 1);
     $verticalGridView->setView($horizontalGridView, 0, 0);
     return $verticalGridView;
 }
開發者ID:sandeep1027,項目名稱:zurmo_,代碼行數:9,代碼來源:ZurmoExternalViewUtil.php

示例3: renderListViews

 /**
  * Render a group of lists that contains the search result from GlobalList
  *
  */
 protected function renderListViews()
 {
     $rows = count($this->views);
     $gridView = new GridView($rows, 1);
     $row = 0;
     foreach ($this->views as $view) {
         $gridView->setView($view, $row++, 0);
     }
     return ZurmoHtml::tag('div', array('id' => 'MixedModelsMultipleListsView'), $gridView->render());
 }
開發者ID:maruthisivaprasad,項目名稱:zurmo,代碼行數:14,代碼來源:MixedModelsSearchAndListView.php

示例4: __construct

 public function __construct(CController $controller, SplashView $splashView)
 {
     $applicationName = ZurmoConfigurationUtil::getByModuleName('ZurmoModule', 'applicationName');
     $header = new HeaderLinksView(array(), array());
     $gridView = new GridView(3, 1);
     $gridView->setView($header, 0, 0);
     $gridView->setView($splashView, 1, 0);
     $gridView->setView(new FooterView(), 2, 0);
     parent::__construct($gridView);
 }
開發者ID:maruthisivaprasad,項目名稱:zurmo,代碼行數:10,代碼來源:MarketingListsExternalActionsPageView.php

示例5: __construct

 /**
  * @param CController $controller
  * @param MetadataView $listView
  */
 public function __construct(CController $controller, MetadataView $listView)
 {
     $flashMessageView = new FlashMessageView($controller);
     $gridView = new GridView(3, 1);
     $gridView->setView($listView, 0, 0);
     $gridView->setView($flashMessageView, 1, 0);
     $gridView->setView(new FooterView(), 2, 0);
     $this->registerScripts();
     parent::__construct($gridView);
 }
開發者ID:maruthisivaprasad,項目名稱:zurmo,代碼行數:14,代碼來源:MarketingListsManageSubscriptionsPageView.php

示例6: __construct

 public function __construct(CController $controller, CFormModel $formModel, $extraHeaderContent = null)
 {
     assert('is_string($extraHeaderContent) || $extraHeaderContent == null');
     $loginview = new LoginView($controller, $formModel, $extraHeaderContent);
     $loginview->setCssClasses(array('clearfix', 'background-' . mt_rand(1, 6)));
     $flashMessageView = new FlashMessageView($controller);
     $gridView = new GridView(3, 1);
     $gridView->setView($flashMessageView, 0, 0);
     $gridView->setView($loginview, 1, 0);
     $gridView->setView(new FooterView(false), 2, 0);
     $this->registerScripts();
     parent::__construct($gridView);
 }
開發者ID:youprofit,項目名稱:Zurmo,代碼行數:13,代碼來源:LoginPageView.php

示例7: actionDashboardDetails

 public function actionDashboardDetails()
 {
     $params = array('controllerId' => $this->getId(), 'moduleId' => $this->getModule()->getId());
     $gridViewId = 'notUsed';
     $pageVar = 'notUsed';
     $introView = new MarketingDashboardIntroView(get_class($this->getModule()));
     $actionBarView = new SecuredActionBarForMarketingSearchAndListView('default', 'marketing', new EmailTemplate(), $gridViewId, $pageVar, false, 'MarketingDashboardLink', $introView);
     $marketingDashboardView = new MarketingDashboardView($this->getId(), $this->getModule()->getId(), 'MarketingDashboard', $params);
     $marketingDashboardView->setCssClasses(array('clearfix'));
     $gridView = new GridView(2, 1);
     $gridView->setView($actionBarView, 0, 0);
     $gridView->setView($marketingDashboardView, 1, 0);
     $breadcrumbLinks = static::getDashboardBreadcrumbLinks();
     $view = new MarketingPageView(MarketingDefaultViewUtil::makeViewWithBreadcrumbsForCurrentUser($this, $gridView, $breadcrumbLinks, 'MarketingBreadCrumbView'));
     echo $view->render();
 }
開發者ID:youprofit,項目名稱:Zurmo,代碼行數:16,代碼來源:DefaultController.php

示例8: __construct

 /**
  * @param string $controllerId
  * @param string $moduleId
  * @param array $settingsMenuItems
  * @param array $userMenuItems
  * @param array $shortcutsCreateMenuItems
  * @param array $moduleNamesAndLabels
  * @param string $sourceUrl
  * @param string $applicationName
  */
 public function __construct($controllerId, $moduleId, $settingsMenuItems, $userMenuItems, $shortcutsCreateMenuItems, $moduleNamesAndLabels, $sourceUrl, $applicationName)
 {
     assert('is_string($controllerId)');
     assert('is_string($moduleId)');
     assert('is_array($settingsMenuItems)');
     assert('is_array($userMenuItems)');
     assert('is_array($shortcutsCreateMenuItems)');
     assert('is_array($moduleNamesAndLabels)');
     assert('is_string($sourceUrl)');
     assert('is_string($applicationName) || $applicationName == null');
     $shortcutsCreateMenuView = new ShortcutsCreateMenuView($controllerId, $moduleId, $shortcutsCreateMenuItems);
     $this->verticalGridView = new GridView(2, 1);
     $this->verticalGridView->setView(new HeaderLinksView($settingsMenuItems, $userMenuItems, $applicationName), 0, 0);
     $globalSearchAndShortcutsCreateMenuView = new GlobalSearchAndShortcutsCreateMenuView($moduleNamesAndLabels, $sourceUrl, $shortcutsCreateMenuView);
     $horizontalGridView = new GridView(1, 1);
     $horizontalGridView->setView($globalSearchAndShortcutsCreateMenuView, 0, 0);
     $this->verticalGridView->setView($horizontalGridView, 1, 0);
 }
開發者ID:youprofit,項目名稱:Zurmo,代碼行數:28,代碼來源:HeaderView.php

示例9: __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);
 }
開發者ID:RamaKavanan,項目名稱:InitialVersion,代碼行數:7,代碼來源:ActionBarAndModuleEditView.php

示例10: __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);
 }
開發者ID:maruthisivaprasad,項目名稱:zurmo,代碼行數:7,代碼來源:UserActionBarAndConfigurationEditView.php

示例11: __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);
 }
開發者ID:maruthisivaprasad,項目名稱:zurmo,代碼行數:7,代碼來源:LeadsModuleAttributesListView.php

示例12: __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);
 }
開發者ID:maruthisivaprasad,項目名稱:zurmo,代碼行數:7,代碼來源:UserActionBarAndChangePasswordView.php

示例13: __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

示例14: __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);
 }
開發者ID:maruthisivaprasad,項目名稱:zurmo,代碼行數:7,代碼來源:UserActionBarAndEditView.php

示例15: init

 public function init()
 {
     parent::init();
     if ($this->rankKey === null) {
         if ($this->dataProvider->getItemCount() > 0) {
             $data = $this->dataProvider->data[0];
             $keys = array_keys($data instanceof CActiveRecord ? $data->attributes : $data);
             $this->rankKey = isset($data['rank']) ? 'rank' : $keys[0];
         }
     }
     $hasRankColumn = false;
     foreach ($this->columns as $column) {
         if ($column instanceof RankColumn) {
             $hasRankColumn = true;
             break;
         }
     }
     if ($hasRankColumn === false) {
         array_unshift($this->columns, Yii::createComponent(array('class' => 'RankColumn', 'value' => '$displayRank', 'header' => Yii::t('statistics', 'Rank')), $this));
     }
     $this->lastRank = $this->rank;
     if ($this->count != $this->rank && $this->rankKey !== null) {
         $this->rank++;
         if ($this->dataProvider->getItemCount() > 0) {
             $data = $this->dataProvider->data[0];
             $this->lastRankValue = CHtml::value($data, $this->rankKey);
         }
     }
 }
開發者ID:Baiqiang,項目名稱:fewestmov.es,代碼行數:29,代碼來源:RankGridView.php


注:本文中的GridView類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。