/** * */ public function getACLWorldHTMLFormBundle($po_request, $ps_form_name, $pa_options = null) { $vs_view_path = isset($pa_options['viewPath']) && $pa_options['viewPath'] ? $pa_options['viewPath'] : $po_request->getViewsDirectoryPath(); $o_view = new View($po_request, "{$vs_view_path}/bundles/"); require_once __CA_MODELS_DIR__ . '/ca_acl.php'; $t_acl = new ca_acl(); $vn_access = 0; if ($t_acl->load(array('group_id' => null, 'user_id' => null, 'table_num' => $this->tableNum(), 'row_id' => $this->getPrimaryKey()))) { // try to load existing record $vn_access = $t_acl->get('access'); } else { $vn_access = $this->getAppConfig()->get('default_item_access_level'); } $o_view->setVar('t_instance', $this); $o_view->setVar('table_num', $pn_table_num); $o_view->setVar('id_prefix', $ps_form_name); $o_view->setVar('request', $po_request); $o_view->setVar('t_group', $t_group); $o_view->setVar('initialValue', $vn_access); return $o_view->render('ca_acl_world.php'); }