本文整理匯總了PHP中Openbiz\Openbiz::getViewObject方法的典型用法代碼示例。如果您正苦於以下問題:PHP Openbiz::getViewObject方法的具體用法?PHP Openbiz::getViewObject怎麽用?PHP Openbiz::getViewObject使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Openbiz\Openbiz
的用法示例。
在下文中一共展示了Openbiz::getViewObject方法的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::getViewObject($viewName);
$webpage->render();
return;
}
$this->setCurrentViewName($viewName);
$webpage = Openbiz::getViewObject($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();
}