public function getTokenEmailLink($tokenId, $tokenStatus, $canMail)
    {
        if ($canMail && ('O' == $tokenStatus || 'P' == $tokenStatus)) {
            $menuItem = $this->_getEmailMenuItem();

            $link = $menuItem->toActionLinkLower([
                'gto_id_token' => $tokenId,
                'can_be_taken' => 1,
                'can_email'    => 1,
                \Gems_Model::ID_TYPE => 'token',
            ]);

            if ($link) {
                $link->title = sprintf($this->_('Send email for token %s'), strtoupper($tokenId));

                return $link;
            }
        }
    }
public function getTokenEmailLink($tokenId, $tokenStatus, $canMail)
    {
        if ($canMail && ('O' == $tokenStatus || 'P' == $tokenStatus)) {
            $menuItem = $this->_getEmailMenuItem();

            $link = $menuItem->toActionLinkLower([
                'gto_id_token' => $tokenId,
                'can_be_taken' => 1,
                'can_email'    => 1,
                \Gems_Model::ID_TYPE => 'token',
            ]);

            if ($link) {
                $link->title = sprintf($this->_('Send email for token %s'), strtoupper($tokenId));

                return $link;
            }
        }
    }
public function getTokenEmailLink ( $ tokenId , $ tokenStatus , $ canMail ) { if ( $ canMail && ( 'O' == $ tokenStatus || 'P' == $ tokenStatus ) ) { $ menuItem = $ this -> _getEmailMenuItem ( ) ; $ link = $ menuItem -> toActionLinkLower ( [ 'gto_id_token' => $ tokenId , 'can_be_taken' => 1 , 'can_email' => 1 , \ Gems_Model :: ID_TYPE => 'token' , ] ) ; if ( $ link ) { $ link -> title = sprintf ( $ this -> _ ( 'Send email for token %s' ) , strtoupper ( $ tokenId ) ) ; return $ link ; } } }
Generate a menu link for email screen

@param string $tokenId
@param string $tokenStatus
@param boolean $canMail
@return \MUtil_Html_AElement
Generate a menu link for email screen