include/Expressions/Dependency.php
\Dependency
Package: SugarCRM
Generic dependency
- Api
Properties
Methods
addAction(
\Array/Action $action
)
:
void
Adds a new action to this dependency or creates a new Action from the meta if Action metadata is passed.
Parameters
Name | Type | Description |
---|---|---|
$action | \Array/Action |
addFalseAction(
\Array/Action $action
)
:
void
Adds a new action which will be fired when this dependency's trigger is false.
Parameters
Name | Type | Description |
---|---|---|
$action | \Array/Action |
fire(
\SugarBean $target
)
:
void
Runs the dependency on the target bean.
Parameters
Name | Type | Description |
---|---|---|
$target | \SugarBean |
fireActions(
\SugarBean $target, boolean $useFalse
=
false
)
:
void
Performs the actions in this dependency on the target.
Parameters
Name | Type | Description |
---|---|---|
$target | \SugarBean | |
$useFalse | boolean |
getJavascript(
$form
=
"EditView"
)
:
void
Returns the javascript equivalent of this dependency.
Parameters
Name | Type | Description |
---|---|---|
$form |