本文整理汇总了PHP中Openbiz\Openbiz::getWebpageObject方法的典型用法代码示例。如果您正苦于以下问题:PHP Openbiz::getWebpageObject方法的具体用法?PHP Openbiz::getWebpageObject怎么用?PHP Openbiz::getWebpageObject使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Openbiz\Openbiz
的用法示例。
在下文中一共展示了Openbiz::getWebpageObject方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: renderView
/**
* Render a bizview
*
* @param string $viewName name of bizview
* @param string $rule the search rule of a bizform who is not depent on (a subctrl of) another bizform
* @return void
*/
public function renderView($viewName, $form = "", $rule = "", $params = null, $hist = "")
{
/* @var $webpage \Openbiz\Easy\WebPage */
if ($viewName == "__DynPopup") {
$webpage = Openbiz::getWebpageObject($viewName);
$webpage->render();
return;
}
$this->setCurrentViewName($viewName);
$webpage = Openbiz::getWebpageObject($viewName);
if (!$webpage) {
return;
}
$viewSet = $webpage->getViewSet();
$this->setCurrentViewSet($viewSet);
$this->getSessionContext()->clearSessionObjects(true);
if ($hist == "N") {
// clean view history
$webpage->cleanViewHistory();
}
if ($form != "" && $rule != "") {
$webpage->processRule($form, $rule, TRUE);
}
if ($params) {
$webpage->setParameters($params);
}
if (isset($_GET['mode'])) {
// can specify mode of form
$webpage->setFormMode($form, $_GET['mode']);
}
$webpage->render();
}