PHP Класс Hermes_Slice, horde

Copyright 2011-2016 Horde LLC (http://www.horde.org/) See the enclosed file LICENSE for license information (BSD). If you did not receive this file, see http://www.horde.org/licenses/bsdl.php.
Автор: Michael J Rubinsky ([email protected])
Наследование: implements ArrayAccess, implements IteratorAggregate
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$_properties array Slice properties

Открытые методы

Метод Описание
__construct ( array $properties = [] )
fromJson ( stdClass $json ) Populate object from a json object.
getIterator ( ) IteratorAggregate::getIterator
offsetExists ( mixed $offset ) : boolean ArrayAccess::offsetExists
offsetGet ( mixed $offset ) : mixed ArrayAccess::offsetGet
offsetSet ( mixed $offset, mixed $value ) : void ArrayAccess::offsetSet
offsetUnset ( mixed $offset ) : void ArrayAccess::offsetUnset
readForm ( ) Populate this slice from a time entry form.
toArray ( )
toJson ( ) : array Get the json representation of this slice. The resulting json contains the following properties
c    - client id
cn   - client object
co   - costobject id
con  - costobject name
d    - date
desc - description
e    - employee
h    - hours
i    - slice id
n    - note
r    - rate
s    - submitted
t    - type id
tn   - type name
b    - billable
x    - can edit
toString ( ) : string Render this slice as a string.

Описание методов

__construct() публичный Метод

public __construct ( array $properties = [] )
$properties array

fromJson() публичный Метод

Populate object from a json object.
public fromJson ( stdClass $json )
$json stdClass

getIterator() публичный Метод

IteratorAggregate::getIterator
public getIterator ( )

offsetExists() публичный Метод

ArrayAccess::offsetExists
public offsetExists ( mixed $offset ) : boolean
$offset mixed
Результат boolean

offsetGet() публичный Метод

ArrayAccess::offsetGet
public offsetGet ( mixed $offset ) : mixed
$offset mixed
Результат mixed

offsetSet() публичный Метод

ArrayAccess::offsetSet
public offsetSet ( mixed $offset, mixed $value ) : void
$offset mixed
$value mixed
Результат void

offsetUnset() публичный Метод

ArrayAccess::offsetUnset
public offsetUnset ( mixed $offset ) : void
$offset mixed
Результат void

readForm() публичный Метод

Assumes the values are POSTed.
public readForm ( )

toArray() публичный Метод

public toArray ( )

toJson() публичный Метод

Get the json representation of this slice. The resulting json contains the following properties
c    - client id
cn   - client object
co   - costobject id
con  - costobject name
d    - date
desc - description
e    - employee
h    - hours
i    - slice id
n    - note
r    - rate
s    - submitted
t    - type id
tn   - type name
b    - billable
x    - can edit
public toJson ( ) : array
Результат array

toString() публичный Метод

Render this slice as a string.
public toString ( ) : string
Результат string

Описание свойств

$_properties защищенное свойство

Slice properties
protected array $_properties
Результат array