mirror of
https://github.com/ZoneMinder/zoneminder.git
synced 2026-10-25 07:48:26 -04:00
Rename Snapshot_Events to Snapshots_Events
This commit is contained in:
1 parent
fde0d652e5
commit
031c573646
1 file changed
+3
-3
@@ -28,14 +28,14 @@ class Snapshot extends ZM_Object {
|
||||
|
||||
public function delete() {
|
||||
if ( property_exists($this, 'Id') ) {
|
||||
dbQuery('DELETE FROM `Snapshot_Events` WHERE `SnapshotId`=?', array($this->{'Id'}));
|
||||
dbQuery('DELETE FROM `Snapshots_Events` WHERE `SnapshotId`=?', array($this->{'Id'}));
|
||||
dbQuery('DELETE FROM `Snapshots` WHERE `Id`=?', array($this->{'Id'}));
|
||||
}
|
||||
}
|
||||
|
||||
public function EventIds( ) {
|
||||
if ( ! property_exists($this, 'EventIds') ) {
|
||||
$this->{'EventIds'} = dbFetchAll('SELECT `EventId` FROM `Snapshot_Events` WHERE `SnapshotId`=?', 'EventId', array($this->{'Id'}));
|
||||
$this->{'EventIds'} = dbFetchAll('SELECT `EventId` FROM `Snapshots_Events` WHERE `SnapshotId`=?', 'EventId', array($this->{'Id'}));
|
||||
}
|
||||
return $this->{'EventIds'};
|
||||
}
|
||||
@@ -49,7 +49,7 @@ class Snapshot extends ZM_Object {
|
||||
} # end class Snapshot
|
||||
|
||||
class Snapshot_Event extends ZM_Object {
|
||||
protected static $table = 'Snapshot_Events';
|
||||
protected static $table = 'Snapshots_Events';
|
||||
protected $defaults = array(
|
||||
'Id' => null,
|
||||
'EventId' => 0,
|
||||
|
||||
Reference in new issue
Block a user