Page MenuHomePhorge
Diviner Tech Docs HarbormasterTargetEngine

final class HarbormasterTargetEngine
Phorge Technical Documentation (Harbormaster)

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 function setViewer($viewer)

This method is not documented.
Parameters
PhabricatorUser$viewer
Return
wild

public function getViewer()

This method is not documented.
Return
wild

public function setObject($object)

This method is not documented.
Parameters
HarbormasterBuildableInterface$object
Return
wild

public function getObject()

This method is not documented.
Return
wild

public function setAutoTargetKeys($auto_keys)

This method is not documented.
Parameters
array$auto_keys
Return
wild

public function getAutoTargetKeys()

This method is not documented.
Return
wild

public function buildTargets()

This method is not documented.
Return
wild

private function generateBuildStepMap($autotargets)

Get a map of the HarbormasterBuildStep objects for a list of autotarget keys.

This method creates the steps if they do not yet exist.

Parameters
list<string>$autotargetsAutotarget keys, like `"core.arc.lint"`.
Return
map<string, object>Map of keys to step objects.

private function getAutosteps($autotargets)

Get all of the HarbormasterBuildStepImplementation objects for a list of autotarget keys.

Parameters
list<string>$autotargetsAutotarget keys, like `"core.arc.lint"`.
Return
map<string, object>Map of keys to implementations.

private function generateBuildTargetMap($buildable, $step_map)

Get a list of HarbormasterBuildTarget objects for a list of autotarget keys.

If some targets or builds do not exist, they are created.

Parameters
HarbormasterBuildable$buildableA buildable.
map<string,$step_mapobject> Map of keys to steps.
Return
map<string, object>Map of keys to targets.