From a39fb6bd4670137a4d682403bf80dd5d1b50ada2 Mon Sep 17 00:00:00 2001 From: Silvio Date: Wed, 31 Mar 2010 10:55:44 -0300 Subject: More coments --- classes/MaleteDb.php | 4 ++++ classes/PhpIsisDb.php | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/classes/MaleteDb.php b/classes/MaleteDb.php index 628fbe8..0628e9e 100644 --- a/classes/MaleteDb.php +++ b/classes/MaleteDb.php @@ -64,6 +64,10 @@ class MaleteDb implements IsisDb { /** * Return number of rows in the database. * + * The Malete API doen't implement such feature so we + * have to emulate it by iterating over all entries + * until MaleteDb::read() returns FALSE. + * * @see IsisDb::read() */ public function rows() { diff --git a/classes/PhpIsisDb.php b/classes/PhpIsisDb.php index 8dd57d0..169f832 100644 --- a/classes/PhpIsisDb.php +++ b/classes/PhpIsisDb.php @@ -38,6 +38,10 @@ class PhpIsisDb implements IsisDb { /** * Read an entry. * + * The PHP-Isis API doen't implement such feature so we + * have to emulate it by geting all entries and using + * isis_data_seek() to get the desired record. + * * @see IsisDb::read() */ public function read($id) { -- cgit v1.2.3