Overview

Namespaces

  • Jlab
    • Eloglib

Classes

  • Attachment
  • FileAttachment
  • Logentry
  • LogentryUtil
  • URLAttachment
  • User

Exceptions

  • InvalidXMLException
  • IOException
  • LogentryException
  • LogRuntimeException
  • ServerException
  • UserException
  • Overview
  • Namespace
  • Class

Class User

Class User

Namespace: Jlab\Eloglib
Package: Jlab\Eloglib
Located at User.php
Methods summary
public
# __construct( string $username, array $attributes = array() )

User constructor.

User constructor.

Parameters

$username
$attributes
associative array of additional user attributes

Throws

Jlab\Eloglib\UserException
public
# setUsername( string $username )

Parameters

$username

Throws

Jlab\Eloglib\UserException
protected boolean
# setProperty( string $var, mixed $val )

Attempts to set the named object property.

Attempts to set the named object property.

Returns true if the property exists to be set, false otherwise.

Parameters

$var
$val

Returns

boolean
public
# setFirstname( string $firstname )

Parameters

$firstname

Throws

Jlab\Eloglib\UserException
public
# setLastname( string $lastname )

Parameters

$lastname

Throws

Jlab\Eloglib\UserException
public mixed
# __get( string $var )

Magic method allows controlled access to class properties.

Magic method allows controlled access to class properties.

Parameters

$var

Returns

mixed
public boolean
# __set( string $var, mixed $val )

Magic method intercepts setting of class properties.

Magic method intercepts setting of class properties.

Parameters

$var
$val

Returns

boolean
public string
# getXML( string $name = 'User' )

Return User object as an XML DOMDocument

Return User object as an XML DOMDocument

Parameters

$name
A name to use for the DOMElement.

Returns

string
Properties summary
protected string $username
#
protected string $firstname
#
protected string $lastname

username

username

#
API documentation generated by ApiGen