gyro/core/model/base/dbexpression.cls.php
Go to the documentation of this file.00001 <?php 00002 /** 00003 * Takes an expression that is used as is for example when updating 00004 */ 00005 class DBExpression { 00006 /** 00007 * @var string 00008 */ 00009 protected $expression; 00010 00011 /** 00012 * Constructor 00013 */ 00014 public function __construct($expression) { 00015 $this->expression = $expression; 00016 } 00017 00018 /** 00019 * Format this expression 00020 * 00021 * @param mixed $value 00022 * @return string 00023 */ 00024 public function format() { 00025 return $this->expression; 00026 } 00027 }