private function getCommentModel($id=NULL)
	{
		if ($id === NULL)
			throw new CHttpException(400, Yii::t('Api.comment', 'Missing id'));

		$model = Comments::model()->findByPk($id);
		if ($model === NULL)
			throw new CHttpException(404, Yii::t('Api.comment', 'Comment #{{id}} was not found.', array('{{id}}' => $id)));

		return $model;
	}
private function getCommentModel($id=NULL)
	{
		if ($id === NULL)
			throw new CHttpException(400, Yii::t('Api.comment', 'Missing id'));

		$model = Comments::model()->findByPk($id);
		if ($model === NULL)
			throw new CHttpException(404, Yii::t('Api.comment', 'Comment #{{id}} was not found.', array('{{id}}' => $id)));

		return $model;
	}
private function getCommentModel ( $ id = NULL ) { if ( $ id === NULL ) throw new CHttpException ( 400 , Yii :: t ( 'Api.comment' , 'Missing id' ) ) ; $ model = Comments :: model ( ) -> findByPk ( $ id ) ; if ( $ model === NULL ) throw new CHttpException ( 404 , Yii :: t ( 'Api.comment' , 'Comment #{{id}} was not found.' , array ( '{{id}}' => $ id ) ) ) ; return $ model ; }
Retrieves the Comment model
@param  int    $id The comment model
@return Comment
Retrieves the Comment model