From 4c3ea7125d54c71a790e6b8cb0aca3c8d8118029 Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Sun, 22 Sep 2019 14:21:59 -0400 Subject: [PATCH] Add defaults to Frame --- web/includes/Frame.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/web/includes/Frame.php b/web/includes/Frame.php index f472a38e6..1117459dc 100644 --- a/web/includes/Frame.php +++ b/web/includes/Frame.php @@ -6,6 +6,15 @@ require_once('Object.php'); class Frame extends ZM_Object { protected static $table = 'Frames'; + protected $defaults = array( + 'Id' => null, + 'EventId' => 0, + 'FrameId' => 0, + 'Type' => 'Normal', + 'TimeStamp' => 0, + 'Delta' => 0.00, + 'Score' => 0, + ); public static function find( $parameters = array(), $options = array() ) { return ZM_Object::_find(get_class(), $parameters, $options);