示例#1
0
 /**
  * 
  * @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;
 }
示例#2
0
 public static function fromPOST()
 {
     $instance = parent::createFromPost(self::class);
     $instance->orion_login = filter_input(INPUT_SESSION, "orion_login");
     return $instance;
 }
示例#3
0
 public function readyForInsert()
 {
     if (parent::readyForInsert()) {
         return true;
     }
     return parent::checkRequiredProperties(self::class);
 }
示例#4
0
 public static function fromPOST($class = null)
 {
     return parent::createFromPost(self::class);
 }