SimplOn PHP
 All Data Structures Namespaces Files Functions Variables
Public Member Functions | Data Fields | Protected Attributes
ComplexData Class Reference
+ Inheritance diagram for ComplexData:

Public Member Functions

 __construct ($label, $sources, $flags=null, $searchOp=null)
 sourcesToValues ($sources=null)
 showView ($template=null, $sources=null)
 showInput ($fill=false, $sources=null)
 doRead ()
 doCreate ()
 doUpdate ()
 doSearch ()
 doDelete ()

Data Fields

 $create = false
 $update = false
 $list = false
 $fetch = false
 $required = false
 $search = false
 $parent = null

Protected Attributes

 $view = true

Detailed Description

Definition at line 26 of file ComplexData.php.


Constructor & Destructor Documentation

__construct ( label,
flags,
val = null,
filterCriteria = null 
)

search operands:

>

< >=

<=

!= ~= ^= $=


Complex operations are just simple operations jointed with ANDs and ORs, so it'd be possible to create "Operators" objects that defines those complex operations.

(name > val1) OR (name < val2)

a <= x <= b a > x || x < b

  • Assings the Label, Flags, Value(val) and Serch operand if recibed
  • Calls user defined construct
Parameters:
string$labelHuman readable descrition of the atribute, it's intended to apear in forms and tables
string$flagsVCUSRLF flags sets when the Data will be used within an element {
See also:
dataFlags}
Parameters:
mixed$valIf sended sets the value of the data since it's creation
string$searchOpDetermines how the data value will be cmpared/evalueted in queries to the Data Storage

Reimplemented from Data.

Definition at line 43 of file ComplexData.php.


Member Function Documentation

doCreate ( )

Reimplemented from Data.

Definition at line 71 of file ComplexData.php.

doDelete ( )

Reimplemented from Data.

Definition at line 77 of file ComplexData.php.

doRead ( )

Reimplemented from Data.

Definition at line 69 of file ComplexData.php.

doSearch ( )

Reimplemented from Data.

Definition at line 75 of file ComplexData.php.

doUpdate ( )

Reimplemented from Data.

Definition at line 73 of file ComplexData.php.

showInput ( fill = false,
sources = null 
)

Definition at line 63 of file ComplexData.php.

showView ( template = null,
sources = null 
)

Definition at line 62 of file ComplexData.php.

sourcesToValues ( sources = null)

Definition at line 51 of file ComplexData.php.


Field Documentation

$create = false

Reimplemented from Data.

Definition at line 30 of file ComplexData.php.

$fetch = false

Reimplemented from Data.

Definition at line 33 of file ComplexData.php.

$list = false

Reimplemented from Data.

Reimplemented in ElementLink.

Definition at line 32 of file ComplexData.php.

$parent = null

Reimplemented from Data.

Definition at line 39 of file ComplexData.php.

$required = false

Reimplemented from Data.

Reimplemented in ElementLink.

Definition at line 34 of file ComplexData.php.

$search = false

Reimplemented from Data.

Definition at line 35 of file ComplexData.php.

$update = false

Reimplemented from Data.

Definition at line 31 of file ComplexData.php.

$view = true [protected]

Reimplemented from Data.

Reimplemented in ElementLink.

Definition at line 29 of file ComplexData.php.


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