Source for file OCSP_FRMCONTR_LIST_FLEXGRID.php

Documentation is available at OCSP_FRMCONTR_LIST_FLEXGRID.php

  1. <?php
  2. /**
  3.   * openCSP class file
  4.   *
  5.   * @project Open CSP-Management
  6.   * @package default
  7.   *
  8.   * @author Peter Krebs <pitlinz@users.sourceforge.net>
  9.   * @license http://opensource.org/licenses/gpl-license.php GNU Public License
  10.   *
  11.   * @since pk-29.05.2008
  12.   * @version $Id$
  13.   */
  14.  
  15. // ---------------------------------------------------------
  16. // requirements
  17. // ---------------------------------------------------------
  18.  
  19. if (!class_exists('OCSP_FRMCONTR_LIST'))
  20. {
  21.     require dirname(__FILE___OCSP_DIRSEP_ "OCSP_FRMCONTR_LIST.phpclass";
  22. }
  23.  
  24. /**
  25.   * openCSP class file
  26.   *
  27.   * @project Open CSP-Management
  28.   * @package default
  29.   *
  30.   * @author Peter Krebs <pitlinz@users.sourceforge.net>
  31.   * @license http://opensource.org/licenses/gpl-license.php GNU Public License
  32.   *
  33.   * @since pk-29.05.2008
  34.   * @version $Id$
  35.   */
  36.     extends OCSP_FRMCONTR_LIST
  37. {
  38.     /*** class constants  --------------------------------------------- */
  39.  
  40.     /**
  41.      * @constant string CLASS_SRC_FILE
  42.      *
  43.      * @abstract
  44.      */
  45.     const CLASS_SRC_FILE = __FILE__;
  46.     
  47.     /*** compostion --------------------------------------------------- */
  48.     
  49.     /*** attributes  -------------------------------------------------- */
  50.     
  51.     /*** factory / construct  ----------------------------------------- */
  52.     
  53.     /*** getter / setter ---------------------------------------------- */
  54.     
  55.     /**
  56.      * returns the jason string for a page
  57.      *
  58.      * @param int $page 
  59.      * @param int $rp 
  60.      * @param string $sortname 
  61.      * @param string $sortorder 
  62.      * @param string $qtype (filter column name)
  63.      * @param string $query (filter value)
  64.      * 
  65.      * @return string 
  66.      */
  67.     public function getJsonPage($page,$rp,$sortname,$sortorder,$qtype="",$query="")
  68.     {            
  69.         $this->setOffset((intval($page)-1$rp);
  70.         $this->setLimit($rp);
  71.  
  72.         if (!empty($query))
  73.         {
  74.             $this->myFilter['?FLEXGRID' $qtype" $qtype=$query
  75.         }
  76.         
  77.     }
  78. }
  79.  
  80. ?>

Documentation generated on Thu, 08 Jan 2009 17:46:31 +0100 by phpDocumentor 1.4.0a2