PEAR2_Net_RouterOS
1.0.0b6
A MikroTik RouterOS client
|
Public Member Functions | |
__construct ($uri) | |
Creates a registry. More... | |
isTaglessModeOwner () | |
Checks if this instance is the tagless mode owner. More... | |
setTaglessMode ($taglessMode) | |
Sets the "tagless mode" setting. More... | |
getOwnershipTag () | |
Get the ownership tag for this instance. More... | |
add (Response $response, $ownershipTag) | |
Add a response to the registry. More... | |
getNextResponse () | |
Gets the next response from this instance's buffer. More... | |
close () | |
Closes the registry. More... | |
__destruct () | |
Removes this instance's buffer. | |
Static Public Member Functions | |
static | parseTag ($tag) |
Parses a tag. More... | |
Protected Attributes | |
$shm | |
$instanceId | |
Static Protected Attributes | |
static | $requestId = -1 |
static | $instanceIdSeed = -1 |
Definition at line 43 of file Registry.php.
__construct | ( | $uri | ) |
Creates a registry.
string | $uri | An URI to bind the registry to. |
Definition at line 78 of file Registry.php.
add | ( | Response | $response, |
$ownershipTag | |||
) |
Add a response to the registry.
Response | $response | The response to add. The caller of this function is responsible for ensuring that the ownership tag and the original tag are separated, so that only the original one remains in the response. |
string | $ownershipTag | The ownership tag that the response had. |
Definition at line 180 of file Registry.php.
close | ( | ) |
Closes the registry.
Closes the registry, meaning that all buffers are cleared.
Definition at line 260 of file Registry.php.
getNextResponse | ( | ) |
Gets the next response from this instance's buffer.
Definition at line 236 of file Registry.php.
getOwnershipTag | ( | ) |
Get the ownership tag for this instance.
Definition at line 162 of file Registry.php.
isTaglessModeOwner | ( | ) |
Checks if this instance is the tagless mode owner.
Definition at line 119 of file Registry.php.
|
static |
Parses a tag.
Parses a tag to reveal the ownership part of it, and the original tag.
string | $tag | The tag (as received) to parse. |
Definition at line 100 of file Registry.php.
setTaglessMode | ( | $taglessMode | ) |
Sets the "tagless mode" setting.
While in tagless mode, this instance will claim ownership of any responses without a tag. While not in this mode, any requests without a tag will be given to all instances.
Regardless of mode, if the type of the response is Response::TYPE_FATAL, it will be given to all instances.
bool | $taglessMode | TRUE to claim tagless ownership, FALSE to release such ownership, if taken. |
Definition at line 143 of file Registry.php.