/**
  * {@inheritDoc}
  */
 public function setReviewerName($reviewerName)
 {
     $this->__initializer__ && $this->__initializer__->__invoke($this, 'setReviewerName', array($reviewerName));
     return parent::setReviewerName($reviewerName);
 }
示例#2
0
 /**
  * Update the reviewer name, email and profile
  *
  * @param \XLite\Module\XC\Reviews\Model\Review $review    Review model object
  * @param integer                               $profileId Profile identificator
  *
  * @return void
  */
 protected function updateProfile(\XLite\Module\XC\Reviews\Model\Review $review, $profileId)
 {
     $profile = \XLite\Core\Database::getRepo('XLite\\Model\\Profile')->find($profileId);
     if ($profile) {
         $review->setProfile($profile);
         $review->setReviewerName($profile->getName());
         $review->setEmail($profile->getLogin());
     }
 }