Overview

Packages

  • Hermes
  • Horde
    • Data
  • Kronolith
  • None

Classes

  • Hermes_Application
  • Hermes_Exception
  • Hermes_Form_JobType_Add
  • Hermes_Slice
  • Hermes_Table
  • Overview
  • Package
  • Class
  • Tree

Class Hermes_Slice

Hermes_Slice:: Lightweight wrapper around a single timeslice

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

Hermes_Slice implements ArrayAccess, IteratorAggregate
Author: Michael J Rubinsky mrubinsk@horde.org
Located at Slice.php
Methods summary
public
# __construct( array $properties = array() )
public
# toArray( )
public
# fromJson( stdClass $json )

Populate object from a json object.

Populate object from a json object.

Parameters

$json
containing slice data. @see self::toJson()
public
# readForm( )

Populate this slice from a time entry form. Assumes the values are POSTed.

Populate this slice from a time entry form. Assumes the values are POSTed.

public array
# 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

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

Returns

array
public boolean
# offsetExists( mixed $offset )

ArrayAccess::offsetExists

ArrayAccess::offsetExists

Parameters

$offset

Returns

boolean

Implementation of

ArrayAccess::offsetExists()
public mixed
# offsetGet( mixed $offset )

ArrayAccess::offsetGet

ArrayAccess::offsetGet

Parameters

$offset

Returns

mixed

Implementation of

ArrayAccess::offsetGet()
public
# offsetSet( mixed $offset, mixed $value )

ArrayAccess::offsetSet

ArrayAccess::offsetSet

Parameters

$offset
$value

Implementation of

ArrayAccess::offsetSet()
public
# offsetUnset( mixed $offset )

ArrayAccess::offsetUnset

ArrayAccess::offsetUnset

Parameters

$offset

Implementation of

ArrayAccess::offsetUnset()
public
# getIterator( )

IteratorAggregate::getIterator

IteratorAggregate::getIterator

Implementation of

IteratorAggregate::getIterator()
API documentation generated by ApiGen