Expression Class Reference
[Logical expressions used in OSQL and Form]

Factory for various childs of LogicalObjects. More...

Inheritance diagram for Expression:

Inheritance graph
[legend]

List of all members.

Static Public Member Functions

static expAnd ($left, $right)
 
Returns:
BinaryExpression

static expOr ($left, $right)
 
Returns:
BinaryExpression

static eq ($field, $value)
 
Returns:
BinaryExpression

static eqId ($field, Identifiable $object)
 
Returns:
BinaryExpression

static notEq ($field, $value)
 
Returns:
BinaryExpression

static gt ($field, $value)
 greater than
static gtEq ($field, $value)
 greater than or equals
static lt ($field, $value)
 lower than
static ltEq ($field, $value)
 lower than or equals
static notNull ($field)
 
Returns:
PostfixUnaryExpression

static isNull ($field)
 
Returns:
PostfixUnaryExpression

static isTrue ($field)
 
Returns:
PostfixUnaryExpression

static isFalse ($field)
 
Returns:
PostfixUnaryExpression

static like ($field, $value)
 
Returns:
BinaryExpression

static notLike ($field, $value)
 
Returns:
BinaryExpression

static ilike ($field, $value)
 
Returns:
BinaryExpression

static notIlike ($field, $value)
 
Returns:
BinaryExpression

static similar ($field, $value)
 
Returns:
BinaryExpression

static notSimilar ($field, $value)
 
Returns:
BinaryExpression

static eqLower ($field, $value)
 
Returns:
EqualsLowerExpression

static between ($field, $left, $right)
 
Returns:
LogicalBetween

static in ($field, $value)
 {,not}in handles strings, arrays and SelectQueries
static notIn ($field, $value)
 
Returns:
LogicalObject

static add ($field, $value)
 +
static sub ($field, $value)
 

static mul ($field, $value)
 *
static div ($field, $value)
 /
static fullTextAnd ($field, $wordsList)
 
Returns:
FullTextSearch

static fullTextOr ($field, $wordsList)
 
Returns:
FullTextSearch

static fullTextRankOr ($field, $wordsList)
 
Returns:
FullTextRank

static fullTextRankAnd ($field, $wordsList)
 
Returns:
FullTextRank

static orBlock ()
 
Returns:
LogicalChain

static andBlock ()
 
Returns:
LogicalChain

static chain ()
 
Returns:
LogicalChain

static not ($field)
 
Returns:
PrefixUnaryExpression

static minus ($field)
 
Returns:
PrefixUnaryExpression


Static Private Member Functions

static block ($args, $logic)
 
Returns:
LogicalChain


Detailed Description

Factory for various childs of LogicalObjects.

Definition at line 18 of file Expression.class.php.


Member Function Documentation

static Expression::expAnd ( left,
right 
) [static]

Returns:
BinaryExpression

Definition at line 23 of file Expression.class.php.

References BinaryExpression::EXPRESSION_AND.

static Expression::expOr ( left,
right 
) [static]

Returns:
BinaryExpression

Definition at line 33 of file Expression.class.php.

References BinaryExpression::EXPRESSION_OR.

Referenced by LogicUtils::getOpenRange().

static Expression::eq ( field,
value 
) [static]

Returns:
BinaryExpression

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

References BinaryExpression::EQUALS.

Referenced by OneToManyLinkedFull::$insert(), NullDaoWorker::dropById(), BaseDaoWorker::dropById(), TransparentDaoWorker::getById(), NullDaoWorker::getById(), CommonDaoWorker::getById(), Criteria::joinProperties(), and ProtoDAO::processPath().

static Expression::eqId ( field,
Identifiable object 
) [static]

Returns:
BinaryExpression

Definition at line 51 of file Expression.class.php.

Referenced by StorableDAO::save(), and OneToManyLinkedWorker::targetize().

static Expression::notEq ( field,
value 
) [static]

Returns:
BinaryExpression

Definition at line 59 of file Expression.class.php.

References BinaryExpression::NOT_EQUALS.

static Expression::gt ( field,
value 
) [static]

greater than

Returns:
BinaryExpression

Definition at line 71 of file Expression.class.php.

References BinaryExpression::GREATER_THAN.

Referenced by DaoMoveHelper::down().

static Expression::gtEq ( field,
value 
) [static]

greater than or equals

Returns:
BinaryExpression

Definition at line 83 of file Expression.class.php.

References BinaryExpression::GREATER_OR_EQUALS.

static Expression::lt ( field,
value 
) [static]

lower than

Returns:
BinaryExpression

Definition at line 95 of file Expression.class.php.

References BinaryExpression::LOWER_THAN.

Referenced by DaoMoveHelper::up().

static Expression::ltEq ( field,
value 
) [static]

lower than or equals

Returns:
BinaryExpression

Definition at line 107 of file Expression.class.php.

References BinaryExpression::LOWER_OR_EQUALS.

Referenced by LogicUtils::getOpenPoint(), and LogicUtils::getOpenRange().

static Expression::notNull ( field  )  [static]

Returns:
PostfixUnaryExpression

Definition at line 117 of file Expression.class.php.

References PostfixUnaryExpression::IS_NOT_NULL.

Referenced by ProtoDAO::fetchCollections(), LogicUtils::getOpenPoint(), LogicUtils::getOpenRange(), and ObjectQuery::toSelectQuery().

static Expression::isNull ( field  )  [static]

Returns:
PostfixUnaryExpression

Definition at line 125 of file Expression.class.php.

References PostfixUnaryExpression::IS_NULL.

Referenced by LogicUtils::getOpenPoint(), LogicUtils::getOpenRange(), and ObjectQuery::toSelectQuery().

static Expression::isTrue ( field  )  [static]

Returns:
PostfixUnaryExpression

Definition at line 133 of file Expression.class.php.

References PostfixUnaryExpression::IS_TRUE.

static Expression::isFalse ( field  )  [static]

Returns:
PostfixUnaryExpression

Definition at line 141 of file Expression.class.php.

References PostfixUnaryExpression::IS_FALSE.

static Expression::like ( field,
value 
) [static]

Returns:
BinaryExpression

Definition at line 149 of file Expression.class.php.

References BinaryExpression::LIKE.

static Expression::notLike ( field,
value 
) [static]

Returns:
BinaryExpression

Definition at line 157 of file Expression.class.php.

References BinaryExpression::NOT_LIKE.

static Expression::ilike ( field,
value 
) [static]

Returns:
BinaryExpression

Definition at line 165 of file Expression.class.php.

References BinaryExpression::ILIKE.

static Expression::notIlike ( field,
value 
) [static]

Returns:
BinaryExpression

Definition at line 173 of file Expression.class.php.

References BinaryExpression::NOT_ILIKE.

static Expression::similar ( field,
value 
) [static]

Returns:
BinaryExpression

Definition at line 181 of file Expression.class.php.

References BinaryExpression::SIMILAR_TO.

static Expression::notSimilar ( field,
value 
) [static]

Returns:
BinaryExpression

Definition at line 189 of file Expression.class.php.

References BinaryExpression::NOT_SIMILAR_TO.

static Expression::eqLower ( field,
value 
) [static]

Returns:
EqualsLowerExpression

Definition at line 197 of file Expression.class.php.

static Expression::between ( field,
left,
right 
) [static]

Returns:
LogicalBetween

Definition at line 205 of file Expression.class.php.

Referenced by LogicUtils::getOpenPoint(), and LogicUtils::getOpenRange().

static Expression::in ( field,
value 
) [static]

{,not}in handles strings, arrays and SelectQueries

Returns:
LogicalObject

Definition at line 215 of file Expression.class.php.

References InExpression::IN.

Referenced by OneToManyLinkedLazy::$insert(), OneToManyLinkedFull::$insert(), NullDaoWorker::dropByIds(), BaseDaoWorker::dropByIds(), ProtoDAO::fetchCollections(), TransparentDaoWorker::getListByIds(), NullDaoWorker::getListByIds(), and CommonDaoWorker::getListByIds().

static Expression::notIn ( field,
value 
) [static]

Returns:
LogicalObject

Definition at line 231 of file Expression.class.php.

References InExpression::NOT_IN.

static Expression::add ( field,
value 
) [static]

+

Returns:
BinaryExpression

Definition at line 249 of file Expression.class.php.

References BinaryExpression::ADD.

static Expression::sub ( field,
value 
) [static]

Returns:
BinaryExpression

Definition at line 259 of file Expression.class.php.

References BinaryExpression::SUBSTRACT.

static Expression::mul ( field,
value 
) [static]

*

Returns:
BinaryExpression

Definition at line 269 of file Expression.class.php.

References BinaryExpression::MULTIPLY.

static Expression::div ( field,
value 
) [static]

/

Returns:
BinaryExpression

Definition at line 279 of file Expression.class.php.

References BinaryExpression::DIVIDE.

static Expression::fullTextAnd ( field,
wordsList 
) [static]

Returns:
FullTextSearch

Definition at line 287 of file Expression.class.php.

References DB::FULL_TEXT_AND.

static Expression::fullTextOr ( field,
wordsList 
) [static]

Returns:
FullTextSearch

Definition at line 295 of file Expression.class.php.

References DB::FULL_TEXT_OR.

Referenced by FullTextUtils::makeFullTextQuery().

static Expression::fullTextRankOr ( field,
wordsList 
) [static]

Returns:
FullTextRank

Definition at line 303 of file Expression.class.php.

References DB::FULL_TEXT_OR.

static Expression::fullTextRankAnd ( field,
wordsList 
) [static]

Returns:
FullTextRank

Definition at line 311 of file Expression.class.php.

References DB::FULL_TEXT_AND.

Referenced by FullTextUtils::makeFullTextQuery().

static Expression::orBlock (  )  [static]

Returns:
LogicalChain

Definition at line 319 of file Expression.class.php.

References BinaryExpression::EXPRESSION_OR.

Referenced by LogicUtils::getOpenPoint(), and LogicUtils::getOpenRange().

static Expression::andBlock (  )  [static]

Returns:
LogicalChain

Definition at line 330 of file Expression.class.php.

References BinaryExpression::EXPRESSION_AND.

Referenced by Criteria::__construct(), LogicUtils::getOpenPoint(), and LogicUtils::getOpenRange().

static Expression::chain (  )  [static]

Returns:
LogicalChain

Definition at line 341 of file Expression.class.php.

static Expression::not ( field  )  [static]

Returns:
PrefixUnaryExpression

Definition at line 349 of file Expression.class.php.

References PrefixUnaryExpression::NOT.

static Expression::minus ( field  )  [static]

Returns:
PrefixUnaryExpression

Definition at line 357 of file Expression.class.php.

References PrefixUnaryExpression::MINUS.

static Expression::block ( args,
logic 
) [static, private]

Returns:
LogicalChain

Definition at line 365 of file Expression.class.php.

References $args, and LogicalChain::block().

Here is the call graph for this function:


The documentation for this class was generated from the following file:
Generated on Sun Dec 9 21:57:22 2007 for onPHP by  doxygen 1.5.4