Documentation

Hermes_Slice
in package
implements ArrayAccess, IteratorAggregate

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.

Tags
author

Michael J Rubinsky mrubinsk@horde.org

Interfaces, Classes and Traits

ArrayAccess
IteratorAggregate

Table of Contents

$_properties  : array<string|int, mixed>
Slice properties
__construct()  : mixed
fromJson()  : mixed
Populate object from a json object.
getIterator()  : mixed
IteratorAggregate::getIterator
offsetExists()  : bool
ArrayAccess::offsetExists
offsetGet()  : mixed
ArrayAccess::offsetGet
offsetSet()  : void
ArrayAccess::offsetSet
offsetUnset()  : void
ArrayAccess::offsetUnset
readForm()  : mixed
Populate this slice from a time entry form.
toArray()  : mixed
toJson()  : array<string|int, mixed>
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>
toString()  : string
Render this slice as a string.

Properties

$_properties

Slice properties

protected array<string|int, mixed> $_properties

Methods

__construct()

public __construct([array<string|int, mixed> $properties = array() ]) : mixed
Parameters
$properties : array<string|int, mixed> = array()
Return values
mixed

fromJson()

Populate object from a json object.

public fromJson(stdClass $json) : mixed
Parameters
$json : stdClass
Return values
mixed

getIterator()

IteratorAggregate::getIterator

public getIterator() : mixed
Return values
mixed

offsetExists()

ArrayAccess::offsetExists

public offsetExists(mixed $offset) : bool
Parameters
$offset : mixed
Return values
bool

offsetGet()

ArrayAccess::offsetGet

public offsetGet(mixed $offset) : mixed
Parameters
$offset : mixed
Return values
mixed

offsetSet()

ArrayAccess::offsetSet

public offsetSet(mixed $offset, mixed $value) : void
Parameters
$offset : mixed
$value : mixed
Return values
void

offsetUnset()

ArrayAccess::offsetUnset

public offsetUnset(mixed $offset) : void
Parameters
$offset : mixed
Return values
void

readForm()

Populate this slice from a time entry form.

public readForm() : mixed

Assumes the values are POSTed.

Return values
mixed

toArray()

public toArray() : mixed
Return values
mixed

toJson()

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>

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

toString()

Render this slice as a string.

public toString() : string
Return values
string

Search results