Documentation

Wysiwyg_Filemanager_Dataset extends Admin_Form_Dataset
in package

Wysiwyg Filemanager Dataset.

Tags
subpackage

Wysiwyg

version
7.x
author

Hostmake LLC

copyright

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

Table of Contents

$_Admin_Form_Controller  : Admin_Form_Controller
Form controller
$_aTypes  : array<string|int, mixed>
File type
$_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
$_limit  : int
Limit
$_loaded  : bool
Load status
$_modelName  : string
Name of the model
$_objects  : null|array<string|int, mixed>
Dataset objects list
$_offset  : int
Offset
$_orders  : mixed
Array of orders
$_path  : string
Directory path
__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
modelName()  : self
Set model name
offset()  : self
Set offset
orderBy()  : self
Add orderBy
setCount()  : self
Set items count
setPath()  : mixed
Set path
_loadFiles()  : self
Load data
_newObject()  : object
Get new object

Properties

$_aTypes

File type

protected array<string|int, mixed> $_aTypes = \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

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

$_modelName

Name of the model

protected string $_modelName = 'Wysiwyg_Filemanager_File'

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

$_path

Directory path

protected string $_path = \NULL

Methods

__construct()

Constructor.

public __construct(int $type) : mixed
Parameters
$type : int

type

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

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

modelName()

Set model name

public modelName(string $modelName) : self
Parameters
$modelName : string
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

setPath()

Set path

public setPath(string $path) : mixed
Parameters
$path : string

path

Return values
mixed

_loadFiles()

Load data

protected _loadFiles() : self
Return values
self

_newObject()

Get new object

protected _newObject() : object
Return values
object

Search results