Changeset View
Changeset View
Standalone View
Standalone View
src/applications/diffusion/controller/DiffusionController.php
Show First 20 Lines • Show All 84 Lines • ▼ Show 20 Lines | abstract class DiffusionController extends PhabricatorController { | ||||
protected function getDiffusionBlobFromRequest(AphrontRequest $request) { | protected function getDiffusionBlobFromRequest(AphrontRequest $request) { | ||||
return $request->getURIData('dblob'); | return $request->getURIData('dblob'); | ||||
} | } | ||||
protected function getRepositoryIdentifierFromRequest( | protected function getRepositoryIdentifierFromRequest( | ||||
AphrontRequest $request) { | AphrontRequest $request) { | ||||
$short_name = $request->getURIData('repositoryShortName'); | |||||
if (strlen($short_name)) { | |||||
return $short_name; | |||||
} | |||||
$identifier = $request->getURIData('repositoryCallsign'); | $identifier = $request->getURIData('repositoryCallsign'); | ||||
if (strlen($identifier)) { | if (strlen($identifier)) { | ||||
return $identifier; | return $identifier; | ||||
} | } | ||||
$id = $request->getURIData('repositoryID'); | $id = $request->getURIData('repositoryID'); | ||||
if (strlen($id)) { | if (strlen($id)) { | ||||
return (int)$id; | return (int)$id; | ||||
▲ Show 20 Lines • Show All 270 Lines • Show Last 20 Lines |