mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-09 11:44:10 +09:00
Updates to Condition - refactored some methods to save calculated values in private properties, so that the parsing won't execute multiple times.
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@9064 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
385d704388
commit
ec0bad3f64
5 changed files with 114 additions and 97 deletions
|
|
@ -10,6 +10,8 @@
|
|||
|
||||
var $column_operation;
|
||||
|
||||
var $_value; // Caches escaped and toString value so that the parsing won't happen multiple times;
|
||||
|
||||
function Argument($name, $value){
|
||||
$this->value = $value;
|
||||
$this->name = $name;
|
||||
|
|
@ -35,8 +37,11 @@
|
|||
}
|
||||
|
||||
function getValue(){
|
||||
if(!isset($this->_value)){
|
||||
$value = $this->getEscapedValue();
|
||||
return $this->toString($value);
|
||||
$this->_value = $this->toString($value);
|
||||
}
|
||||
return $this->_value;
|
||||
}
|
||||
|
||||
function getColumnOperation(){
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue