user = $user; } /** * {@inheritdoc} */ public function getSubject() { return sprintf( _('admin::register: Nouvelle commande sur %s'), $this->getPhraseanetTitle() ); } /** * {@inheritdoc} */ public function getMessage() { if (!$this->user instanceof \User_Adapter) { throw new LogicException('You must set a user before calling getMessage()'); } return sprintf(_('%s has ordered documents'),$this->user->get_display_name()); } /** * {@inheritdoc} */ public function getButtonText() { return sprintf(_('See order on %s'), $this->getPhraseanetTitle()); } /** * {@inheritdoc} */ public function getButtonURL() { return $this->app->url('prod'); } }