コード例 #1
0
 public function getMsg()
 {
     if (null === $this->_msg) {
         $linkRemetente = anchor('/perfil/' . $this->getConvite()->getRemetente()->getId(), $this->getConvite()->getRemetente()->getNome());
         $linkConvites = anchor('/convite/index/recebidos', 'solicitação de amizade');
         $this->setMsg($linkRemetente . ' enviou uma ' . $linkConvites . ' para você.');
     }
     return parent::getMsg();
 }
コード例 #2
0
 public function getMsg()
 {
     if (null === $this->_msg) {
         $linkRemetente = anchor('/perfil/' . $this->getConvite()->getDestinatario()->getId(), $this->getConvite()->getDestinatario()->getNome());
         $linkAmizade = anchor('/usuario/amigos', 'amigos');
         $this->setMsg($linkRemetente . ' aceitou sua solicitação de amizade, e agora vocês são ' . $linkAmizade . ' no WeLearn.');
     }
     return parent::getMsg();
 }
コード例 #3
0
 public function getMsg()
 {
     if (null === $this->_msg) {
         $linkSugestao = anchor('/curso/sugestao', $this->getSugestao()->getNome());
         $linkCurso = anchor('/curso/' . $this->getCursoCriado()->getId(), $this->getCursoCriado()->getNome());
         $this->setMsg('A sugestão de curso ' . $linkSugestao . ' que você criou, gerou o curso ' . $linkCurso . '.');
     }
     return parent::getMsg();
 }
コード例 #4
0
 public function getMsg()
 {
     if (null === $this->_msg) {
         $linkCurso = anchor('/curso/' . $this->getCurso()->getId(), $this->getCurso()->getNome());
         $linkConvite = anchor('/curso/meus_convites', 'convite');
         $this->setMsg('Você recebeu um ' . $linkConvite . ' para fazer parte do corpo de gerenciadores do curso ' . $linkCurso . '.');
     }
     return parent::getMsg();
 }
コード例 #5
0
 public function getMsg()
 {
     if (null === $this->_msg) {
         $linkCurso = anchor('/curso/' . $this->getCurso()->getId(), $this->getCurso()->getNome());
         $this->setMsg('Você foi desvinculado do curso ' . $linkCurso . ' pelo Gerenciador Principal.
                         Você não faz mais parte do corpo de gerenciadores deste curso.');
     }
     return parent::getMsg();
 }
コード例 #6
0
 public function getMsg()
 {
     if (null === $this->_url) {
         $linkCurso = anchor('/curso/' . $this->getCurso()->getId(), $this->getCurso()->getNome());
         $this->setMsg('Sua incrição para fazer parte do curso ' . $linkCurso . ' foi aceita pelos gerenciadores.
                         Agora você é um aluno deste curso e poderá acessar seu conteúdo restrito.');
     }
     return parent::getMsg();
 }
コード例 #7
0
 public function getMsg()
 {
     if (null === $this->_msg) {
         $linkCurso = anchor('/curso/' . $this->getCurso()->getId(), $this->getCurso()->getNome());
         $this->setMsg('Você foi desvinculado do curso ' . $linkCurso . ' por um dos gerenciadores.
                         Você não poderá mais acessar os conteúdos restritos deste curso.');
     }
     return parent::getMsg();
 }
コード例 #8
0
 public function getMsg()
 {
     if (null === $this->_url) {
         $linkCurso = anchor('/curso/' . $this->getCurso()->getId(), $this->getCurso()->getNome());
         $this->setMsg('Sua incrição para fazer parte do curso ' . $linkCurso . ' foi recusada pelos gerenciadores.
                         Contate-os e tente novamente.');
     }
     return parent::getMsg();
 }
コード例 #9
0
 public function getMsg()
 {
     if (null === $this->_msg) {
         $linkMsg = anchor('/usuario/mensagem/listar/' . $this->getMensagemPessoal()->getRemetente()->getId(), 'mensagem pessoal');
         $linkRemetente = anchor('/perfil/' . $this->getMensagemPessoal()->getRemetente()->getId(), $this->getMensagemPessoal()->getRemetente()->getNome());
         $this->setMsg($linkRemetente . ' enviou uma ' . $linkMsg . ' para você.');
     }
     return parent::getMsg();
 }
コード例 #10
0
 public function getMsg()
 {
     if (null === $this->_msg) {
         $linkResenha = anchor('/curso/review/' . $this->getResenha()->getCurso()->getId(), 'avaliação');
         $linkCurso = anchor('/curso/' . $this->getResenha()->getCurso()->getId(), $this->getResenha()->getCurso()->getNome());
         $linkGerenciador = anchor('/perfil/' . $this->getResenha()->getResposta()->getCriador()->getId(), $this->getResenha()->getResposta()->getCriador()->getNome());
         $this->setMsg('Sua ' . $linkResenha . ' do curso ' . $linkCurso . ' foi respondida pelo Gerenciador ' . $linkGerenciador . '.');
     }
     return parent::getMsg();
 }
コード例 #11
0
 public function getMsg()
 {
     if (null === $this->_msg) {
         switch ($this->getCompartilhamento()->getTipo()) {
             case WeLearn_Compartilhamento_TipoFeed::IMAGEM:
                 $tipoStr = 'uma imagem';
                 break;
             case WeLearn_Compartilhamento_TipoFeed::VIDEO:
                 $tipoStr = 'um vídeo';
                 break;
             case WeLearn_Compartilhamento_TipoFeed::LINK:
                 $tipoStr = 'um link';
                 break;
             case WeLearn_Compartilhamento_TipoFeed::STATUS:
             default:
                 $tipoStr = 'um status';
         }
         $linkRemetente = anchor('/perfil/' . $this->getCompartilhamento()->getCriador()->getId(), $this->getCompartilhamento()->getCriador()->getNome());
         $linkDestinatario = anchor('/perfil/' . $this->getDestinatario()->getId(), 'perfil');
         $this->setMsg($linkRemetente . ' compartilhou ' . $tipoStr . ' no seu ' . $linkDestinatario . '.');
     }
     return parent::getMsg();
 }