function user_rating($source) { $value = ArticleRating::current($source->id); if ($value) { return $value; } return $this->default_rating(); }