public function testGenericAddNameObjectWithObjectName() { $this->request->addParam('object', 'User'); $this->request->addServerParam('REQUEST_METHOD', 'get'); $response = generic_list($this->request); $this->assertTrue(isset($response->datas['users'])); }
function view_pages(&$app) { global $lang; $c = new generic_list_conf(); $c->parent_table = 'directories'; $c->parent_view = 'view_pages'; $c->table = 'directories'; $c->values = array('id_directory_type' => get_directory_type_id($app->db, 'category')); $c->child_table = 'directories'; $c->child_view = 'view_pages'; $c->child_values = array('id_directory_type' => get_directory_type_id($app->db, 'product')); $c->have_submit_button = true; generic_list($app, $c); }
function view_classes(&$app) { $c = new generic_list_conf(); $c->child_table = 'obj_classes'; $c->child_view = 'view_class'; $c->have_submit_button = true; generic_list($app, $c); }