Source for file OnpubQueryOptions.php

Documentation is available at OnpubQueryOptions.php

  1. <?php
  2.  
  3. /**
  4.  * Onpub database query options.
  5.  *
  6.  * @author {@link mailto:corey@onpub.com Corey H.M. Taylor}
  7.  * @copyright Onpub (TM). Copyright 2012, Onpub.com.
  8.  *  {@link http://onpub.com/}
  9.  * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License
  10.  *  Version 2
  11.  * @package OnpubAPI
  12.  */
  13. {
  14.   /**
  15.    * Default is FALSE. Set to TRUE if you would like article
  16.    * data to be included in the database query results (where applicable).
  17.    *
  18.    * @var bool 
  19.    */
  20.   public $includeArticles;
  21.   /**
  22.    * Default is FALSE.
  23.    *
  24.    * @var bool 
  25.    */
  26.   public $includeAuthors;
  27.   /**
  28.    * Default is TRUE.
  29.    *
  30.    * @var bool 
  31.    */
  32.   public $includeContent;
  33.   /**
  34.    * Default is FALSE.
  35.    *
  36.    * @var bool 
  37.    */
  38.   public $includeSections;
  39.   /**
  40.    * Default is NULL.
  41.    *
  42.    * @var string 
  43.    */
  44.   public $orderBy;
  45.   /**
  46.    * Default is NULL.
  47.    *
  48.    * @var string 
  49.    */
  50.   public $order;
  51.   /**
  52.    * Default is NULL.
  53.    *
  54.    * @var int 
  55.    */
  56.   public $rowLimit;
  57.   /**
  58.    * Default is NULL.
  59.    *
  60.    * @var DateTime 
  61.    */
  62.   public $dateAfter;
  63.   /**
  64.    * Default is NULL.
  65.    *
  66.    * @var DateTime 
  67.    */
  68.   public $dateLimit;
  69.   /**
  70.    * Default is FALSE.
  71.    *
  72.    * @var bool 
  73.    */
  74.   public $fullTextSearch;
  75.  
  76.   private $page;
  77.  
  78.   function __construct()
  79.   {
  80.     $this->includeArticles = FALSE;
  81.     $this->includeAuthors = FALSE;
  82.     $this->includeContent = TRUE;
  83.     $this->includeSections = FALSE;
  84.     $this->orderBy = NULL;
  85.     $this->order = NULL;
  86.     $this->page NULL;
  87.     $this->rowLimit = NULL;
  88.     $this->dateAfter = NULL;
  89.     $this->dateLimit = NULL;
  90.     $this->fullTextSearch = FALSE;
  91.   }
  92.  
  93.   /**
  94.    * @return int 
  95.    */
  96.   public function getPage()
  97.   {
  98.     return $this->page;
  99.   }
  100.  
  101.   /**
  102.    * Paginate a set of rows.
  103.    *
  104.    * @param int 
  105.    * @param int 
  106.    */
  107.   public function setPage($page$rowLimit)
  108.   {
  109.     $this->page $page;
  110.     $this->rowLimit = $rowLimit;
  111.   }
  112. }
  113. ?>

Documentation generated on Fri, 08 Feb 2013 04:02:21 -0500 by phpDocumentor 1.4.4