1234567891011121314151617181920212223242526272829303132333435 |
- <?php
- namespace PHPixie\DB;
- /**
- * This class allows you to wrap fields or values that you don't want to be escaped
- * inside the query
- * @package Database
- */
- class Expression
- {
- /**
- * Part of query that should not be escaped
- * @var mixed
- */
- public $value;
- /**
- * Marks a part of query as a database specific expression,
- * e.g. calls to SQL functions like MAX(), SUBSTR() etc.
- * Example
- * <code>
- * $q->fields($this->pixie->db->expr('COUNT(*)'));
- * </code>
- *
- * @param mixed $value Part of query that should not be escaped
- * @return Expression_Database
- */
- public function __construct($value)
- {
- $this->value = $value;
- }
- }
|