42 lines
1.0 KiB
PHP
42 lines
1.0 KiB
PHP
|
<?php
|
||
|
namespace ZM;
|
||
|
require_once('database.php');
|
||
|
require_once('Object.php');
|
||
|
|
||
|
|
||
|
class Zone extends ZM_Object {
|
||
|
protected static $table = 'Zones';
|
||
|
|
||
|
protected $defaults = array(
|
||
|
'Id' => null,
|
||
|
'Name' => '',
|
||
|
'Type' => 'Active',
|
||
|
'Units' => 'Pixels',
|
||
|
'CheckMethod' => 'Blobs',
|
||
|
'MinPixelThreshold' => null,
|
||
|
'MaxPixelThreshold' => null,
|
||
|
'MinAlarmPixels' => null,
|
||
|
'MaxAlarmPixels' => null,
|
||
|
'FilterX' => null,
|
||
|
'FilterY' => null,
|
||
|
'MinFilterPixels' => null,
|
||
|
'MaxFilterPixels' => null,
|
||
|
'MinBlobPixels' => null,
|
||
|
'MaxBlobPixels' => null,
|
||
|
'MinBlobs' => null,
|
||
|
'MaxBlobs' => null,
|
||
|
'OverloadFrames' => 0,
|
||
|
'ExtendAlarmFrames' => 0,
|
||
|
);
|
||
|
|
||
|
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 Zone
|
||
|
?>
|