Source for file Constraint.php

Documentation is available at Constraint.php

  1. <?php
  2. // ---------------------------------------------
  3. // class: Constraint.php
  4. // ---------------------------------------------
  5.  
  6.  
  7. /**
  8. * Represents a constraint. A value constraint is a boolean- valued expression
  9. * of variables and RDF Terms.
  10. *
  11. @author   Tobias Gauss <tobias.gauss@web.de>
  12. @version     $Id: fsource_sparql__sparqlConstraint.php.html,v 1.7 2006/06/26 12:34:18 tgauss Exp $
  13. *
  14. @package sparql
  15. */
  16. Class Constraint extends Object{
  17.  
  18.     /**
  19.     * @var string The expression string.
  20.     */
  21.     private $expression;
  22.  
  23.     /**
  24.     * @var boolean True if it is an outer filter, false if not.
  25.     */
  26.     private $outer;
  27.  
  28.     /**
  29.     * Adds an expression string.
  30.     *
  31.     * @param  String $exp the expression String
  32.     * @return void 
  33.     */
  34.     public function addExpression($exp){
  35.         $this->expression $exp;
  36.     }
  37.  
  38.     /**
  39.     * Returns the expression string.
  40.     *
  41.     * @return String  the expression String
  42.     */
  43.     public function getExpression(){
  44.         return $this->expression;
  45.     }
  46.  
  47.  
  48.     /**
  49.     * Sets the filter type to outer or inner filter.
  50.     * True for outer false for inner.
  51.     *
  52.     * @param  boolean $boolean 
  53.     * @return void 
  54.     */
  55.     public function setOuterFilter($boolean){
  56.         $this->outer $boolean;
  57.     }
  58.  
  59.     /**
  60.     * Returns true if this constraint is an outer filter- false if not.
  61.     *
  62.     * @return boolean 
  63.     */
  64.     public function isOuterFilter(){
  65.         return $this->outer;
  66.     }
  67.  
  68. }
  69. // end class: Constraint.php
  70. ?>

Documentation generated on Mon, 26 Jun 2006 14:25:19 +0200 by phpDocumentor 1.3.0RC6