Add Report ORM

pull/3588/head
Isaac Connor 2022-08-04 09:35:25 -04:00
parent b4000ef0c7
commit 6bc0ec6aab
1 changed files with 26 additions and 0 deletions

26
web/includes/Report.php Normal file
View 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
?>