aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio <silvio@devlet.com.br>2010-07-27 10:32:12 -0300
committerSilvio <silvio@devlet.com.br>2010-07-27 10:32:12 -0300
commit362ddf298200ee6a7dfcc535df48d22ee2478e9c (patch)
treecc47f870cbc2c68a9d7973cd08280532982e350b
parentde0775587d0bd689f1d8e0053b6430451b5423be (diff)
downloadcinisis-362ddf298200ee6a7dfcc535df48d22ee2478e9c.tar.gz
cinisis-362ddf298200ee6a7dfcc535df48d22ee2478e9c.tar.bz2
Logging
-rw-r--r--classes/BiblioIsisDb.php3
-rw-r--r--classes/MaleteDb.php16
-rw-r--r--classes/PhpIsisDb.php16
3 files changed, 32 insertions, 3 deletions
diff --git a/classes/BiblioIsisDb.php b/classes/BiblioIsisDb.php
index 22586ed..eca03e5 100644
--- a/classes/BiblioIsisDb.php
+++ b/classes/BiblioIsisDb.php
@@ -50,9 +50,6 @@ class BiblioIsisDb implements IsisDb {
*
* @param $message
* Log message.
- *
- * @todo
- * Decide how logging should be implemented.
*/
function logger($message) {
$this->log[] = $message;
diff --git a/classes/MaleteDb.php b/classes/MaleteDb.php
index 6b7b563..17cfdd2 100644
--- a/classes/MaleteDb.php
+++ b/classes/MaleteDb.php
@@ -28,6 +28,12 @@ class MaleteDb implements IsisDb {
var $format;
/**
+ * @var $log
+ * Class action log.
+ */
+ var $log;
+
+ /**
* Constructor.
*
* @see IsisDb::__construct()
@@ -142,4 +148,14 @@ class MaleteDb implements IsisDb {
}
return $data;
}
+
+ /**
+ * Class logger.
+ *
+ * @param $message
+ * Log message.
+ */
+ function logger($message) {
+ $this->log[] = $message;
+ }
}
diff --git a/classes/PhpIsisDb.php b/classes/PhpIsisDb.php
index 4ff8c15..7bd2a75 100644
--- a/classes/PhpIsisDb.php
+++ b/classes/PhpIsisDb.php
@@ -22,6 +22,12 @@ class PhpIsisDb implements IsisDb {
var $format;
/**
+ * @var $log
+ * Class action log.
+ */
+ var $log;
+
+ /**
* Constructor.
*
* @see IsisDb::__construct()
@@ -139,4 +145,14 @@ class PhpIsisDb implements IsisDb {
function charset(&$data) {
$data = iconv($this->format['db']['charset'], 'UTF-8', $data);
}
+
+ /**
+ * Class logger.
+ *
+ * @param $message
+ * Log message.
+ */
+ function logger($message) {
+ $this->log[] = $message;
+ }
}