Overview

Namespaces

  • zsql
  • PHP

Classes

  • Database
  • Delete
  • Expression
  • ExtendedQuery
  • Insert
  • Model
  • Query
  • Result
  • Select
  • Update

Exceptions

  • Exception
  • Overview
  • Namespace
  • Class
  • Tree
 1: <?php
 2: 
 3: namespace zsql;
 4: 
 5: /**
 6:  * Represents a string that should not be quoted
 7:  */
 8: class Expression
 9: {
10:   /**
11:    * The expression
12:    * 
13:    * @var string 
14:    */
15:   protected $expression;
16:   
17:   /**
18:    * Constructor
19:    * 
20:    * @param string $expr
21:    */
22:   public function __construct($expr)
23:   {
24:     $this->expression = $expr;
25:   }
26:   
27:   /**
28:    * Convert to string
29:    * 
30:    * @return string
31:    */
32:   public function __toString()
33:   {
34:     return (string) $this->expression;
35:   }
36: }
37: 
API documentation generated by ApiGen 2.8.0