/** * * @return Feedback */ public static function fromPOST() { $feedback = parent::createFromPost(self::class); switch ($feedback->feedback_type) { case self::TYPE_BUG: case self::TYPE_SUGGESTION: break; default: $feedback->feedback_type = self::TYPE_BUG; } return $feedback; }
public static function fromPOST() { $instance = parent::createFromPost(self::class); $instance->orion_login = filter_input(INPUT_SESSION, "orion_login"); return $instance; }
public function readyForInsert() { if (parent::readyForInsert()) { return true; } return parent::checkRequiredProperties(self::class); }
public static function fromPOST($class = null) { return parent::createFromPost(self::class); }