Documentation

Cloud_File_Dataset extends Admin_Form_Dataset
in package

Cloud File Dataset.

Tags
subpackage

Cloud

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  : mixed
Count
$_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
$_cloudId  : mixed
Cloud id
$_dirId  : mixed
Dir id

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 typical 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
_fillObjectsArray()  : mixed
_newObject()  : object
Get new object

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

Count

protected mixed $_count = \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()

$_cloudId

Cloud id

private mixed $_cloudId = \NULL

$_dirId

Dir id

private mixed $_dirId = \NULL

Methods

__construct()

Constructor

public __construct(int $iCloudID, int $sDirId) : mixed
Parameters
$iCloudID : int
$sDirId : int

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

_fillObjectsArray()

protected _fillObjectsArray() : mixed

_newObject()

Get new object

protected _newObject() : object
Return values
object

        
On this page

Search results