\Hermes_Slice

Hermes_Slice:: Lightweight wrapper around a single timeslice

Copyright 2011-2017 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.

Summary

Methods
Properties
Constants
__construct()
toArray()
fromJson()
readForm()
toJson()
toString()
offsetExists()
offsetGet()
offsetSet()
offsetUnset()
getIterator()
No public properties found
No constants found
No protected methods found
$_properties
N/A
No private methods found
No private properties found
N/A

Properties

$_properties

$_properties : array

Slice properties

Type

array

Methods

__construct()

__construct(array  $properties = array()) 

Parameters

array $properties

toArray()

toArray() 

fromJson()

fromJson(\stdClass  $json) 

Populate object from a json object.

Parameters

\stdClass $json

readForm()

readForm() 

Populate this slice from a time entry form.

Assumes the values are POSTed.

toJson()

toJson() : array

Get the json representation of this slice. The resulting json contains the following properties <pre> 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 </pre>

Returns

array

toString()

toString() : string

Render this slice as a string.

Returns

string

offsetExists()

offsetExists(mixed  $offset) : boolean

ArrayAccess::offsetExists

Parameters

mixed $offset

Returns

boolean

offsetGet()

offsetGet(mixed  $offset) : mixed

ArrayAccess::offsetGet

Parameters

mixed $offset

Returns

mixed

offsetSet()

offsetSet(mixed  $offset, mixed  $value) : void

ArrayAccess::offsetSet

Parameters

mixed $offset
mixed $value

offsetUnset()

offsetUnset(mixed  $offset) : void

ArrayAccess::offsetUnset

Parameters

mixed $offset

getIterator()

getIterator() 

IteratorAggregate::getIterator