mirror of
https://github.com/ZoneMinder/zoneminder.git
synced 2026-05-19 12:06:29 -04:00
Add Report ORM
This commit is contained in:
26
web/includes/Report.php
Normal file
26
web/includes/Report.php
Normal file
@@ -0,0 +1,26 @@
|
||||
<?php
|
||||
namespace ZM;
|
||||
require_once('database.php');
|
||||
require_once('Object.php');
|
||||
|
||||
class Report extends ZM_Object {
|
||||
protected static $table = 'Reports';
|
||||
|
||||
protected $defaults = array(
|
||||
'Id' => null,
|
||||
'Name' => '',
|
||||
'FilterId' => null,
|
||||
'StartDateTime' => null,
|
||||
'EndDateTime' => null,
|
||||
'Interval' => '86400',
|
||||
);
|
||||
|
||||
public static function find( $parameters = array(), $options = array() ) {
|
||||
return ZM_Object::_find(get_class(), $parameters, $options);
|
||||
}
|
||||
|
||||
public static function find_one( $parameters = array(), $options = array() ) {
|
||||
return ZM_Object::_find_one(get_class(), $parameters, $options);
|
||||
}
|
||||
} # end class Report
|
||||
?>
|
||||
Reference in New Issue
Block a user