From f2aed5fc216c81b62e7b35776ed27f42f07f4237 Mon Sep 17 00:00:00 2001 From: IgorA100 Date: Wed, 3 Apr 2024 22:58:21 +0300 Subject: [PATCH] Chore: Adjust spaces, tabs, newlines --- web/includes/Event.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/web/includes/Event.php b/web/includes/Event.php index 653a12ab4..87b0d02f6 100644 --- a/web/includes/Event.php +++ b/web/includes/Event.php @@ -121,6 +121,7 @@ class Event extends ZM_Object { public function StartDateTimeSecs() { return strtotime($this->{'StartDateTime'}); } + public function EndDateTimeSecs() { return strtotime($this->{'EndDateTime'}); } @@ -256,7 +257,6 @@ class Event extends ZM_Object { } public function getStreamSrc( $args=array(), $querySep='&' ) { - $Server = $this->Server(); # If we are in a multi-port setup, then use the multiport, else by @@ -321,8 +321,8 @@ class Event extends ZM_Object { } function createListThumbnail( $overwrite=false ) { - # The idea here is that we don't really want to use the analysis jpeg as the thumbnail. - # The snapshot image will be generated during capturing + # The idea here is that we don't really want to use the analysis jpeg as the thumbnail. + # The snapshot image will be generated during capturing if ( file_exists($this->Path().'/snapshot.jpg') ) { Debug("snapshot exists"); $frame = null; @@ -384,7 +384,7 @@ class Event extends ZM_Object { function getThumbnailSrc( $args=array(), $querySep='&' ) { # The thumbnail is theoretically the image with the most motion. -# We always store at least 1 image when capturing + # We always store at least 1 image when capturing $streamSrc = ''; $Server = $this->Server(); @@ -529,7 +529,7 @@ class Event extends ZM_Object { 'imageClass' => $alarmFrame?'alarm':'normal', 'isAnalysisImage' => $isAnalysisImage, 'hasAnalysisImage' => $hasAnalysisImage, - 'FrameId' => $frame['FrameId'], + 'FrameId' => $frame['FrameId'], ); return $imageData; @@ -681,6 +681,7 @@ class Event extends ZM_Object { } return false; } + function canEdit($u=null) { global $user; if (!$u) $u=$user; @@ -844,5 +845,4 @@ class Event extends ZM_Object { } # end sub GenerateVideo } # end class - ?>