diff options
author | Silvio <silvio@devlet.com.br> | 2010-03-30 15:41:42 -0300 |
---|---|---|
committer | Silvio <silvio@devlet.com.br> | 2010-03-30 15:41:42 -0300 |
commit | 2fc4b766f4422f6a58c0a535fadf99096e7a9ddd (patch) | |
tree | 62ac2cd98f59541d9dde04ca93404b7d433f0daf /classes/MaleteDb.php | |
parent | ed4a97748c2c9b76e45c69287d37f995da8fcbde (diff) | |
download | cinisis-2fc4b766f4422f6a58c0a535fadf99096e7a9ddd.tar.gz cinisis-2fc4b766f4422f6a58c0a535fadf99096e7a9ddd.tar.bz2 |
Adding doxygen
Diffstat (limited to 'classes/MaleteDb.php')
-rw-r--r-- | classes/MaleteDb.php | 44 |
1 files changed, 43 insertions, 1 deletions
diff --git a/classes/MaleteDb.php b/classes/MaleteDb.php index fd10c78..d420af6 100644 --- a/classes/MaleteDb.php +++ b/classes/MaleteDb.php @@ -4,10 +4,29 @@ * Malete implementation of IsisDb. */ class MaleteDb implements IsisDb { + /** + * @var $fdt + * Field description table. + */ var $fdt; + + /** + * @var $db + * Database resource. + */ var $db; + + /** + * @var $format + * Database format, derived from $schema. + */ var $format; + /** + * Constructor. + * + * @see IsisDb::__construct() + */ public function __construct($schema) { // Save db schema. $this->format = $schema; @@ -24,6 +43,11 @@ class MaleteDb implements IsisDb { } } + /** + * Read an entry. + * + * @see IsisDb::read() + */ public function read($id) { if (!is_numeric($id)) { return FALSE; @@ -37,6 +61,11 @@ class MaleteDb implements IsisDb { } } + /** + * Return number of rows in the database. + * + * @see IsisDb::read() + */ public function rows() { $id = 1; while($this->db->read($id)) { @@ -45,11 +74,24 @@ class MaleteDb implements IsisDb { return $id - 1; } + /** + * Return a default example schema. + * + * @see IsisDb::default_schema() + */ public function default_schema() { return SchemaDb::default_schema(); } - // Tag results of a db query. + /** + * Tag results of a db query. + * + * @param $results + * Database query results. + * + * @return + * Tagged database result. + */ function tag($results) { foreach ($results->val as $key => $value) { $field = $results->tag[$key]; |