mirror of
https://github.com/ZoneMinder/zoneminder.git
synced 2026-02-25 18:47:07 -05:00
33 lines
983 B
PHP
33 lines
983 B
PHP
<?php
|
|
namespace ZM;
|
|
require_once('database.php');
|
|
require_once('Event.php');
|
|
require_once('Object.php');
|
|
|
|
class Frame extends ZM_Object {
|
|
protected static $table = 'Frames';
|
|
|
|
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);
|
|
}
|
|
|
|
public function Storage() {
|
|
return $this->Event()->Storage();
|
|
}
|
|
|
|
public function Event() {
|
|
return new Event( $this->{'EventId'} );
|
|
}
|
|
|
|
public function getImageSrc( $show='capture' ) {
|
|
return '?view=image&fid='.$this->{'FrameId'}.'&eid='.$this->{'EventId'}.'&show='.$show;
|
|
#return '?view=image&fid='.$this->{'Id'}.'&show='.$show.'&filename='.$this->Event()->MonitorId().'_'.$this->{'EventId'}.'_'.$this->{'FrameId'}.'.jpg';
|
|
} // end function getImageSrc
|
|
|
|
} # end class Frame
|
|
?>
|