PHP Class 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.
Author: Michael J Rubinsky ([email protected])
Inheritance: implements ArrayAccess, implements IteratorAggregate
显示文件 Open project: horde/horde Class Usage Examples

Protected Properties

Property Type Description
$_properties array Slice properties

Public Methods

Method Description
__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.

Method Details

__construct() public method

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

fromJson() public method

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

getIterator() public method

IteratorAggregate::getIterator
public getIterator ( )

offsetExists() public method

ArrayAccess::offsetExists
public offsetExists ( mixed $offset ) : boolean
$offset mixed
return boolean

offsetGet() public method

ArrayAccess::offsetGet
public offsetGet ( mixed $offset ) : mixed
$offset mixed
return mixed

offsetSet() public method

ArrayAccess::offsetSet
public offsetSet ( mixed $offset, mixed $value ) : void
$offset mixed
$value mixed
return void

offsetUnset() public method

ArrayAccess::offsetUnset
public offsetUnset ( mixed $offset ) : void
$offset mixed
return void

readForm() public method

Assumes the values are POSTed.
public readForm ( )

toArray() public method

public toArray ( )

toJson() public method

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
return array

toString() public method

Render this slice as a string.
public toString ( ) : string
return string

Property Details

$_properties protected_oe property

Slice properties
protected array $_properties
return array