[ Index ]

PHP Cross Reference of Yamoon 0.9.0

title

Body

[close]

/Yamoon/ -> Config.php (summary)

(no description)

File Size: 119 lines (3 kb)
Included or required: 7 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

Config:: (5 methods):
  Config()
  getDB()
  dbConnect()
  query()
  select()


Class: Config  - X-Ref

Config.php - have all configurations for this program.
It's configuration is hard coded inside the class, I'll have
to change it to accept four methods: read, write, get, set.

This class is used within all classes of Yamoon.
Config()   X-Ref
Config Constructor. Sets all config values.


getDB()   X-Ref
Return the database. Connect to it if $this->db is empty.


dbConnect()   X-Ref
Connect to a MySQL database.

return $db The database handler.

query($query, $values=array()   X-Ref
Execute a query and return it's resultSet object. Call this
method directly if issuing a update or delete.

param $query The query to be executed (use ? instead of '$param' inside it)
param $values An array with all values (one for each ? inside the query)
return $res The resultSet Object

select($query, $values=array()   X-Ref
Execute a select query and return the array of values.
This method calls the query() method and fetch the object array
from the resultSet returned.

param $query The query to be executed (use ? instead of '$param' inside it)
param $values An array with all values (one for each ? inside the query)
return $rows The array with all returned objects



Generated: Sat Feb 19 17:29:53 2005 Cross-referenced by PHPXref 0.6