Class DibiRow


Result-set single row.

ArrayObject
   |
   --DibiRow
Copyright: Copyright (c) 2005, 2010 David Grudl
Located: in /libs/DibiRow.php (line 21)
Constructor Summary
public
__construct (array $arr)
Method Summary
mixed
asBool (string $key)
Converts value to boolean.
void
asDate ($key, [$format = NULL])
DateTime
asDateTime (string $key, [string $format = NULL])
Converts value to DateTime object.
int
asTimestamp (string $key)
Converts value to UNIX timestamp.
void
PHP < 5.3 workaround
Methods Inherited From ArrayObject (Internal Class)
constructor __construct ( $array ), append ( $value ), asort ( ), count ( ), exchangeArray ( $array ), getArrayCopy ( ), getFlags ( ), getIterator ( ), getIteratorClass ( ), ksort ( ), natcasesort ( ), natsort ( ), offsetExists ( $index ), offsetGet ( $index ), offsetSet ( $index, $newval ), offsetUnset ( $index ), setFlags ( $flags ), setIteratorClass ( $iteratorClass ), uasort ( $cmp_function ), uksort ( $cmp_function )
Constant Summary
Constants Inherited From ArrayObject (Internal Class)
ARRAY_AS_PROPS = 2, STD_PROP_LIST = 1

Constructor Details

line 27

__construct

public __construct (array $arr)

Input
array $arr
Method Details

line 72

asBool

public mixed asBool (string $key)

Converts value to boolean.

Input
string $key key
Output
mixed  

line 97

asDate

public void asDate ($key, [$format = NULL])

Input
$key
$format
Output
void  
Tags
Deprecated

line 40

asDateTime

public DateTime asDateTime (string $key, [string $format = NULL])

Converts value to DateTime object.

Input
string $key key
string $format format
Output
DateTime  

line 57

asTimestamp

public int asTimestamp (string $key)

Converts value to UNIX timestamp.

Input
string $key key
Output
int  

line 89

__wakeup

public void __wakeup ()

PHP < 5.3 workaround

Output
void