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


PHP GridView::render方法代码示例

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


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

示例1: 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

示例2: renderContainingViews

 /**
  * @param WizardActiveForm $form
  * @return string
  */
 protected function renderContainingViews(WizardActiveForm $form)
 {
     $moduleForWorkflowWizardView = new ModuleForWorkflowWizardView($this->model, $form);
     $triggersForWorkflowWizardView = new TriggersForWorkflowWizardView($this->model, $form, true);
     $actionsForWorkflowWizardView = new ActionsForWorkflowWizardView($this->model, $form, true);
     $emailMessagesForWorkflowWizardView = new EmailMessagesForWorkflowWizardView($this->model, $form, true);
     $generalDataForWorkflowWizardView = new GeneralDataForWorkflowWizardView($this->model, $form, true);
     $gridView = new GridView(5, 1);
     $gridView->setView($moduleForWorkflowWizardView, 0, 0);
     $gridView->setView($triggersForWorkflowWizardView, 1, 0);
     $gridView->setView($actionsForWorkflowWizardView, 2, 0);
     $gridView->setView($emailMessagesForWorkflowWizardView, 3, 0);
     $gridView->setView($generalDataForWorkflowWizardView, 4, 0);
     return $gridView->render();
 }
开发者ID:maruthisivaprasad,项目名称:zurmo,代码行数:19,代码来源:OnSaveWorkflowWizardView.php

示例3: renderContainingViews

 /**
  * @param WizardActiveForm $form
  * @return string
  */
 protected function renderContainingViews(WizardActiveForm $form)
 {
     $moduleForReportWizardView = new ModuleForReportWizardView($this->model, $form);
     $filtersForReportWizardView = new FiltersForReportWizardView($this->model, $form, true);
     $displayAttributesForReportWizardView = new DisplayAttributesForReportWizardView($this->model, $form, true);
     $orderBysForReportWizardView = new OrderBysForReportWizardView($this->model, $form, true);
     $generalDataForReportWizardView = new GeneralDataForReportWizardView($this->model, $form, true);
     $gridView = new GridView(5, 1);
     $gridView->setView($moduleForReportWizardView, 0, 0);
     $gridView->setView($filtersForReportWizardView, 1, 0);
     $gridView->setView($displayAttributesForReportWizardView, 2, 0);
     $gridView->setView($orderBysForReportWizardView, 3, 0);
     $gridView->setView($generalDataForReportWizardView, 4, 0);
     return $gridView->render();
 }
开发者ID:youprofit,项目名称:Zurmo,代码行数:19,代码来源:RowsAndColumnsReportWizardView.php

示例4: renderLeftAndRightGridViewContent

 protected function renderLeftAndRightGridViewContent($leftTopView, $leftBottomView, $rightTopView, $renderRightSide)
 {
     assert('$leftTopView instanceof View');
     assert('$leftBottomView instanceof View');
     assert('$rightTopView instanceof View || $rightTopView == null');
     assert('is_bool($renderRightSide)');
     $actionView = new ActionBarForUserEditAndDetailsView($this->controllerId, $this->moduleId, $this->params['relationModel'], 'DetailsLink');
     $content = $actionView->render();
     $leftVerticalGridView = new GridView(2, 1);
     $leftVerticalGridView->setView($leftTopView, 0, 0);
     $leftVerticalGridView->setView($leftBottomView, 1, 0);
     $content .= $leftVerticalGridView->render();
     if ($renderRightSide) {
         $rightVerticalGridView = new GridView(1, 1);
         $rightVerticalGridView->setView($rightTopView, 0, 0);
         $content .= $rightVerticalGridView->render();
     }
     return $content;
 }
开发者ID:sandeep1027,项目名称:zurmo_,代码行数:19,代码来源:UserDetailsAndRelationsView.php

示例5: renderLeftAndRightGridViewContent

 /**
  * @param $leftTopView
  * @param $leftBottomView
  * @param $rightTopView
  * @param bool $renderRightSide
  * @return string
  */
 protected function renderLeftAndRightGridViewContent($leftTopView, $leftBottomView, $rightTopView, $renderRightSide)
 {
     assert('$leftTopView instanceof View');
     assert('$leftBottomView instanceof View');
     assert('$rightTopView instanceof View || $rightTopView == null');
     assert('is_bool($renderRightSide)');
     $actionView = new ActionBarForUserEditAndDetailsView($this->controllerId, $this->moduleId, $this->params['relationModel'], 'UserDetailsMenu');
     $content = $actionView->render();
     $leftVerticalGridView = new GridView(2, 1);
     $leftVerticalGridView->setView($leftTopView, 0, 0);
     $leftVerticalGridView->setView($leftBottomView, 1, 0);
     $content .= $leftVerticalGridView->render();
     if ($renderRightSide) {
         $this->setCssClasses(array_merge($this->getCssClasses(), array('double-column')));
         $rightVerticalGridView = new GridView(1, 1);
         $rightVerticalGridView->setView($rightTopView, 0, 0);
         $content .= $rightVerticalGridView->render();
     } else {
         $this->setCssClasses(array_merge($this->getCssClasses(), array('single-column')));
     }
     return $content;
 }
开发者ID:maruthisivaprasad,项目名称:zurmo,代码行数:29,代码来源:UserDetailsAndRelationsView.php

示例6: renderContainingViews

 protected function renderContainingViews(WizardActiveForm $form)
 {
     $views = $this->resolveContainingViews($form);
     $rows = count($views);
     $gridView = new GridView($rows, 1);
     foreach ($views as $row => $view) {
         $gridView->setView($view, $row, 0);
     }
     $content = $gridView->render();
     return $content;
 }
开发者ID:maruthisivaprasad,项目名称:zurmo,代码行数:11,代码来源:EmailTemplateWizardView.php

示例7: renderLeftAndRightGridViewContent

 protected function renderLeftAndRightGridViewContent($leftTopView, $leftBottomView, $rightTopView, $renderRightSide)
 {
     assert('$leftTopView instanceof View');
     assert('$leftBottomView instanceof View');
     assert('$rightTopView instanceof View || $rightTopView == null');
     assert('is_bool($renderRightSide)');
     $leftVerticalGridView = new GridView(2, 1);
     $leftVerticalGridView->setView($leftTopView, 0, 0);
     $leftVerticalGridView->setView($leftBottomView, 1, 0);
     $content = $leftVerticalGridView->render();
     if ($renderRightSide) {
         $this->setCssClasses(array_merge($this->getCssClasses(), array('double-column')));
         $rightVerticalGridView = new GridView(1, 1);
         $rightVerticalGridView->setView($rightTopView, 0, 0);
         $content .= $rightVerticalGridView->render();
     } else {
         $this->setCssClasses(array_merge($this->getCssClasses(), array('single-column')));
     }
     return $content;
 }
开发者ID:youprofit,项目名称:Zurmo,代码行数:20,代码来源:DetailsAndRelationsView.php


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