Exemple #1
0
 static function import($name, $set_owner = NULL)
 {
     $me = parent::import($name, $set_owner);
     if (!$me) {
         return NULL;
     }
     foreach ($me->cols as $col) {
         $col->__owner = ref($me);
     }
     return $me;
 }
Exemple #2
0
 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]);
 }