public function __construct($strAction) { if ($strAction == '') { throw new \Exception('Missing Ajax action'); } $this->strAction = $strAction; parent::__construct(); }