contentbox.models.ui

Class Avatar

lucee.Component
    extended by contentbox.models.ui.Avatar
Class Attributes:
  • singleton
  •  
  • synchronized : false
  •  
  • accessors : false
  •  
  • persistent : false
  •  
    Property Summary
    type property default serializable required
    any requestService


    • access = public
    • returntype = any
    • inject = coldbox:requestService
    true false
    any requestStorage


    • access = public
    • returntype = any
    • inject = requestStorage@cbStorages
    true false
    Constructor Summary
    init()
          Constructor.
    Method Summary
    any generateLink(any email, [numeric size='80'], [any rating='PG'])
         Generates the Gravatar link.
    any renderAvatar(any email, [numeric size='80'], [string class='gravatar'])
         Render an avatar image.
     
    Methods inherited from class lucee.Component
    None

    Constructor Detail

    init

    public init()

    Constructor


    Property Detail

    requestService

    property any requestService

    Attributes:
    access - public
    required - false
    returntype - any
    inject - coldbox:requestService
    serializable - true

    requestStorage

    property any requestStorage

    Attributes:
    access - public
    required - false
    returntype - any
    inject - requestStorage@cbStorages
    serializable - true

    Method Detail

    generateLink

    public any generateLink(any email, [numeric size='80'], [any rating='PG'])

    Generates the Gravatar link

    Parameters:
    email - The user's email
    size - The size of the avatar
    rating

    renderAvatar

    public any renderAvatar(any email, [numeric size='80'], [string class='gravatar'])

    Render an avatar image

    Parameters:
    email - The email to render
    size - The pixel size, defaults to 80
    class - An optional class to add to the img tag produced