本文整理汇总了PHP中xepan\base\Page::recursiveRender方法的典型用法代码示例。如果您正苦于以下问题:PHP Page::recursiveRender方法的具体用法?PHP Page::recursiveRender怎么用?PHP Page::recursiveRender使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类xepan\base\Page
的用法示例。
在下文中一共展示了Page::recursiveRender方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: recursiveRender
function recursiveRender()
{
// if folder is wrong for model folder not loaded so return
if ($this->folder_id === 0) {
return parent::recursiveRender();
}
// on click on new button open modal popup
$js = [$this->js()->_selector('#' . $this->modal_popup->name)->modal(), $this->js()->_selector("#" . $this->modal_popup->name . " .modal-header h4")->text($this->js()->_selectorThis()->data('title')), $this->js()->_selector("#" . $this->modal_popup->name . " #" . $this->field_new_type->name)->val($this->js()->_selectorThis()->data('documenttype'))];
$this->action->js('click', $js)->_selector('li.xepan-new-document');
// form submition handle
if ($this->form->isSubmitted()) {
try {
$this->api->db->beginTransaction();
$document_model = $this->add('xepan\\hr\\Model_' . $this->form['add_new_document_type']);
$document_model->createNew($this->form['name'], $this->form['folder_id']);
$this->api->db->commit();
} catch (Exception $e) {
$this->api->db->rollback();
$this->form->js()->univ()->errorMessage('error occured ' . $e->message())->execute();
}
$js = [$this->js()->_selector('#' . $this->modal_popup->name)->modal('toggle')];
$this->form->js(null, $js)->univ()->successMessage("Added Successfully")->execute();
}
parent::recursiveRender();
}