Packages » Package html » Class HTMLIfUser

Class HTMLIfUser

Declaration:
<? class HTMLIfUser extends HTMLTag ?>

Description:
This is a conditional tag that will display its body if there is current user in the current session. The optional role attribute can be used to enforce additional check of the user's role via a call to User::isRole.

Parent Classes:
SDNode , SDElement , HTMLTag

Authors:
  • Dennis Popel

Methods:
  • isExposed()
    Returns true if the tag is exposed
  • onOpen()
    Override this to take some action (possibly modify own children state and own attributes) and decide whether to process the body. Please note that this method can be called multiple times on the same instance if the tag is repeated with the body of parent tag.