protected function _status($id, $status) {
		if (!$this->{$this->modelClass}->changeStatus($id, $status)) {
			return $this->alert('status.fail');
		}
		$this->alert('status.success');
	}
protected function _status($id, $status) {
		if (!$this->{$this->modelClass}->changeStatus($id, $status)) {
			return $this->alert('status.fail');
		}
		$this->alert('status.success');
	}
protected function _status ( $ id , $ status ) { if ( ! $ this -> { $ this -> modelClass } -> changeStatus ( $ id , $ status ) ) { return $ this -> alert ( 'status.fail' ) ; } $ this -> alert ( 'status.success' ) ; }
Common status action.

@param string $id Model's record primary key value.
@param string $status New status to change to.
@return void
Common status action .