include/Expressions/Expression/Boolean/BinaryDependencyExpression.php
\BinaryDependencyExpression
Package: SugarCRM
<b>doBothExist(String s1, String s2)</b><br> Returns true if both <i>s1</i> and <i>s2</i> are not empty.<br/> ex: <i>doBothExist("not", "empty")</i> = true,<br/> <i>doBothExist("empty", "")</i> = false
- Parent(s)
- \BooleanExpression < \AbstractExpression
Properties
$BOOLEAN_TYPE= '"boolean"'
staticinheritedInherited from:
\AbstractExpression::$$BOOLEAN_TYPE\BooleanExpression::$$BOOLEAN_TYPE
Default value
"boolean"
Details- Type
- n/a
- Inherited_from
- \AbstractExpression::$$BOOLEAN_TYPE
- Inherited_from
- \BooleanExpression::$$BOOLEAN_TYPE
$DATE_TYPE= '"date"'
Default value
"date"
Details- Type
- n/a
- Inherited_from
- \AbstractExpression::$$DATE_TYPE
- Inherited_from
- \BooleanExpression::$$DATE_TYPE
$ENUM_TYPE= '"enum"'
Default value
"enum"
Details- Type
- n/a
- Inherited_from
- \AbstractExpression::$$ENUM_TYPE
- Inherited_from
- \BooleanExpression::$$ENUM_TYPE
$FALSE= '"false"'
Default value
"false"
Details- Type
- n/a
- Inherited_from
- \AbstractExpression::$$FALSE
- Inherited_from
- \BooleanExpression::$$FALSE
$GENERIC_TYPE= '"generic"'
staticinheritedInherited from:
\AbstractExpression::$$GENERIC_TYPE\BooleanExpression::$$GENERIC_TYPE
Default value
"generic"
Details- Type
- n/a
- Inherited_from
- \AbstractExpression::$$GENERIC_TYPE
- Inherited_from
- \BooleanExpression::$$GENERIC_TYPE
$INFINITY= '-1'
Default value
-1
Details- Type
- n/a
- Inherited_from
- \AbstractExpression::$$INFINITY
- Inherited_from
- \BooleanExpression::$$INFINITY
$NUMERIC_TYPE= '"number"'
staticinheritedInherited from:
\AbstractExpression::$$NUMERIC_TYPE\BooleanExpression::$$NUMERIC_TYPE
Default value
"number"
Details- Type
- n/a
- Inherited_from
- \AbstractExpression::$$NUMERIC_TYPE
- Inherited_from
- \BooleanExpression::$$NUMERIC_TYPE
$RELATE_TYPE= '"relate"'
Default value
"relate"
Details- Type
- n/a
- Inherited_from
- \AbstractExpression::$$RELATE_TYPE
- Inherited_from
- \BooleanExpression::$$RELATE_TYPE
$STRING_TYPE= '"string"'
Default value
"string"
Details- Type
- n/a
- Inherited_from
- \AbstractExpression::$$STRING_TYPE
- Inherited_from
- \BooleanExpression::$$STRING_TYPE
$TIME_TYPE= '"time"'
Default value
"time"
Details- Type
- n/a
- Inherited_from
- \AbstractExpression::$$TIME_TYPE
- Inherited_from
- \BooleanExpression::$$TIME_TYPE
$TRUE= '"true"'
Default value
"true"
Details- Type
- n/a
- Inherited_from
- \AbstractExpression::$$TRUE
- Inherited_from
- \BooleanExpression::$$TRUE
$TYPE_MAP= 'array(
"number" => "NumericExpression",
"string" => "StringExpression",
"date" => "DateExpression",
"time" => "TimeExpression",
"boolean" => "BooleanExpression",
"enum" => "EnumExpression",
"relate" => "RelateExpression",
"generic" => "AbstractExpression",
)'
Default value
array(
"number" => "NumericExpression",
"string" => "StringExpression",
"date" => "DateExpression",
"time" => "TimeExpression",
"boolean" => "BooleanExpression",
"enum" => "EnumExpression",
"relate" => "RelateExpression",
"generic" => "AbstractExpression",
)
Details- Type
- n/a
- Inherited_from
- \AbstractExpression::$$TYPE_MAP
- Inherited_from
- \BooleanExpression::$$TYPE_MAP
$params= ''
Details
- Type
- n/a
- Inherited_from
- \AbstractExpression::$$params
- Inherited_from
- \BooleanExpression::$$params
Methods
AbstractExpression(
$params
=
null
)
:
void
inherited
Constructs an Expression object given the parameters.
Inherited from: \AbstractExpression::AbstractExpression()\BooleanExpression::AbstractExpression()
Parameters
Name | Type | Description |
---|---|---|
$params |
getOperationName(
)
:
void
static
Returns the opreation name that this Expression should be called by.
getParameters(
)
:
void
inherited
Returns the parameter list for this Expression.
Inherited from: \AbstractExpression::getParameters()\BooleanExpression::getParameters()isProperType(
$variable, $type
)
:
void
inherited
Enforces the parameter types.
Inherited from: \AbstractExpression::isProperType()\BooleanExpression::isProperType()
Parameters
Name | Type | Description |
---|---|---|
$variable | ||
$type |
toString(
)
:
void
Returns the String representation of this Expression.
TODO: Make this an abstract method.
validateParameters(
)
:
void
inherited
Validates the parameters and throws an Exception if invalid.
Inherited from: \AbstractExpression::validateParameters()\BooleanExpression::validateParameters()