public function listAction() { $alpha = new Axis_Filter_DbField(); $sort = $alpha->filter($this->_getParam('sort', 'id')); $dir = $alpha->filter($this->_getParam('dir', 'DESC')); $dataset = Axis::single('account/customer_group')->select()->order($sort . ' ' . $dir)->where('id <> ?', Axis_Account_Model_Customer_Group::GROUP_ALL_ID)->fetchAll(); return $this->_helper->json->setData($dataset)->sendSuccess(); }
public function listAction() { $dbField = new Axis_Filter_DbField(); $order = $dbField->filter($this->_getParam('sort', 'id')) . ' ' . $dbField->filter($this->_getParam('dir', 'ASC')); $limit = (int) $this->_getParam('limit', 20); $start = $this->_getParam('start', 0); $select = Axis::single('locale/language')->select()->calcFoundRows()->order($order)->limit($limit, $start); return $this->_helper->json->setData($select->fetchAll())->setCount($select->count())->sendSuccess(); }
/** * Sets default option values for this instance * * @param boolean $allowWhiteSpace * @return void */ public function __construct($allowWhiteSpace = false) { if (null === self::$_unicodeEnabled) { self::$_unicodeEnabled = @preg_match('/\\pL/u', 'a') ? true : false; } }