Media_Controller
extends Core_Servant_Properties
in package
Media_Controller
Tags
Table of Contents
Properties
- $_allowedProperties : array<string|int, mixed>
- Allowed object properties
- $_config : mixed
- Main config
- $_propertiesValues : array<string|int, mixed>
- Properties values
- $_unlimitedProperties : bool
- Object has unlimited number of properties
Methods
- __construct() : mixed
- Constructor.
- addAllowedProperties() : self
- Add additional allowed properties
- addAllowedProperty() : self
- Add additional allowed property
- getConfig() : array<string|int, mixed>
- Get main config
- getMediaItemBlock() : object
- Get media item block
- getType() : int
- Get file type
- set() : self
- Run when writing data to inaccessible properties
- setUnlimitedProperties() : self
- Set unlimitedProperties
Properties
$_allowedProperties
Allowed object properties
protected
array<string|int, mixed>
$_allowedProperties
= array()
$_config
Main config
protected
static mixed
$_config
= array()
$_propertiesValues
Properties values
protected
array<string|int, mixed>
$_propertiesValues
= array()
$_unlimitedProperties
Object has unlimited number of properties
protected
bool
$_unlimitedProperties
= \FALSE
Methods
__construct()
Constructor.
public
__construct() : mixed
addAllowedProperties()
Add additional allowed properties
public
addAllowedProperties(array<string|int, mixed> $array) : self
Parameters
- $array : array<string|int, mixed>
-
array of properties' names
Return values
selfaddAllowedProperty()
Add additional allowed property
public
addAllowedProperty(string $property) : self
Parameters
- $property : string
-
property name
Return values
selfgetConfig()
Get main config
public
static getConfig() : array<string|int, mixed>
Return values
array<string|int, mixed>getMediaItemBlock()
Get media item block
public
static getMediaItemBlock(mixed $windowId, Media_Item_Model $oMedia_Item, mixed $oAdmin_Form_Controller[, object $oEntity = NULL ][, object $oObject = NULL ]) : object
Parameters
- $windowId : mixed
- $oMedia_Item : Media_Item_Model
- $oAdmin_Form_Controller : mixed
- $oEntity : object = NULL
- $oObject : object = NULL
Return values
objectgetType()
Get file type
public
static getType(Media_Item_Model $oMedia_Item) : int
Parameters
- $oMedia_Item : Media_Item_Model
Return values
intset()
Run when writing data to inaccessible properties
public
set(string $property, string $value) : self
Parameters
- $property : string
-
property name
- $value : string
-
property value
Return values
selfsetUnlimitedProperties()
Set unlimitedProperties
public
setUnlimitedProperties([bool $value = TRUE ]) : self
Parameters
- $value : bool = TRUE
-
default TRUR