3 code examples of PHP v5\Models\Helpers\HideAuthor extracted from open source projects
public function getAuthorRealnameAttribute($value)
{
return HideAuthor::hideAuthor(
$value,
$this->survey ? $this->survey->hide_author : true,
$this->getAttributeValue('user_id')
);
}
public function getAuthorEmailAttribute($value)
{
return HideAuthor::hideAuthor(
$value,
$this->survey ? $this->survey->hide_author : true,
$this->getAttributeValue('user_id')
);
}
} //end translations()
public function getUserIdAttribute($value)
{
return HideAuthor::hideAuthor($value, $this->survey ? $this->survey->hide_author : true, $value);
}