Page MenuHomePhorge
Diviner Tech Docs DiffusionMercurialWireProtocol

final class DiffusionMercurialWireProtocol
Phorge Technical Documentation (Diffusion)

This class is not documented.

Methods

public function __get($name)
Inherited

This method is not documented.
Parameters
$name
Return
wild

public function __set($name, $value)
Inherited

This method is not documented.
Parameters
$name
$value
Return
wild

public function current()
Inherited

This method is not documented.
Return
wild

public function key()
Inherited

This method is not documented.
Return
wild

public function next()
Inherited

This method is not documented.
Return
wild

public function rewind()
Inherited

This method is not documented.
Return
wild

public function valid()
Inherited

This method is not documented.
Return
wild

private function throwOnAttemptedIteration()
Inherited

This method is not documented.
Return
wild

public function getPhobjectClassConstant($key, $byte_limit)
Inherited

Phobject

Read the value of a class constant.

This is the same as just typing self::CONSTANTNAME, but throws a more useful message if the constant is not defined and allows the constant to be limited to a maximum length.

Parameters
string$keyName of the constant.
int|null$byte_limitMaximum number of bytes permitted in the value.
Return
stringValue of the constant.

public static function getCommandArgs($command)

This method is not documented.
Parameters
$command
Return
wild

public static function isReadOnlyCommand($command)

This method is not documented.
Parameters
$command
Return
wild

public static function isReadOnlyBatchCommand($cmds)

This method is not documented.
Parameters
$cmds
Return
wild

public static function filterBundle2Capability($capabilities)

If the server version is running 3.4+ it will respond with 'bundle2' capability in the format of "bundle2=(url-encoding)". Until we manage to properly package up bundles to send back we disallow the client from knowing we speak bundle2 by removing it from the capabilities listing.

The format of the capabilities string is: "a space separated list of strings representing what commands the server supports"

Parameters
string$capabilities- The string of capabilities to strip the bundle2 capability from. This is expected to be the space-separated list of strings resulting from the querying the 'capabilities' command.
Return
stringThe resulting space-separated list of capabilities which no longer contains the 'bundle2' capability. This is meant to replace the original $body to send back to client.