include/Expressions/Dependency.php

Show: inherited
Table of Contents

\Dependency

Package: SugarCRM

Generic dependency

Api
 

Properties

Propertyprotected  $actions= 'array()'
Default valuearray()Details
Type
n/a
Propertyprotected  $falseActions= 'array()'
Default valuearray()Details
Type
n/a
Propertyprotected  $fireOnLoad= 'false'
Default valuefalseDetails
Type
n/a
Propertyprotected  $id= '""'
Default value""Details
Type
n/a
Propertyprotected  $trigger= ''
Details
Type
n/a

Methods

methodpublicDependency(  $id ) : void

Parameters
Name Type Description
$id
methodpublicaddAction( \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
methodpublicaddFalseAction( \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
methodpublicfire( \SugarBean $target ) : void

Runs the dependency on the target bean.

Parameters
Name Type Description
$target \SugarBean
methodprivatefireActions( \SugarBean $target, boolean $useFalse = false ) : void

Performs the actions in this dependency on the target.

Parameters
Name Type Description
$target \SugarBean
$useFalse boolean
methodpublicgetDefinition( ) : void

Returns the definition of the dependency in array format.

methodpublicgetFireOnLoad( ) : void

methodpublicgetJavascript(  $form = "EditView" ) : void

Returns the javascript equivalent of this dependency.

Parameters
Name Type Description
$form
methodpublicsetFireOnLoad(  $onLoad ) : void

Parameters
Name Type Description
$onLoad
methodpublicsetTrigger(  $trigger ) : void

Sets the trigger expressions of this dependency or creates a new Trigger from the array if Trigger metadata is passed.

Parameters
Name Type Description
$trigger
Documentation was generated by DocBlox 0.18.1.