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