Class Horde_Alarm_Sql
The Horde_Alarm_sql class is a Horde_Alarm storage implementation using the
PEAR DB package.
The table structure can be created by the
horde/scripts/sql/horde_alarm.sql script.
-
Horde_Alarm
-
Horde_Alarm_Sql
Methods summary
public
|
#
__construct( array $params = array() )
Constructor.
Parameters
- $params
- Configuration parameters:
<pre><span class="php-quote">'db'</span> - (Horde_Db_Adapter) [REQUIRED] The DB instance.
<span class="php-quote">'table'</span> - (string) The name of the tokens table in <span class="php-quote">'database'</span>.
<span class="php-keyword1">DEFAULT</span>: <span class="php-quote">'horde_alarms'</span></pre>
Throws
Overrides
|
public
|
#
internal( string $id, string $user, array $internal )
Updates internal alarm properties, i.e. properties not determined by
the application setting the alarm.
Updates internal alarm properties, i.e. properties not determined by
the application setting the alarm.
Parameters
- $id
- The alarm's unique id.
- $user
- The alarm's user
- $internal
- A hash with the internal data.
Throws
|
public
|
|
Methods inherited from Horde_Alarm
addHandler(),
delete(),
exists(),
gc(),
get(),
globalAlarms(),
handlers(),
isSnoozed(),
listAlarms(),
notify(),
set(),
snooze()
|