Class Gadget_DAO

Description

Gadget_DAO

Add some convinience methods to the original DB_DataObject.

  • since: 1.0

Located in /Gadget/DAO.php (line 59)

DB_DataObject
   |
   --Gadget_DAO
Method Summary
mixed callDB (string $method, [array $params = array()])
string datetime (int $diff, [bool $full = true])
mixed find (mixed $mask)
int foundRows ()
string getSelectQuery ()
mixed insert ()
string now ()
mixed quoteSmart (mixed $mixed)
bool replace ()
void selectSet (string $select)
string timestamp (int $diff, [mixed $length = 14], [mixed $fill = false])
object toObject ()
bool union (array $daos, [string $append = ''])
mixed update ([mixed $whereAddOnly = false])
bool wasModified ()
void whereSet (string $where)
mixed _query (string $query)
Methods
callDB (line 122)

Call a method of the underlying DB object

  • access: public
mixed callDB (string $method, [array $params = array()])
  • string $method
  • array $params
datetime (line 170)

Datetime

  • access: public
string datetime (int $diff, [bool $full = true])
  • int $diff
  • bool $full
find (line 218)

Find

  • access: public
mixed find (mixed $mask)
foundRows (line 108)

Found Rows

Retrieve found rows - available with calcRows() selects.

  • access: public
int foundRows ()
getSelectQuery (line 268)

Get Select Query

  • access: public
string getSelectQuery ()
insert (line 205)

Insert

  • access: public
mixed insert ()
now (line 157)

Now

  • access: public
string now ()
quoteSmart (line 94)

Quote Smart

  • access: public
mixed quoteSmart (mixed $mixed)
  • mixed $mixed
replace (line 134)

Replace

  • access: public
bool replace ()
selectSet (line 68)

Set Select

  • access: public
void selectSet (string $select)
  • string $select
timestamp (line 182)

Timestamp

  • access: public
string timestamp (int $diff, [mixed $length = 14], [mixed $fill = false])
  • int $diff
toObject (line 146)

To Object

  • access: public
object toObject ()
union (line 305)

Union

  • access: public
bool union (array $daos, [string $append = ''])
  • array $daos
  • string $append
update (line 193)

Update

  • access: public
mixed update ([mixed $whereAddOnly = false])
wasModified (line 324)

Not Modified

  • access: public
bool wasModified ()
whereSet (line 81)

Set Where

  • access: public
void whereSet (string $where)
  • string $where
_query (line 250)

Query

mixed _query (string $query)
  • string $query

Documentation generated on Sun, 03 Jul 2005 12:45:38 +0200 by phpDocumentor 1.3.0RC3