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


PHP Renderer::Render方法代碼示例

本文整理匯總了PHP中Renderer::Render方法的典型用法代碼示例。如果您正苦於以下問題:PHP Renderer::Render方法的具體用法?PHP Renderer::Render怎麽用?PHP Renderer::Render使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Renderer的用法示例。


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

示例1: Render

 public function Render(Renderer $renderer)
 {
     $superGlobals = GetApplication()->GetSuperGlobals();
     if ($superGlobals->GetGetValueDef(ModalOperation::Param) == ModalOperation::OpenModalEditDialog || $superGlobals->GetGetValueDef(ModalOperation::Param) == ModalOperation::OpenModalInsertDialog) {
         $this->grid->GetGrid()->GetPage()->UpdateValuesFromUrl();
     }
     $this->grid->ProcessMessages();
     echo $renderer->Render($this->grid);
 }
開發者ID:outsourcinggithub,項目名稱:outsourcing,代碼行數:9,代碼來源:modal_edit_handler.php

示例2: GetValue

 public function GetValue(Renderer $renderer)
 {
     $result = '';
     $primaryKeyValues = array();
     ExtractPrimaryKeyValues($primaryKeyValues, METHOD_GET);
     $this->dataset->SetSingleRecordState($primaryKeyValues);
     $this->dataset->Open();
     if ($this->dataset->Next()) {
         if ($this->column == null) {
         } else {
             $result = $renderer->Render($this->column);
         }
     }
     $this->dataset->Close();
     return $result;
 }
開發者ID:martinw0102,項目名稱:ProjetSyst,代碼行數:16,代碼來源:common.php

示例3: GetViewSingleRowColumnViewData

 public function GetViewSingleRowColumnViewData(Renderer $renderer)
 {
     $Row = array();
     $rowValues = $this->GetDataset()->GetFieldValues();
     foreach ($this->GetSingleRecordViewColumns() as $Column) {
         $columnName = $this->GetDataset()->IsLookupField($Column->GetName()) ? $this->GetDataset()->IsLookupFieldNameByDisplayFieldName($Column->GetName()) : $Column->GetName();
         $columnRenderResult = '';
         $customRenderColumnHandled = false;
         $this->OnCustomRenderColumn->Fire(array($columnName, $Column->GetData(), $rowValues, &$columnRenderResult, &$customRenderColumnHandled));
         $columnRenderResult = $customRenderColumnHandled ? $columnRenderResult : $renderer->Render($Column);
         $Row[$columnName] = array('Caption' => $Column->GetCaption(), 'DisplayValue' => $columnRenderResult);
     }
     return $Row;
 }
開發者ID:howareyoucolin,項目名稱:demo,代碼行數:14,代碼來源:grid.php

示例4: EndRender

 function EndRender()
 {
     try {
         $this->CheckOperationPermitted();
         $this->SelectRenderer();
         $this->BeforeRenderPageRender();
         echo $this->renderer->Render($this);
     } catch (Exception $e) {
         $this->DisplayErrorPage($e);
         die;
     }
 }
開發者ID:CivicInfoBC,項目名稱:workplan.gov_ver_1.19,代碼行數:12,代碼來源:page.php

示例5: GetColumnViewData

 private function GetColumnViewData(CustomEditColumn $column, Renderer $renderer)
 {
     return array('FieldName' => $column->GetFieldName(), 'Id' => $column->GetEditControl()->GetName(), 'Editor' => $renderer->Render($column), 'Caption' => $column->GetCaption(), 'Required' => $column->DisplayAsRequired(), 'DisplaySetToNullCheckBox' => $column->GetDisplaySetToNullCheckBox(), 'DisplaySetToDefaultCheckBox' => $column->GetDisplaySetToDefaultCheckBox(), 'IsValueNull' => $column->IsValueNull(), 'IsValueSetToDefault' => $column->IsValueSetToDefault(), 'SetNullCheckBoxName' => $column->GetFieldName() . '_null', 'SetDefaultCheckBoxName' => $column->GetFieldName() . '_def');
 }
開發者ID:outsourcinggithub,項目名稱:outsourcing,代碼行數:4,代碼來源:grid.php


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