static function import_by_id($id) { return unref(static::import(static::$config_prefix . $id)); }
function getListMore($page_name) { $page = unref(Page::import($page_name)); if ($r = $this->user_accessibility($page, '>')) { return $r; } $table_name = Input::get('table'); $col = Input::get('col'); $offset = Input::get('offset'); $list_values = DisplayTable::import($table_name)->select_list_values($col, 20, $offset); $next_query = NULL; if (count($list_values) == 20) { $all = Input::all(); $all['offset'] = intval($all['offset']) + 20; $next_query = http_build_query($all); } return view('panel.data.list-more-values', ['list_values' => $list_values, 'next_query' => $next_query]); }