is_max_score = true; $this->end_point = ARISTREAMQUIZ_RESULTTEMPLATE_MAXSCORE; } return $result; } public function load( $keys, $reset = true ) { $result = parent::load($keys, $reset); if (!$result) return $result; if ( ARISTREAMQUIZ_RESULTTEMPLATE_MAXSCORE == $this->end_point ) { $this->is_max_score = true; } return $result; } public function is_max_score() { return $this->is_max_score; } public function validate() { return true; } public function is_empty() { if ( empty( $this->template_title ) && empty( $this->description ) && empty( $this->image_id ) && $this->is_max_score() ) return true; return false; } }