Documentation

Skin_Bootstrap_Admin_Form_Entity_Time extends Skin_Default_Admin_Form_Entity_Time
in package

Admin forms.

Tags
subpackage

Skin

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
$_allowedProperties  : array<string|int, mixed>
Allowed object properties
$_attrCommon  : array<string|int, mixed>
Common attributes
$_attrEvent  : array<string|int, mixed>
Common events
$_children  : array<string|int, mixed>
List of children elements
$_data  : array<string|int, mixed>
data-values,
$_format  : array<string|int, mixed>
Available formats for lib Доступные форматы для lib
$_propertiesValues  : array<string|int, mixed>
Properties values
$_skipProperties  : array<string|int, mixed>
Skip properties
$_unlimitedProperties  : bool
Object has unlimited number of properties
$_useAttrCommon  : bool
Use common attributes
$_useAttrEvent  : bool
Use common events

Methods

__construct()  : mixed
Constructor.
add()  : self
Add new entity
addAfter()  : self
Add new entity after $oAdmin_Form_Entity_After
addAllowedProperties()  : self
Add additional allowed properties
addAllowedProperty()  : self
Add additional allowed property
addBefore()  : self
Add new entity before $oAdmin_Form_Entity_Before
addClass()  : self
Add Class
addSkipProperty()  : self
Add Skip Property
clear()  : self
Clear children elements list
controller()  : self
Set controller
data()  : self|string
Get/set data, e.g. $obj->data('foo', 'bar'); echo $obj->data('foo');
delete()  : self
Delete child element
deleteChild()  : self
Delete child by key
execute()  : mixed
Executes the business logic.
executeChildren()  : self
Execute all children
factory()  : object
Create and return an object of Admin_Form_Entity for current skin
getAllowedProperties()  : array<string|int, mixed>
Get allowed object properties
getAttrsString()  : array<string|int, mixed>
Get allowed properties
getChildren()  : array<string|int, mixed>
Get entity's children
getCountChildren()  : int
Get count of children entities
getFormat()  : string
Get format by name
move()  : self
Move entity to another tab
moveAfter()  : self
Move entity after some another entity
moveBefore()  : self
Move entity before some another entity
removeClass()  : self
Remove Class
set()  : self
Run when writing data to inaccessible properties
setUnlimitedProperties()  : self
Set unlimitedProperties
_showFormat()  : mixed
Apply format for field

Properties

$_allowedProperties

Allowed object properties

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

$_attrCommon

Common attributes

protected static array<string|int, mixed> $_attrCommon = array('accesskey', 'class', 'dir', 'id', 'lang', 'style', 'tabindex', 'title')

$_attrEvent

Common events

protected static array<string|int, mixed> $_attrEvent = array('onblur', 'onchange', 'onclick', 'ondblclick', 'onfocus', 'onkeydown', 'onkeypress', 'onkeyup', 'onload', 'onmousedown', 'onmousemove', 'onmouseout', 'onmouseover', 'onmouseup', 'onreset', 'onselect', 'onsubmit', 'onunload')

$_children

List of children elements

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

$_data

data-values,

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

$_format

Available formats for lib Доступные форматы для lib

protected array<string|int, mixed> $_format = array( // IP v4 or v6 'ip' => '/(^([0-9]|[0-9][0-9]|[01][0-9][0-9]|2[0-4][0-9]|25[0-5])(\\.([0-9]|[0-9][0-9]|[01][0-9][0-9]|2[0-4][0-9]|25[0-5])){3}$)|(^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-zA-Z]|[a-zA-Z][a-zA-Z0-9\\-]*[a-zA-Z0-9])\\.)*([A-Za-z]|[A-Za-z][A-Za-z0-9\\-]*[A-Za-z0-9])$|^\\s*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3})|:))|(([0-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\w.-]+(?:\\.[\\w\\.-]+)+[\\w\\-\\._~:/?#[\\]@!\$&'\\(\\)\\*\\+,;=.]+\$/", 'integer' => '/^[-+]?[0-9]*$/', 'positiveInteger' => '/^(0*[1-9])+[0-9]*$/', 'path' => '/^[а-яіїєґА-ЯІЇЄҐёЁA-Za-z0-9_ \\-\\.\\/]+$/', 'latinBase' => '/^[A-Za-z0-9_\\-]+$/', 'decimal' => '/^[-+]?[0-9]{1,}\\.{0,1}[0-9]*$/', 'date' => '/^([0-2][0-9]|[3][0-1])\\.([0][0-9]|[1][0-2])\\.\\d{2,4}$/', 'datetime' => '/^([0-2][0-9]|[3][0-1])\\.([0][0-9]|[1][0-2])\\.\\d{2,4} ([0-1][0-9]|[2][0-3]):([0-5][0-9]):([0-5][0-9])$/', )

$_propertiesValues

Properties values

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

$_skipProperties

Skip properties

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

$_unlimitedProperties

Object has unlimited number of properties

protected bool $_unlimitedProperties = \FALSE

$_useAttrCommon

Use common attributes

protected bool $_useAttrCommon = \TRUE

$_useAttrEvent

Use common events

protected bool $_useAttrEvent = \TRUE

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
self

addAllowedProperty()

Add additional allowed property

public addAllowedProperty(string $property) : self
Parameters
$property : string

property name

Return values
self

addClass()

Add Class

public addClass(string $className) : self
Parameters
$className : string
Return values
self

addSkipProperty()

Add Skip Property

public addSkipProperty(name $name) : self
Parameters
$name : name
Return values
self

clear()

Clear children elements list

public clear() : self
Return values
self

controller()

Set controller

public controller(mixed $controller) : self
Parameters
$controller : mixed
Return values
self

data()

Get/set data, e.g. $obj->data('foo', 'bar'); echo $obj->data('foo');

public data(string $name) : self|string
Parameters
$name : string
Return values
self|string

deleteChild()

Delete child by key

public deleteChild(int $key) : self
Parameters
$key : int
Return values
self

execute()

Executes the business logic.

public execute() : mixed

executeChildren()

Execute all children

public executeChildren() : self
Return values
self

factory()

Create and return an object of Admin_Form_Entity for current skin

public static factory(string $className) : object
Parameters
$className : string

name of class

Return values
object

getAllowedProperties()

Get allowed object properties

public getAllowedProperties() : array<string|int, mixed>
Return values
array<string|int, mixed>

getAttrsString()

Get allowed properties

public getAttrsString() : array<string|int, mixed>
Return values
array<string|int, mixed>

getChildren()

Get entity's children

public getChildren() : array<string|int, mixed>
Return values
array<string|int, mixed>

getCountChildren()

Get count of children entities

public getCountChildren() : int
Return values
int

getFormat()

Get format by name

public getFormat(string $name) : string
Parameters
$name : string

name

Return values
string

removeClass()

Remove Class

public removeClass(string $className) : self
Parameters
$className : string
Return values
self

set()

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
self

setUnlimitedProperties()

Set unlimitedProperties

public setUnlimitedProperties([bool $value = TRUE ]) : self
Parameters
$value : bool = TRUE

default TRUR

Return values
self

_showFormat()

Apply format for field

protected _showFormat() : mixed

        
On this page

Search results