From: Jan Schneider Date: Fri, 7 May 2010 12:42:41 +0000 (+0200) Subject: Make internal() public. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=414bc340ddcb27b4ec60a10c86c51aad04043835;p=horde.git Make internal() public. --- diff --git a/framework/Alarm/lib/Horde/Alarm.php b/framework/Alarm/lib/Horde/Alarm.php index 78e240801..e7d95187a 100644 --- a/framework/Alarm/lib/Horde/Alarm.php +++ b/framework/Alarm/lib/Horde/Alarm.php @@ -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. diff --git a/framework/Alarm/lib/Horde/Alarm/Null.php b/framework/Alarm/lib/Horde/Alarm/Null.php index 0c337215f..c027abb46 100644 --- a/framework/Alarm/lib/Horde/Alarm/Null.php +++ b/framework/Alarm/lib/Horde/Alarm/Null.php @@ -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) { } diff --git a/framework/Alarm/lib/Horde/Alarm/Object.php b/framework/Alarm/lib/Horde/Alarm/Object.php index e9170a632..291014954 100644 --- a/framework/Alarm/lib/Horde/Alarm/Object.php +++ b/framework/Alarm/lib/Horde/Alarm/Object.php @@ -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 * @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; diff --git a/framework/Alarm/lib/Horde/Alarm/Sql.php b/framework/Alarm/lib/Horde/Alarm/Sql.php index 4f540ba8f..601d71547 100644 --- a/framework/Alarm/lib/Horde/Alarm/Sql.php +++ b/framework/Alarm/lib/Horde/Alarm/Sql.php @@ -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:
  * '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);