Make internal() public.
authorJan Schneider <jan@horde.org>
Fri, 7 May 2010 12:42:41 +0000 (14:42 +0200)
committerJan Schneider <jan@horde.org>
Fri, 7 May 2010 12:42:41 +0000 (14:42 +0200)
framework/Alarm/lib/Horde/Alarm.php
framework/Alarm/lib/Horde/Alarm/Null.php
framework/Alarm/lib/Horde/Alarm/Object.php
framework/Alarm/lib/Horde/Alarm/Sql.php

index 78e2408..e7d9518 100644 (file)
@@ -280,7 +280,7 @@ abstract class Horde_Alarm
      *
      * @throws Horde_Alarm_Exception
      */
-    abstract protected function _internal($id, $user, array $internal);
+    abstract public function internal($id, $user, array $internal);
 
     /**
      * Returns whether an alarm with the given id exists already.
index 0c33721..c027abb 100644 (file)
@@ -78,7 +78,7 @@ class Horde_Alarm_Null extends Horde_Alarm
      *
      * @throws Horde_Alarm_Exception
      */
-    protected function _internal($id, $user, array $internal)
+    public function internal($id, $user, array $internal)
     {
     }
 
index e9170a6..2910149 100644 (file)
@@ -9,8 +9,8 @@
  */
 
 /**
- * The Horde_Alarm_Object:: class is a Horde_Alarm storage implementation
- * using an object instance.
+ * The Horde_Alarm_Object class is a Horde_Alarm storage implementation using
+ * an object instance.
  *
  * @author  Jan Schneider <jan@horde.org>
  * @package Horde_Alarm
@@ -146,7 +146,7 @@ class Horde_Alarm_Object extends Horde_Alarm
      *
      * @throws Horde_Alarm_Exception
      */
-    protected function _internal($id, $user, array $internal)
+    public function internal($id, $user, array $internal)
     {
         $alarm = &$this->_findAlarm($id, $user);
         $alarm['internal'] = $internal;
index 4f540ba..601d715 100644 (file)
@@ -9,8 +9,8 @@
  */
 
 /**
- * The Horde_Alarm_sql:: class is a Horde_Alarm storage implementation using
- * the PEAR DB package.
+ * The Horde_Alarm_sql class is a Horde_Alarm storage implementation using the
+ * PEAR DB package.
  *
  * Required values for $params:<pre>
  * 'phptype' - (string) The database type (e.g. 'pgsql', 'mysql', etc.).
@@ -235,7 +235,7 @@ class Horde_Alarm_Sql extends Horde_Alarm
      *
      * @throws Horde_Alarm_Exception
      */
-    protected function _internal($id, $user, array $internal)
+    public function internal($id, $user, array $internal)
     {
         $query = sprintf('UPDATE %s set alarm_internal = ? WHERE alarm_id = ? AND %s',
                          $this->_params['table'],
@@ -243,7 +243,7 @@ class Horde_Alarm_Sql extends Horde_Alarm
         $values = array(serialize($internal), $id, $user);
 
         if ($this->_logger) {
-            $this->_logger->log('SQL query by Horde_Alarm_sql::_internal(): ' . $query, 'DEBUG');
+            $this->_logger->log('SQL query by Horde_Alarm_sql::internal(): ' . $query, 'DEBUG');
         }
 
         $result = $this->_write_db->query($query, $values);