public static function do_paginate() { $module = new __cms_module(); $module->do_retrieve_from_id([], $_REQUEST['_mid']); $object = new static($module, $_REQUEST['value']); ajax::update($object->get_table()); }
/** * Returns an associative array, where the keys of the array is set to $key * column of each row, and the value is set to the $display column. * * @param string $key the key to use for the array * @param string $display the value to use for the display * @param string $first first value * * @return Result */ public static function select_list($key, $display, $first = NULL) { $class = new static(); $query = $class->query_object()->select([static::$table . '.' . $key, static::$table . '.' . $display])->from($class->get_table())->as_array(); if ($class->_order_by) { foreach ($class->_order_by as $column => $direction) { $query->order_by($column, $direction); } } return $query->get()->to_list($key, $display, $first); }