Phundament-Packages
[ class tree: Phundament-Packages ] [ index: Phundament-Packages ] [ all elements ]

Source for file LMetaTextCriteria.php

Documentation is available at LMetaTextCriteria.php

  1. <?php
  2.  
  3.  
  4. /**
  5.  * Class file.
  6.  *
  7.  * @license http://opensource.org/licenses/mozilla1.1.php Mozilla Public License
  8.  * @copyright 2005, diemeisterei GmbH. All rights reserved.
  9.  * @author $Author: schmunk $
  10.  * @version $Revision: 233 $  $Date: 2006-05-30 17:14:13 +0200 (Di, 30 Mai 2006) $
  11.  * @package Phundament.Packages
  12.  * @subpackage LMetaText
  13.  */
  14.  
  15. /**
  16.  * class
  17.  *
  18.  * @package System.Data
  19.  * @subpackage Criterias
  20.  */
  21. {
  22.     private $_parameters;
  23.  
  24.     function __construct()
  25.     {
  26.         $this->_parametersnew TMap;
  27.         Prado :: using("LMediaManagerCore");
  28.     }
  29.     function setRecordIds($value)
  30.     {
  31.         $this->_parameters['RecordIds']$value;
  32.     }
  33.     function getRecordIds()
  34.     {
  35.         return $this->_parameters['RecordIds'];
  36.     }
  37.  
  38.     function setCategory($value)
  39.     {
  40.         $this->_parameters['Category']$value;
  41.     }
  42.     function getCategory()
  43.     {
  44.         return $this->_parameters['Category'];
  45.     }
  46.  
  47.     function build()
  48.     {
  49.         $cnew Criteria;
  50.  
  51.         if ($param$this->getRecordIds())
  52.         {
  53.             $criterion$c->getNewCriterion(LMetaTextPeer :: IDnullCriteria :: EQUAL);
  54.             foreach ($param AS $id)
  55.             {
  56.                 $_c$c->getNewCriterion(LMetaTextPeer :: ID$id);
  57.                 $criterion->addOr($_c);
  58.             }
  59.             $c->add($criterion);
  60.         }
  61.  
  62.         if ($this->getCategory())
  63.         {
  64.             $_cat$this->getCategory();
  65.             $c->add(LMetaTextPeer :: CATEGORY$_cat);
  66.         }
  67.  
  68.         return $c;
  69.     }
  70. }
  71. ?>

Documentation generated on Sun, 25 Feb 2007 16:11:16 +0100 by phpDocumentor 1.3.1