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
파일 보기 프로젝트 열기: horde/horde 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$_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