/** * The way this is setup filename_frag and filename_real are not set for any admin view of a custom form ... */ function init_admin_view() { $tt = new TableAdmin(); $af =& $this->get_admin_form(); $cf =& $this->get_custom_form(); $db_conn = $af->get_db_conn() != '' ? $af->get_db_conn() : $cf->get_db_conn(); $table_name = $af->get_table_name() != '' ? $af->get_table_name() : $cf->get_table_name(); $tt->set_admin_form($af); $tt->set_privileges_from_admin_form(); $tt->init($db_conn, $table_name); $this->set_table_admin($tt); }