Class DibiRow


Result set single row.


Implements interfaces:

ArrayAccess (internal interface), IteratorAggregate (internal interface), Countable (internal interface)
Copyright: Copyright (c) 2005, 2010 David Grudl
Located: in /libs/DibiRow.php (line 21)
Constructor Summary
public
__construct ($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
count ()
******************* interfaces ArrayAccess, Countable & IteratorAggregate ****************d*g*
void
void
offsetExists ($nm)
void
offsetGet ($nm)
void
offsetSet ($nm, $val)
void
offsetUnset ($nm)
void
toArray ()

Constructor Details

line 24

__construct

public __construct ($arr)

Input
$arr
Method Details

line 76

asBool

public mixed asBool (string $key)

Converts value to boolean.

Input
string $key key
Output
mixed  

line 90

asDate

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

Input
$key
$format
Output
void  
Tags
Deprecated

line 44

asDateTime

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

Converts value to DateTime object.

Input
string $key key
string $format format
Output
DateTime  

line 61

asTimestamp

public int asTimestamp (string $key)

Converts value to UNIX timestamp.

Input
string $key key
Output
int  

line 105

count

public void count ()

******************* interfaces ArrayAccess, Countable & IteratorAggregate ****************d*g*

Implementation of:

Countable::count
Output
void  

line 112

getIterator

public void getIterator ()

Implementation of:

IteratorAggregate::getIterator
Output
void  

line 133

offsetExists

public void offsetExists ($nm)

Implementation of:

ArrayAccess::offsetExists
Input
$nm
Output
void  

line 126

offsetGet

public void offsetGet ($nm)

Implementation of:

ArrayAccess::offsetGet
Input
$nm
Output
void  

line 119

offsetSet

public void offsetSet ($nm, $val)

Implementation of:

ArrayAccess::offsetSet
Input
$nm
$val
Output
void  

line 140

offsetUnset

public void offsetUnset ($nm)

Implementation of:

ArrayAccess::offsetUnset
Input
$nm
Output
void  

line 31

toArray

public void toArray ()

Output
void