Source for file Constraint.php

Documentation is available at Constraint.php

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

Documentation generated on Fri, 13 Jan 2006 07:48:00 +0100 by phpDocumentor 1.3.0RC4