public function getUrl($model = null)
    {
        if($model === null) {
            $m = $this->commentFor[$this->model];
            $model = $this->$m;
        }
        return $model ? $model->url . '#c' . $this->id : '';
    }
public function getUrl($model = null)
    {
        if($model === null) {
            $m = $this->commentFor[$this->model];
            $model = $this->$m;
        }
        return $model ? $model->url . '#c' . $this->id : '';
    }
public function getUrl ( $ model = null ) { if ( $ model === null ) { $ m = $ this -> commentFor [ $ this -> model ] ; $ model = $ this -> $ m ; } return $ model ? $ model -> url . '#c' . $ this -> id : '' ; }
Get Url for the model. By default model is a Post.
@param model that this comment belongs to.
@return string the permalink URL for this comment
Get Url for the model . By default model is a Post .