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

		$model = Content::model()->findByPk($id);
		if ($model === NULL)
			throw new CHttpException(404, Yii::t('Api.content', 'An entry with the id of {{id}} was not found', array('{{id}}' => $id)));

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

		$model = Content::model()->findByPk($id);
		if ($model === NULL)
			throw new CHttpException(404, Yii::t('Api.content', 'An entry with the id of {{id}} was not found', array('{{id}}' => $id)));

		return $model;
	}
private function loadModel ( $ id = NULL ) { if ( $ id === NULL ) throw new CHttpException ( 400 , Yii :: t ( 'Api.content' , 'Missing id' ) ) ; $ model = Content :: model ( ) -> findByPk ( $ id ) ; if ( $ model === NULL ) throw new CHttpException ( 404 , Yii :: t ( 'Api.content' , 'An entry with the id of {{id}} was not found' , array ( '{{id}}' => $ id ) ) ) ; return $ model ; }
Retrieves the model
@param  int    $id The content ID
@return Content
Retrieves the model