* @copyright Copyright (c) 2008-9 TypeOneError Studios (http://www.typeoneerror.com) * @license MIT ~ http://www.opensource.org/licenses/mit-license.php * @version $Id$ * @link http://typeoneerror.com/asra * @category Asra * @package Db */ /** * Database expression for queries. Will not be * escaped in query/find methods of Asra_Core_Api. * * @todo Doesn't work with anything but where * * @author Ben Borowski * @copyright Copyright (c) 2008-9 TypeOneError Studios (http://www.typeoneerror.com) * @license MIT ~ http://www.opensource.org/licenses/mit-license.php * @link http://typeoneerror.com/asra * @category Asra * @package Db */ class Asra_Db_Expr { //--------------------------------------- // PRIVATE VARIABLES //--------------------------------------- /** * Database expression value * * @var string */ private $__value = ""; //--------------------------------------- // CONSTRUCTOR //--------------------------------------- /** * Constructor. * * @return void */ public function __construct($value) { $this->setValue($value); } //--------------------------------------- // METHODS //--------------------------------------- /** * Return the value of the expression * * @return string */ public function getValue() { return $this->__value; } /** * Set the database expression value. * * @param string $value Value to set. * @return void */ public function setValue($value) { $this->__value = $value; } }