Exemplo n.º 1
0
 /**
  * Get pager
  *
  * @access public
  * @return Skeleton\Pager\Web\Pager $pager
  */
 public function get_pager()
 {
     $pager = new Pager('\\Skeleton\\Package\\Stock\\Supplier');
     $pager->add_sort_permission('id');
     $pager->add_sort_permission('company');
     $pager->add_sort_permission('email');
     return $pager;
 }
Exemplo n.º 2
0
 /**
  * Get pager
  *
  * @access public
  * @return Skeleton\Pager\Web\Pager $pager
  */
 public function get_pager()
 {
     $pager = new Pager('\\Skeleton\\Package\\Delivery\\Delivery');
     $pager->add_sort_permission('id');
     if (isset($_POST['shipped'])) {
         if ($_POST['shipped'] == 1) {
             $pager->add_condition('shipped', 1);
         } elseif ($_POST['shipped'] == 0) {
             $pager->add_condition('shipped', 0);
         } else {
             $pager->clear_condition('shipped');
         }
     }
     return $pager;
 }
Exemplo n.º 3
0
 /**
  * Get pager
  *
  * @access public
  * @return Skeleton\Pager\Web\Pager $pager
  */
 public function get_pager()
 {
     $pager = new Pager('\\Skeleton\\Package\\Stock\\Purchase\\Order');
     $pager->add_sort_permission('id');
     $pager->add_sort_permission('company');
     $pager->add_sort_permission('email');
     if (isset($_POST['delivered'])) {
         if ($_POST['delivered'] == 1) {
             $pager->add_condition('purchase_order.delivered', 1);
         } elseif ($_POST['delivered'] == 0) {
             $pager->add_condition('purchase_order.delivered', 0);
         } else {
             $pager->clear_condition('purchase_order.delivered');
         }
     }
     $pager->set_sort('id');
     $pager->set_direction('desc');
     return $pager;
 }
Exemplo n.º 4
0
 /**
  * Get pager
  *
  * @access public
  * @return Skeleton\Pager\Web\Pager $pager
  */
 public function get_pager()
 {
     $pager = new Pager('Skeleton\\Package\\Cms\\Email\\Type');
     $pager->add_sort_permission('id');
     $pager->add_sort_permission('name');
     return $pager;
 }
Exemplo n.º 5
0
 /**
  * Get pager
  *
  * @access public
  * @return Skeleton\Pager\Web\Pager $pager
  */
 public function get_pager()
 {
     $pager = new Pager(\Skeleton\Package\Stock\Config::$object_stock_interface);
     $pager->add_sort_permission('id');
     return $pager;
 }