public function actionAdmin()
 {
     $model = new ProfileComment('search');
     $model->unsetAttributes();
     if (isset($_GET['ProfileComment'])) {
         $model->attributes = $_GET['ProfileComment'];
     }
     $this->render('admin', array('model' => $model));
 }
Example #2
0
	final public function delete_profile_comment(ProfileComment $comment) {
		/*
		(ProfileComment) -> Bool
		Attempts to delete a profile comment on the user's profile
		 */
		if ($comment->comment_id && $comment->author->user_id == $this->user_id || $comment->profile->user_id == $this->user_id) {
			return $comment->self_destruct();
		}
		else {
			throw new OutOfBoundsException('OutOfBoundsException occured on request, you do not have permission to preform this action');
		}
	}