XpressEngine Core  1.11.2
 All Classes Namespaces Files Functions Variables Pages
Public Member Functions | Public Attributes | List of all members
ConditionArgument Class Reference
Inheritance diagram for ConditionArgument:
Argument

Public Member Functions

 __construct ($name, $value, $operation)
 
 createConditionValue ()
 
 getType ()
 
 setColumnType ($column_type)
 
- Public Member Functions inherited from Argument
 __construct ($name, $value)
 
 getType ()
 
 setColumnType ($value)
 
 setColumnOperation ($operation)
 
 getName ()
 
 getValue ()
 
 getPureValue ()
 
 getColumnOperation ()
 
 getEscapedValue ()
 
 getUnescapedValue ()
 
 toString ($value)
 
 escapeValue ($value)
 
 _escapeStringValue ($value)
 
 utf8Replacer ($captures)
 
 isValid ()
 
 isColumnName ()
 
 getErrorMessage ()
 
 ensureDefaultValue ($default_value)
 
 checkFilter ($filter_type)
 
 checkMaxLength ($length)
 
 checkMinLength ($length)
 
 checkNotNull ()
 

Public Attributes

 $operation
 
- Public Attributes inherited from Argument
 $value
 
 $name
 
 $type
 
 $isValid
 
 $errorMessage
 
 $column_operation
 
 $uses_default_value
 
 $_value
 

Detailed Description

Definition at line 10 of file ConditionArgument.class.php.

Constructor & Destructor Documentation

ConditionArgument::__construct (   $name,
  $value,
  $operation 
)

constructor

Parameters
string$name
mixed$value
string$operation
Returns
void

Definition at line 26 of file ConditionArgument.class.php.

Member Function Documentation

ConditionArgument::createConditionValue ( )

create condition value. set $this->value

Returns
void

Definition at line 43 of file ConditionArgument.class.php.

ConditionArgument::getType ( )

Since ConditionArgument is used in WHERE clause, where the argument value is compared to a table column, it is assumed that all arguments have type. There are cases though where the column does not have any type - if it was removed from the XML schema for example - see the is_secret column in xe_documents table. In this case, the column type is retrieved according to argument value type (using the PHP function is_numeric).

Returns
type string

Definition at line 121 of file ConditionArgument.class.php.

ConditionArgument::setColumnType (   $column_type)

Definition at line 137 of file ConditionArgument.class.php.

Member Data Documentation

ConditionArgument::$operation

Definition at line 17 of file ConditionArgument.class.php.


The documentation for this class was generated from the following file: