本文整理汇总了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());
}
示例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();
}
示例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();
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}