本文整理匯總了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);
}
示例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;
}
示例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;
}
示例4: EndRender
function EndRender()
{
try {
$this->CheckOperationPermitted();
$this->SelectRenderer();
$this->BeforeRenderPageRender();
echo $this->renderer->Render($this);
} catch (Exception $e) {
$this->DisplayErrorPage($e);
die;
}
}
示例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');
}