|
Erebot
latest
A modular IRC bot for PHP 5.3+
|
Represents the identity of an IRC user. More...
Inheritance diagram for Erebot\Interfaces\Identity:Public Member Functions | |
| __toString () | |
| getHost ($c10n) | |
| getIdent () | |
| getMask ($c10n) | |
| getNick () | |
Public Attributes | |
| const | CANON_IPV4 = 4 |
| Use an IPv6 mapped IPv4 representation (eg. "::ffff:127.0.0.1"). | |
| const | CANON_IPV6 = 6 |
| Use a pure IPv6 representation (eg. "::ffff:7f00:1"). | |
Represents the identity of an IRC user.
Definition at line 27 of file Identity.php.
| Erebot\Interfaces\Identity::__toString | ( | ) |
This method works like Erebot::Interfaces::Identity::getNick(), except that if no information is available on the user's nickname, it should return a very distinctive value. Eg. an appropriate return value in such a case could be '?'.
| string | This user's nickname or a distinctive value if it is not available. |
Implemented in Erebot\Identity.
| Erebot\Interfaces\Identity::getHost | ( | $c10n | ) |
Returns the host of the user represented by this identity.
| opaque | $c10n | Either Erebot::Interfaces::Identity::CANON_IPV4 or Erebot::Interfaces::Identity::CANON_IPV6, indicating the type of IP canonicalization to use. |
| string | This user's hostname or null if unavailable. |
Implemented in Erebot\Identity.
| Erebot\Interfaces\Identity::getIdent | ( | ) |
Returns the identity string of the user represented by this identity.
| mixed | This user's identity string or NULL if unavailable. |
Implemented in Erebot\Identity.
| Erebot\Interfaces\Identity::getMask | ( | $c10n | ) |
Returns a mask which can later be used to match against this user.
| opaque | $c10n | Either Erebot::Interfaces::Identity::CANON_IPV4 or Erebot::Interfaces::Identity::CANON_IPV6, indicating the type of IP canonicalization to use. |
| string | A mask matching against this user. |
Implemented in Erebot\Identity.
| Erebot\Interfaces\Identity::getNick | ( | ) |
Returns the nickname of the user represented by this identity.
| mixed | This user's nickname or NULL if unavailable. |
Implemented in Erebot\Identity.