Page MenuHomePhabricator
Diviner Phabricator Tech Docs DifferentialLandingStrategy

abstract class DifferentialLandingStrategy
Phabricator Technical Documentation (Differential)

This class is not documented.

Methods

abstract public function processLandRequest($request, $revision, $repository)

This method is not documented.
Parameters
AphrontRequest$request
DifferentialRevision$revision
PhabricatorRepository$repository
Return
wild

abstract public function createMenuItem($viewer, $revision, $repository)

This method is not documented.
Parameters
PhabricatorUser$viewer
DifferentialRevision$revision
PhabricatorRepository$repository
Return
PhabricatorActionViewor null.

protected function createActionView($revision, $name)

This method is not documented.
Parameters
$revision
$name
Return
PhabricatorActionViewwhich can be attached to the revision view.

public function isActionDisabled($viewer, $revision, $repository)

Check if this action should be disabled, and explain why.

By default, this method checks for push permissions, and for the revision being Accepted.

Parameters
PhabricatorUser$viewer
DifferentialRevision$revision
PhabricatorRepository$repository
Return
Falsefor "not disabled"; human-readable text explaining why, if it is disabled.

protected function getGitWorkspace($repository)

Might break if repository is not Git.

Parameters
PhabricatorRepository$repository
Return
wild

protected function getMercurialWorkspace($repository)

Might break if repository is not Mercurial.

Parameters
PhabricatorRepository$repository
Return
wild