public function __construct() { $this->object_id = isset($_REQUEST['object_id']) ? $_REQUEST['object_id'] : parent::addError("ObjectId", "Object ID should not be null"); $this->benutzer_id = isset($_REQUEST['benutzer_id']) ? $_REQUEST['benutzer_id'] : parent::addError("benutzer_id", "User ID should not be null"); $this->agentSine = Yii::app()->params['agentSine']; $this->agentDutyCode = Yii::app()->params['agentDutyCode']; }