$exceptionOnNullModel $exceptionOnNullModel : bool Type bool — whether to throw an exception if we cannot find a model requested by the id
$additionalCriteriaOnLoadModel $additionalCriteriaOnLoadModel : array Type array — additional criteria to use to get the model
$redirectRoute $redirectRoute : mixed Type mixed — the route to redirect the call after updating attribute
$yesValue $yesValue : int|string Type int|string — the value to update the model to [yes|no] standard toggle options, but you can toggle any value.
$ajaxResponseOnSuccess $ajaxResponseOnSuccess : mixed Type mixed — the response to return to an AJAX call when the attribute was successfully saved.
$ajaxResponseOnFailed $ajaxResponseOnFailed : mixed Type mixed — the response to return to an AJAX call when failed to update the attribute.
loadModel() loadModel(integer $id) : \CActiveRecord Loads the requested data model. Parameters integer $id the model ID Throws \CHttpException if the model cannot be found Returns \CActiveRecord — the model instance.