Documentation

Lead_Timeline_Dataset extends Admin_Form_Dataset
in package

Lead Timeline Dataset.

Tags
subpackage

Lead

version
7.x
author

Hostmake LLC

copyright

© 2005-2024 ООО "Хостмэйк" (Hostmake LLC), http://www.hostcms.ru

Table of Contents

Properties

$_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
$_externalFields  : array<string|int, mixed>
Array of external fields from additional tables
$_lead  : object
Lead_Model object
$_limit  : int
Limit
$_loaded  : bool
Load status
$_objects  : null|array<string|int, mixed>
Dataset objects list
$_offset  : int
Offset
$_orders  : mixed
Array of orders

Methods

__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 lead history
_getQb1()  : object
Get crm note
_getQb2()  : object
Get lead shop items
_getQb3()  : object
Get events
_getQb4()  : object
Get lead steps
_getQb5()  : object
Get dms documents
_loadItems()  : mixed
Load items

Properties

$_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

$_externalFields

Array of external fields from additional tables

protected array<string|int, mixed> $_externalFields = array()

$_lead

Lead_Model object

protected object $_lead = \NULL

$_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(Lead_Model $oLead) : mixed
Parameters
$oLead : Lead_Model

entity

Tags
hostcms-event

Lead_Timeline_Dataset.onAfterConstruct

_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

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 lead 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 lead shop items

protected _getQb2([int $id = NULL ]) : object
Parameters
$id : int = NULL
Return values
object

_getQb3()

Get events

protected _getQb3([int $id = NULL ]) : object
Parameters
$id : int = NULL
Return values
object

_getQb4()

Get lead steps

protected _getQb4([int $id = NULL ]) : object
Parameters
$id : int = NULL
Return values
object

_getQb5()

Get dms documents

protected _getQb5([int $id = NULL ]) : object
Parameters
$id : int = NULL
Return values
object

_loadItems()

Load items

protected _loadItems() : mixed

        
On this page

Search results