Packages

  • dibi
    • drivers
    • nette
    • reflection
  • None
  • PHP

Classes

  • DibiLiteral
  • Overview
  • Package
  • Class
  • Tree
 1: <?php
 2: 
 3: /**
 4:  * This file is part of the "dibi" - smart database abstraction layer.
 5:  *
 6:  * Copyright (c) 2005 David Grudl (http://davidgrudl.com)
 7:  *
 8:  * For the full copyright and license information, please view
 9:  * the file license.txt that was distributed with this source code.
10:  */
11: 
12: 
13: 
14: /**
15:  * SQL literal value.
16:  *
17:  * @author     David Grudl
18:  */
19: class DibiLiteral extends DibiObject
20: {
21:     /** @var string */
22:     private $value;
23: 
24: 
25:     public function __construct($value)
26:     {
27:         $this->value = (string) $value;
28:     }
29: 
30: 
31: 
32:     /**
33:      * @return string
34:      */
35:     public function __toString()
36:     {
37:         return $this->value;
38:     }
39: 
40: }
41: 
dibi API documentation API documentation generated by ApiGen 2.3.0