public function setControl($control) { if (!$control instanceof IJuiOptions) { throw new THttpException(500, 'juioptions_control_invalid', $control->ID); } $this->_control = $control; }