27 lines
695 B
PHP
27 lines
695 B
PHP
<?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(self::class, $parameters, $options);
|
|
}
|
|
|
|
public static function find_one( $parameters = array(), $options = array() ) {
|
|
return ZM_Object::_find_one(self::class, $parameters, $options);
|
|
}
|
|
} # end class Report
|
|
?>
|