Event_Timeline_Dataset
extends Admin_Form_Dataset
in package
Event Timeline Dataset.
Tags
Table of Contents
- $_Admin_Form_Controller : Admin_Form_Controller
- Form controller
- $_changedActions : array<string|int, mixed>
- List of changed actions
- $_changedFields : array<string|int, mixed>
- List of changed fields
- $_conditions : mixed
- Array of conditions array ( array('where' => array('a', '=', 'b')), array('where' => array('c', '=', 'd')) )
- $_count : int
- Items count
- $_event : object
- Event_Model object
- $_externalFields : array<string|int, mixed>
- Array of external fields from additional tables
- $_limit : int
- Limit
- $_loaded : bool
- Load status
- $_objects : null|array<string|int, mixed>
- Dataset objects list
- $_offset : int
- Offset
- $_orders : mixed
- Array of orders
- __construct() : mixed
- Constructor.
- _sortAsc() : int
- User-defined comparison functions.
- _sortDesc() : int
- User-defined comparison functions.
- addCondition() : self
- Add condition
- addExternalField() : self
- Add external field name
- changeAction() : self
- Change the data for the action Admin_Form_Action
- changeField() : self
- Change the data for the field Admin_Form_Field
- controller() : self
- Set controller
- getActionChanges() : string
- Get changed field
- getCount() : int
- Get count of finded objects
- getEntity() : object
- Get entity
- getFieldChanges() : string
- Get changed field
- getObject() : object
- Get object
- getObjects() : array<string|int, mixed>
- Get objects
- issetExternalField() : bool
- Check if external field exists
- limit() : self
- Set limit
- load() : array<string|int, mixed>
- Load objects
- loaded() : self
- Set load status
- offset() : self
- Set offset
- orderBy() : self
- Add orderBy
- setCount() : self
- Set items count
- _getFoundRows() : int
- Get FOUND_ROWS
- _getObjectByType() : object
- Get object by type
- _getQb0() : object
- Get event history
- _getQb1() : object
- Get crm note
- _getQb2() : object
- Get events
- _getQb3() : object
- Get dms document
- _loadItems() : mixed
- Load items
Properties
$_Admin_Form_Controller
Form controller
protected
Admin_Form_Controller
$_Admin_Form_Controller
= \NULL
$_changedActions
List of changed actions
protected
array<string|int, mixed>
$_changedActions
= array()
$_changedFields
List of changed fields
protected
array<string|int, mixed>
$_changedFields
= array()
$_conditions
Array of conditions array ( array('where' => array('a', '=', 'b')), array('where' => array('c', '=', 'd')) )
protected
mixed
$_conditions
= array()
$_count
Items count
protected
int
$_count
= \NULL
$_event
Event_Model object
protected
object
$_event
= \NULL
$_externalFields
Array of external fields from additional tables
protected
array<string|int, mixed>
$_externalFields
= array()
$_limit
Limit
protected
int
$_limit
= \NULL
$_loaded
Load status
protected
bool
$_loaded
= \FALSE
$_objects
Dataset objects list
protected
null|array<string|int, mixed>
$_objects
= \NULL
$_offset
Offset
protected
int
$_offset
= 0
$_orders
Array of orders
protected
mixed
$_orders
= array()
Methods
__construct()
Constructor.
public
__construct(Event_Model $oEvent) : mixed
Parameters
- $oEvent : Event_Model
-
entity
Tags
Return values
mixed —_sortAsc()
User-defined comparison functions.
public
static _sortAsc(mixed $m, mixed $n) : int
Parameters
- $m : mixed
- $n : mixed
Return values
int —_sortDesc()
User-defined comparison functions.
public
static _sortDesc(mixed $m, mixed $n) : int
Parameters
- $m : mixed
- $n : mixed
Return values
int —addCondition()
Add condition
public
addCondition(array<string|int, mixed> $condition) : self
Parameters
- $condition : array<string|int, mixed>
-
condition
Return values
self —addExternalField()
Add external field name
public
addExternalField(string $fieldName) : self
Parameters
- $fieldName : string
-
name of the field
Return values
self —changeAction()
Change the data for the action Admin_Form_Action
public
changeAction(string $name, string $property, string $value) : self
Parameters
- $name : string
-
action name
- $property : string
-
action's property name
- $value : string
-
action's property value
Return values
self —changeField()
Change the data for the field Admin_Form_Field
public
changeField(string $name, string $property, string $value) : self
Parameters
- $name : string
-
field name
- $property : string
-
field's property name
- $value : string
-
field's property value
Return values
self —controller()
Set controller
public
controller(Admin_Form_Controller $controller) : self
Parameters
- $controller : Admin_Form_Controller
Return values
self —getActionChanges()
Get changed field
public
getActionChanges(string $name) : string
Parameters
- $name : string
-
field name
Return values
string —getCount()
Get count of finded objects
public
getCount() : int
Return values
int —getEntity()
Get entity
public
getEntity() : object
Return values
object —getFieldChanges()
Get changed field
public
getFieldChanges(string $name) : string
Parameters
- $name : string
-
field name
Return values
string —getObject()
Get object
public
getObject(int $primaryKey) : object
Parameters
- $primaryKey : int
-
ID
Return values
object —getObjects()
Get objects
public
getObjects() : array<string|int, mixed>
Return values
array<string|int, mixed> —issetExternalField()
Check if external field exists
public
issetExternalField(string $fieldName) : bool
Parameters
- $fieldName : string
-
name of the field
Return values
bool —limit()
Set limit
public
limit(int $limit) : self
Parameters
- $limit : int
-
limit
Return values
self —load()
Load objects
public
load() : array<string|int, mixed>
Return values
array<string|int, mixed> —loaded()
Set load status
public
loaded(bool $loaded) : self
Parameters
- $loaded : bool
-
status
Return values
self —offset()
Set offset
public
offset(int $offset) : self
Parameters
- $offset : int
-
offset
Return values
self —orderBy()
Add orderBy
public
orderBy(string $column[, string $direction = 'ASC' ][, bool $binary = FALSE ]) : self
Parameters
- $column : string
-
column
- $direction : string = 'ASC'
-
sorting direction
- $binary : bool = FALSE
-
binary option
Return values
self —setCount()
Set items count
public
setCount(int $count) : self
Parameters
- $count : int
Return values
self —_getFoundRows()
Get FOUND_ROWS
protected
_getFoundRows() : int
Return values
int —_getObjectByType()
Get object by type
protected
_getObjectByType(object $object) : object
Parameters
- $object : object
Return values
object —_getQb0()
Get event history
protected
_getQb0([int $id = NULL ]) : object
Parameters
- $id : int = NULL
Return values
object —_getQb1()
Get crm note
protected
_getQb1([int $id = NULL ]) : object
Parameters
- $id : int = NULL
Return values
object —_getQb2()
Get events
protected
_getQb2([int $id = NULL ]) : object
Parameters
- $id : int = NULL
Return values
object —_getQb3()
Get dms document
protected
_getQb3([int $id = NULL ]) : object
Parameters
- $id : int = NULL
Return values
object —_loadItems()
Load items
protected
_loadItems() : mixed