Create a Session object from a SimpleXMLElement.
static
Session
fromSimpleXMLElement
(
$xml)
-
SimpleXMLElement
$xml: A SimpleXMLElement.
Create a Session object.
Session
__construct
(string $name, string $key, boolean $subscriber)
-
string
$name: Session username.
-
string
$key: Session key.
-
boolean
$subscriber: User is subscriber.
Returns the session key.
string
getKey
()
Returns the session username.
string
getName
()
Returns if the user is a subscriber.
boolean
isSubscriber
()