repo
stringlengths
7
63
file_url
stringlengths
81
284
file_path
stringlengths
5
200
content
stringlengths
0
32.8k
language
stringclasses
1 value
license
stringclasses
7 values
commit_sha
stringlengths
40
40
retrieved_at
stringdate
2026-01-04 15:02:33
2026-01-05 05:24:06
truncated
bool
2 classes
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/files/application/PhabricatorFilesApplication.php
src/applications/files/application/PhabricatorFilesApplication.php
<?php final class PhabricatorFilesApplication extends PhabricatorApplication { public function getBaseURI() { return '/file/'; } public function getName() { return pht('Files'); } public function getShortDescription() { return pht('Store and Share Files'); } public function getIcon() { ...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/files/diff/PhabricatorDocumentEngineBlocks.php
src/applications/files/diff/PhabricatorDocumentEngineBlocks.php
<?php final class PhabricatorDocumentEngineBlocks extends Phobject { private $lists = array(); private $messages = array(); private $rangeMin; private $rangeMax; private $revealedIndexes; private $layoutAvailableRowCount; public function setRange($min, $max) { $this->rangeMin = $min; $this->r...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/files/diff/PhabricatorDocumentEngineBlockDiff.php
src/applications/files/diff/PhabricatorDocumentEngineBlockDiff.php
<?php final class PhabricatorDocumentEngineBlockDiff extends Phobject { private $oldContent; private $newContent; private $oldClasses = array(); private $newClasses = array(); public function setOldContent($old_content) { $this->oldContent = $old_content; return $this; } public function getO...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/files/diff/PhabricatorDocumentEngineBlock.php
src/applications/files/diff/PhabricatorDocumentEngineBlock.php
<?php final class PhabricatorDocumentEngineBlock extends Phobject { private $blockKey; private $content; private $differenceHash; private $differenceType; private $isVisible; public function setContent($content) { $this->content = $content; return $this; } public function getContent() { ...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/files/transform/PhabricatorFileImageTransform.php
src/applications/files/transform/PhabricatorFileImageTransform.php
<?php abstract class PhabricatorFileImageTransform extends PhabricatorFileTransform { private $file; private $data; private $image; private $imageX; private $imageY; /** * Get an estimate of the transformed dimensions of a file. * * @param PhabricatorFile File to transform. * @return list<int...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/files/transform/PhabricatorFileTransform.php
src/applications/files/transform/PhabricatorFileTransform.php
<?php abstract class PhabricatorFileTransform extends Phobject { abstract public function getTransformName(); abstract public function getTransformKey(); abstract public function canApplyTransform(PhabricatorFile $file); abstract public function applyTransform(PhabricatorFile $file); public function getDef...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/files/transform/PhabricatorFileThumbnailTransform.php
src/applications/files/transform/PhabricatorFileThumbnailTransform.php
<?php final class PhabricatorFileThumbnailTransform extends PhabricatorFileImageTransform { const TRANSFORM_PROFILE = 'profile'; const TRANSFORM_PINBOARD = 'pinboard'; const TRANSFORM_THUMBGRID = 'thumbgrid'; const TRANSFORM_PREVIEW = 'preview'; const TRANSFORM_WORKCARD = 'workcard'; private $name; p...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/files/transform/__tests__/PhabricatorFileTransformTestCase.php
src/applications/files/transform/__tests__/PhabricatorFileTransformTestCase.php
<?php final class PhabricatorFileTransformTestCase extends PhabricatorTestCase { protected function getPhabricatorTestCaseConfiguration() { return array( self::PHABRICATOR_TESTCONFIG_BUILD_STORAGE_FIXTURES => true, ); } public function testGetAllTransforms() { PhabricatorFileTransform::getAll...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/files/uploadsource/PhabricatorExecFutureFileUploadSource.php
src/applications/files/uploadsource/PhabricatorExecFutureFileUploadSource.php
<?php final class PhabricatorExecFutureFileUploadSource extends PhabricatorFileUploadSource { private $future; public function setExecFuture(ExecFuture $future) { $this->future = $future; return $this; } public function getExecFuture() { return $this->future; } protected function newDataI...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/files/uploadsource/PhabricatorFileUploadSource.php
src/applications/files/uploadsource/PhabricatorFileUploadSource.php
<?php abstract class PhabricatorFileUploadSource extends Phobject { private $name; private $relativeTTL; private $viewPolicy; private $mimeType; private $authorPHID; private $rope; private $data; private $shouldChunk; private $didRewind; private $totalBytesWritten = 0; private $totalBytesRead...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/files/uploadsource/PhabricatorFileUploadSourceByteLimitException.php
src/applications/files/uploadsource/PhabricatorFileUploadSourceByteLimitException.php
<?php final class PhabricatorFileUploadSourceByteLimitException extends Exception {}
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/files/uploadsource/PhabricatorIteratorFileUploadSource.php
src/applications/files/uploadsource/PhabricatorIteratorFileUploadSource.php
<?php final class PhabricatorIteratorFileUploadSource extends PhabricatorFileUploadSource { private $iterator; public function setIterator(Iterator $iterator) { $this->iterator = $iterator; return $this; } public function getIterator() { return $this->iterator; } protected function newDat...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/files/lipsum/PhabricatorFileTestDataGenerator.php
src/applications/files/lipsum/PhabricatorFileTestDataGenerator.php
<?php final class PhabricatorFileTestDataGenerator extends PhabricatorTestDataGenerator { const GENERATORKEY = 'files'; public function getGeneratorName() { return pht('Files'); } public function generateObject() { $author_phid = $this->loadPhabricatorUserPHID(); $dimension = 1 << rand(5, 12);...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/files/garbagecollector/PhabricatorFileExternalRequestGarbageCollector.php
src/applications/files/garbagecollector/PhabricatorFileExternalRequestGarbageCollector.php
<?php final class PhabricatorFileExternalRequestGarbageCollector extends PhabricatorGarbageCollector { const COLLECTORCONST = 'files.externalttl'; public function getCollectorName() { return pht('External Requests (TTL)'); } public function hasAutomaticPolicy() { return true; } protected func...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/files/garbagecollector/PhabricatorFileTemporaryGarbageCollector.php
src/applications/files/garbagecollector/PhabricatorFileTemporaryGarbageCollector.php
<?php final class PhabricatorFileTemporaryGarbageCollector extends PhabricatorGarbageCollector { const COLLECTORCONST = 'files.ttl'; public function getCollectorName() { return pht('Files (TTL)'); } public function hasAutomaticPolicy() { return true; } protected function collectGarbage() { ...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/files/view/PhabricatorGlobalUploadTargetView.php
src/applications/files/view/PhabricatorGlobalUploadTargetView.php
<?php /** * IMPORTANT: If you use this, make sure to implement * * public function isGlobalDragAndDropUploadEnabled() { * return true; * } * * on the controller(s) that render this class...! This is necessary * to make sure Quicksand works properly with the javascript in this * UI. */ final class Pha...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/files/applicationpanel/PhabricatorFilesApplicationStorageEnginePanel.php
src/applications/files/applicationpanel/PhabricatorFilesApplicationStorageEnginePanel.php
<?php final class PhabricatorFilesApplicationStorageEnginePanel extends PhabricatorApplicationConfigurationPanel { public function getPanelKey() { return 'storage'; } public function shouldShowForApplication( PhabricatorApplication $application) { return ($application instanceof PhabricatorFilesA...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/files/phid/PhabricatorFileFilePHIDType.php
src/applications/files/phid/PhabricatorFileFilePHIDType.php
<?php final class PhabricatorFileFilePHIDType extends PhabricatorPHIDType { const TYPECONST = 'FILE'; public function getTypeName() { return pht('File'); } public function newObject() { return new PhabricatorFile(); } public function getPHIDTypeApplicationClass() { return 'PhabricatorFilesA...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/files/config/PhabricatorFilesConfigOptions.php
src/applications/files/config/PhabricatorFilesConfigOptions.php
<?php final class PhabricatorFilesConfigOptions extends PhabricatorApplicationConfigOptions { public function getName() { return pht('Files'); } public function getDescription() { return pht('Configure files and file storage.'); } public function getIcon() { return 'fa-file'; } public f...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/files/conduit/FileQueryChunksConduitAPIMethod.php
src/applications/files/conduit/FileQueryChunksConduitAPIMethod.php
<?php final class FileQueryChunksConduitAPIMethod extends FileConduitAPIMethod { public function getAPIMethodName() { return 'file.querychunks'; } public function getMethodDescription() { return pht('Get information about file chunks.'); } protected function defineParamTypes() { return array...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/files/conduit/FileUploadChunkConduitAPIMethod.php
src/applications/files/conduit/FileUploadChunkConduitAPIMethod.php
<?php final class FileUploadChunkConduitAPIMethod extends FileConduitAPIMethod { public function getAPIMethodName() { return 'file.uploadchunk'; } public function getMethodDescription() { return pht('Upload a chunk of file data to the server.'); } protected function defineParamTypes() { retu...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/files/conduit/FileDownloadConduitAPIMethod.php
src/applications/files/conduit/FileDownloadConduitAPIMethod.php
<?php final class FileDownloadConduitAPIMethod extends FileConduitAPIMethod { public function getAPIMethodName() { return 'file.download'; } public function getMethodDescription() { return pht('Download a file from the server.'); } protected function defineParamTypes() { return array( 'p...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/files/conduit/FileAllocateConduitAPIMethod.php
src/applications/files/conduit/FileAllocateConduitAPIMethod.php
<?php final class FileAllocateConduitAPIMethod extends FileConduitAPIMethod { public function getAPIMethodName() { return 'file.allocate'; } public function getMethodDescription() { return pht('Prepare to upload a file.'); } protected function defineParamTypes() { return array( 'name' ...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/files/conduit/FileUploadHashConduitAPIMethod.php
src/applications/files/conduit/FileUploadHashConduitAPIMethod.php
<?php final class FileUploadHashConduitAPIMethod extends FileConduitAPIMethod { public function getAPIMethodName() { return 'file.uploadhash'; } public function getMethodStatus() { return self::METHOD_STATUS_DEPRECATED; } public function getMethodStatusDescription() { return pht( 'This m...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/files/conduit/PhabricatorFileSearchConduitAPIMethod.php
src/applications/files/conduit/PhabricatorFileSearchConduitAPIMethod.php
<?php final class PhabricatorFileSearchConduitAPIMethod extends PhabricatorSearchEngineAPIMethod { public function getAPIMethodName() { return 'file.search'; } public function newSearchEngine() { return new PhabricatorFileSearchEngine(); } public function getMethodSummary() { return pht('Rea...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/files/conduit/FileInfoConduitAPIMethod.php
src/applications/files/conduit/FileInfoConduitAPIMethod.php
<?php final class FileInfoConduitAPIMethod extends FileConduitAPIMethod { public function getAPIMethodName() { return 'file.info'; } public function getMethodDescription() { return pht('Get information about a file.'); } public function getMethodStatus() { return self::METHOD_STATUS_FROZEN; ...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/files/conduit/FileUploadConduitAPIMethod.php
src/applications/files/conduit/FileUploadConduitAPIMethod.php
<?php final class FileUploadConduitAPIMethod extends FileConduitAPIMethod { public function getAPIMethodName() { return 'file.upload'; } public function getMethodDescription() { return pht('Upload a file to the server.'); } protected function defineParamTypes() { return array( 'data_base...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/files/conduit/FileConduitAPIMethod.php
src/applications/files/conduit/FileConduitAPIMethod.php
<?php abstract class FileConduitAPIMethod extends ConduitAPIMethod { final public function getApplication() { return PhabricatorApplication::getByClass('PhabricatorFilesApplication'); } protected function loadFileByPHID(PhabricatorUser $viewer, $file_phid) { $file = id(new PhabricatorFileQuery()) ...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/files/format/PhabricatorFileRawStorageFormat.php
src/applications/files/format/PhabricatorFileRawStorageFormat.php
<?php final class PhabricatorFileRawStorageFormat extends PhabricatorFileStorageFormat { const FORMATKEY = 'raw'; public function getStorageFormatName() { return pht('Raw Data'); } public function newReadIterator($raw_iterator) { return $raw_iterator; } public function newWriteIterator($raw_i...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/files/format/PhabricatorFileROT13StorageFormat.php
src/applications/files/format/PhabricatorFileROT13StorageFormat.php
<?php /** * Trivial example of a file storage format for at-rest encryption. * * This format applies ROT13 encoding to file data as it is stored and * reverses it on the way out. This encoding is trivially reversible. This * format is for testing, developing, and understanding encoding formats and * is not inten...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/files/format/PhabricatorFileAES256StorageFormat.php
src/applications/files/format/PhabricatorFileAES256StorageFormat.php
<?php /** * At-rest encryption format using AES256 CBC. */ final class PhabricatorFileAES256StorageFormat extends PhabricatorFileStorageFormat { const FORMATKEY = 'aes-256-cbc'; private $keyName; public function getStorageFormatName() { return pht('Encrypted (AES-256-CBC)'); } public function can...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/files/format/PhabricatorFileStorageFormat.php
src/applications/files/format/PhabricatorFileStorageFormat.php
<?php abstract class PhabricatorFileStorageFormat extends Phobject { private $file; final public function setFile(PhabricatorFile $file) { $this->file = $file; return $this; } final public function getFile() { if (!$this->file) { throw new PhutilInvalidStateException('setFile'); } ...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/files/format/__tests__/PhabricatorFileStorageFormatTestCase.php
src/applications/files/format/__tests__/PhabricatorFileStorageFormatTestCase.php
<?php final class PhabricatorFileStorageFormatTestCase extends PhabricatorTestCase { protected function getPhabricatorTestCaseConfiguration() { return array( self::PHABRICATOR_TESTCONFIG_BUILD_STORAGE_FIXTURES => true, ); } public function testRot13Storage() { $engine = new PhabricatorTestSto...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/files/document/PhabricatorHexdumpDocumentEngine.php
src/applications/files/document/PhabricatorHexdumpDocumentEngine.php
<?php final class PhabricatorHexdumpDocumentEngine extends PhabricatorDocumentEngine { const ENGINEKEY = 'hexdump'; public function getViewAsLabel(PhabricatorDocumentRef $ref) { return pht('View as Hexdump'); } protected function getDocumentIconIcon(PhabricatorDocumentRef $ref) { return 'fa-microc...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/files/document/PhabricatorImageDocumentEngine.php
src/applications/files/document/PhabricatorImageDocumentEngine.php
<?php final class PhabricatorImageDocumentEngine extends PhabricatorDocumentEngine { const ENGINEKEY = 'image'; public function getViewAsLabel(PhabricatorDocumentRef $ref) { return pht('View as Image'); } protected function getDocumentIconIcon(PhabricatorDocumentRef $ref) { return 'fa-file-image-o...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/files/document/PhabricatorDocumentEngine.php
src/applications/files/document/PhabricatorDocumentEngine.php
<?php abstract class PhabricatorDocumentEngine extends Phobject { private $viewer; private $highlightedLines = array(); private $encodingConfiguration; private $highlightingConfiguration; private $blameConfiguration = true; final public function setViewer(PhabricatorUser $viewer) { $this->viewer = ...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/files/document/PhabricatorRemarkupDocumentEngine.php
src/applications/files/document/PhabricatorRemarkupDocumentEngine.php
<?php final class PhabricatorRemarkupDocumentEngine extends PhabricatorDocumentEngine { const ENGINEKEY = 'remarkup'; public function getViewAsLabel(PhabricatorDocumentRef $ref) { return pht('View as Remarkup'); } protected function getDocumentIconIcon(PhabricatorDocumentRef $ref) { return 'fa-fil...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/files/document/PhabricatorSourceDocumentEngine.php
src/applications/files/document/PhabricatorSourceDocumentEngine.php
<?php final class PhabricatorSourceDocumentEngine extends PhabricatorTextDocumentEngine { const ENGINEKEY = 'source'; public function getViewAsLabel(PhabricatorDocumentRef $ref) { return pht('View as Source'); } public function canConfigureHighlighting(PhabricatorDocumentRef $ref) { return true; ...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/files/document/PhabricatorPDFDocumentEngine.php
src/applications/files/document/PhabricatorPDFDocumentEngine.php
<?php final class PhabricatorPDFDocumentEngine extends PhabricatorDocumentEngine { const ENGINEKEY = 'pdf'; public function getViewAsLabel(PhabricatorDocumentRef $ref) { return pht('View as PDF'); } protected function getDocumentIconIcon(PhabricatorDocumentRef $ref) { return 'fa-file-pdf-o'; } ...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/files/document/PhabricatorAudioDocumentEngine.php
src/applications/files/document/PhabricatorAudioDocumentEngine.php
<?php final class PhabricatorAudioDocumentEngine extends PhabricatorDocumentEngine { const ENGINEKEY = 'audio'; public function getViewAsLabel(PhabricatorDocumentRef $ref) { return pht('View as Audio'); } protected function getDocumentIconIcon(PhabricatorDocumentRef $ref) { return 'fa-file-sound-o...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/files/document/PhabricatorJSONDocumentEngine.php
src/applications/files/document/PhabricatorJSONDocumentEngine.php
<?php final class PhabricatorJSONDocumentEngine extends PhabricatorTextDocumentEngine { const ENGINEKEY = 'json'; public function getViewAsLabel(PhabricatorDocumentRef $ref) { return pht('View as JSON'); } protected function getDocumentIconIcon(PhabricatorDocumentRef $ref) { return 'fa-database'; ...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/files/document/PhabricatorVideoDocumentEngine.php
src/applications/files/document/PhabricatorVideoDocumentEngine.php
<?php final class PhabricatorVideoDocumentEngine extends PhabricatorDocumentEngine { const ENGINEKEY = 'video'; public function getViewAsLabel(PhabricatorDocumentRef $ref) { return pht('View as Video'); } protected function getContentScore(PhabricatorDocumentRef $ref) { // Some video documents can...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/files/document/PhabricatorVoidDocumentEngine.php
src/applications/files/document/PhabricatorVoidDocumentEngine.php
<?php final class PhabricatorVoidDocumentEngine extends PhabricatorDocumentEngine { const ENGINEKEY = 'void'; public function getViewAsLabel(PhabricatorDocumentRef $ref) { return null; } protected function getDocumentIconIcon(PhabricatorDocumentRef $ref) { return 'fa-file'; } protected functi...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/files/document/PhabricatorJupyterDocumentEngine.php
src/applications/files/document/PhabricatorJupyterDocumentEngine.php
<?php final class PhabricatorJupyterDocumentEngine extends PhabricatorDocumentEngine { const ENGINEKEY = 'jupyter'; public function getViewAsLabel(PhabricatorDocumentRef $ref) { return pht('View as Jupyter Notebook'); } protected function getDocumentIconIcon(PhabricatorDocumentRef $ref) { return '...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/files/document/PhabricatorTextDocumentEngine.php
src/applications/files/document/PhabricatorTextDocumentEngine.php
<?php abstract class PhabricatorTextDocumentEngine extends PhabricatorDocumentEngine { private $encodingMessage = null; protected function canRenderDocumentType(PhabricatorDocumentRef $ref) { return $ref->isProbablyText(); } public function canConfigureEncoding(PhabricatorDocumentRef $ref) { retur...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/files/document/PhabricatorDocumentRef.php
src/applications/files/document/PhabricatorDocumentRef.php
<?php final class PhabricatorDocumentRef extends Phobject { private $name; private $mimeType; private $file; private $byteLength; private $snippet; private $symbolMetadata = array(); private $blameURI; private $coverage = array(); private $data; public function setFile(PhabricatorFile $file) { ...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/files/document/exception/PhabricatorDocumentEngineParserException.php
src/applications/files/document/exception/PhabricatorDocumentEngineParserException.php
<?php final class PhabricatorDocumentEngineParserException extends Exception {}
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/files/document/render/PhabricatorDocumentRenderingEngine.php
src/applications/files/document/render/PhabricatorDocumentRenderingEngine.php
<?php abstract class PhabricatorDocumentRenderingEngine extends Phobject { private $request; private $controller; private $activeEngine; private $ref; final public function setRequest(AphrontRequest $request) { $this->request = $request; return $this; } final public function getRequest() { ...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/files/document/render/PhabricatorFileDocumentRenderingEngine.php
src/applications/files/document/render/PhabricatorFileDocumentRenderingEngine.php
<?php final class PhabricatorFileDocumentRenderingEngine extends PhabricatorDocumentRenderingEngine { protected function newRefViewURI( PhabricatorDocumentRef $ref, PhabricatorDocumentEngine $engine) { $file = $ref->getFile(); $engine_key = $engine->getDocumentEngineKey(); return urisprintf(...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/files/engine/PhabricatorLocalDiskFileStorageEngine.php
src/applications/files/engine/PhabricatorLocalDiskFileStorageEngine.php
<?php /** * Local disk storage engine. Keeps files on local disk. This engine is easy * to set up, but it doesn't work if you have multiple web frontends! * * @task internal Internals */ final class PhabricatorLocalDiskFileStorageEngine extends PhabricatorFileStorageEngine { /* -( Engine Metadata )---------...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/files/engine/PhabricatorChunkedFileStorageEngine.php
src/applications/files/engine/PhabricatorChunkedFileStorageEngine.php
<?php final class PhabricatorChunkedFileStorageEngine extends PhabricatorFileStorageEngine { public function getEngineIdentifier() { return 'chunks'; } public function getEnginePriority() { return 60000; } /** * We can write chunks if we have at least one valid storage engine * underneath ...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/files/engine/PhabricatorTestStorageEngine.php
src/applications/files/engine/PhabricatorTestStorageEngine.php
<?php /** * Test storage engine. Does not actually store files. Used for unit tests. */ final class PhabricatorTestStorageEngine extends PhabricatorFileStorageEngine { private static $storage = array(); private static $nextHandle = 1; public function getEngineIdentifier() { return 'unit-test'; } p...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/files/engine/PhabricatorFileChunkIterator.php
src/applications/files/engine/PhabricatorFileChunkIterator.php
<?php final class PhabricatorFileChunkIterator extends Phobject implements Iterator { private $chunks; private $cursor; private $begin; private $end; private $data; public function __construct(array $chunks, $begin = null, $end = null) { $chunks = msort($chunks, 'getByteStart'); $this->chunks...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/files/engine/PhabricatorS3FileStorageEngine.php
src/applications/files/engine/PhabricatorS3FileStorageEngine.php
<?php /** * Amazon S3 file storage engine. This engine scales well but is relatively * high-latency since data has to be pulled off S3. * * @task internal Internals */ final class PhabricatorS3FileStorageEngine extends PhabricatorFileStorageEngine { /* -( Engine Metadata )-----------------------------------...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/files/engine/PhabricatorMySQLFileStorageEngine.php
src/applications/files/engine/PhabricatorMySQLFileStorageEngine.php
<?php /** * MySQL blob storage engine. This engine is the easiest to set up but doesn't * scale very well. * * It uses the @{class:PhabricatorFileStorageBlob} to actually access the * underlying database table. * * @task internal Internals */ final class PhabricatorMySQLFileStorageEngine extends PhabricatorF...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/files/engine/PhabricatorFileStorageEngine.php
src/applications/files/engine/PhabricatorFileStorageEngine.php
<?php /** * Defines a storage engine which can write file data somewhere (like a * database, local disk, Amazon S3, the A:\ drive, or a custom filer) and * retrieve it later. * * You can extend this class to provide new file storage backends. * * For more information, see @{article:File Storage Technical Docume...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/files/engine/__tests__/PhabricatorFileStorageEngineTestCase.php
src/applications/files/engine/__tests__/PhabricatorFileStorageEngineTestCase.php
<?php final class PhabricatorFileStorageEngineTestCase extends PhabricatorTestCase { public function testLoadAllEngines() { PhabricatorFileStorageEngine::loadAllEngines(); $this->assertTrue(true); } }
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/files/typeahead/PhabricatorIconDatasource.php
src/applications/files/typeahead/PhabricatorIconDatasource.php
<?php final class PhabricatorIconDatasource extends PhabricatorTypeaheadDatasource { public function getPlaceholderText() { return pht('Type an icon name...'); } public function getBrowseTitle() { return pht('Browse Icons'); } public function getDatasourceApplicationClass() { return 'Phabricat...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/files/capability/FilesDefaultViewCapability.php
src/applications/files/capability/FilesDefaultViewCapability.php
<?php final class FilesDefaultViewCapability extends PhabricatorPolicyCapability { const CAPABILITY = 'files.default.view'; public function getCapabilityName() { return pht('Default View Policy'); } public function shouldAllowPublicPolicySetting() { return true; } }
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/files/constants/FileTypeIcon.php
src/applications/files/constants/FileTypeIcon.php
<?php final class FileTypeIcon extends Phobject { public static function getFileIcon($filename) { $path_info = pathinfo($filename); $extension = idx($path_info, 'extension'); switch ($extension) { case 'psd': case 'ai': $icon = 'fa-file-image-o'; break; case 'conf': ...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/files/markup/PhabricatorEmbedFileRemarkupRule.php
src/applications/files/markup/PhabricatorEmbedFileRemarkupRule.php
<?php final class PhabricatorEmbedFileRemarkupRule extends PhabricatorObjectRemarkupRule { private $viewer; const KEY_ATTACH_INTENT_FILE_PHIDS = 'files.attach-intent'; protected function getObjectNamePrefix() { return 'F'; } protected function loadObjects(array $ids) { $engine = $this->getEngin...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/files/markup/PhabricatorImageRemarkupRule.php
src/applications/files/markup/PhabricatorImageRemarkupRule.php
<?php final class PhabricatorImageRemarkupRule extends PhutilRemarkupRule { const KEY_RULE_EXTERNAL_IMAGE = 'rule.external-image'; public function getPriority() { return 200.0; } public function apply($text) { return preg_replace_callback( '@{(image|img) ((?:[^}\\\\]+|\\\\.)*)}@m', array...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/oauthserver/PhabricatorOAuthServer.php
src/applications/oauthserver/PhabricatorOAuthServer.php
<?php /** * Implements core OAuth 2.0 Server logic. * * This class should be used behind business logic that parses input to * determine pertinent @{class:PhabricatorUser} $user, * @{class:PhabricatorOAuthServerClient} $client(s), * @{class:PhabricatorOAuthServerAuthorizationCode} $code(s), and. * @{class:Phabr...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/oauthserver/PhabricatorOAuthServerScope.php
src/applications/oauthserver/PhabricatorOAuthServerScope.php
<?php final class PhabricatorOAuthServerScope extends Phobject { public static function getScopeMap() { return array(); } public static function filterScope(array $scope) { $valid_scopes = self::getScopeMap(); foreach ($scope as $key => $scope_item) { if (!isset($valid_scopes[$scope_item])) ...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/oauthserver/PhabricatorOAuthResponse.php
src/applications/oauthserver/PhabricatorOAuthResponse.php
<?php final class PhabricatorOAuthResponse extends AphrontResponse { private $state; private $content; private $clientURI; private $error; private $errorDescription; private function getState() { return $this->state; } public function setState($state) { $this->state = $state; return $this...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/oauthserver/controller/PhabricatorOAuthServerController.php
src/applications/oauthserver/controller/PhabricatorOAuthServerController.php
<?php abstract class PhabricatorOAuthServerController extends PhabricatorController { const CONTEXT_AUTHORIZE = 'oauthserver.authorize'; }
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/oauthserver/controller/PhabricatorOAuthServerTokenController.php
src/applications/oauthserver/controller/PhabricatorOAuthServerTokenController.php
<?php final class PhabricatorOAuthServerTokenController extends PhabricatorOAuthServerController { public function shouldRequireLogin() { return false; } public function shouldAllowRestrictedParameter($parameter_name) { if ($parameter_name == 'code') { return true; } return parent::shou...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/oauthserver/controller/PhabricatorOAuthServerAuthController.php
src/applications/oauthserver/controller/PhabricatorOAuthServerAuthController.php
<?php final class PhabricatorOAuthServerAuthController extends PhabricatorOAuthServerController { protected function buildApplicationCrumbs() { // We're specifically not putting an "OAuth Server" application crumb // on the auth pages because it doesn't make sense to send users there. return new PHUIC...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/oauthserver/controller/client/PhabricatorOAuthClientViewController.php
src/applications/oauthserver/controller/client/PhabricatorOAuthClientViewController.php
<?php final class PhabricatorOAuthClientViewController extends PhabricatorOAuthClientController { public function handleRequest(AphrontRequest $request) { $viewer = $this->getViewer(); $client = id(new PhabricatorOAuthServerClientQuery()) ->setViewer($viewer) ->withIDs(array($request->getURID...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/oauthserver/controller/client/PhabricatorOAuthClientListController.php
src/applications/oauthserver/controller/client/PhabricatorOAuthClientListController.php
<?php final class PhabricatorOAuthClientListController extends PhabricatorOAuthClientController { public function shouldAllowPublic() { return true; } public function handleRequest(AphrontRequest $request) { return id(new PhabricatorOAuthServerClientSearchEngine()) ->setController($this) ...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/oauthserver/controller/client/PhabricatorOAuthClientSecretController.php
src/applications/oauthserver/controller/client/PhabricatorOAuthClientSecretController.php
<?php final class PhabricatorOAuthClientSecretController extends PhabricatorOAuthClientController { public function handleRequest(AphrontRequest $request) { $viewer = $request->getUser(); $client = id(new PhabricatorOAuthServerClientQuery()) ->setViewer($viewer) ->withIDs(array($request->getU...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/oauthserver/controller/client/PhabricatorOAuthClientEditController.php
src/applications/oauthserver/controller/client/PhabricatorOAuthClientEditController.php
<?php final class PhabricatorOAuthClientEditController extends PhabricatorOAuthClientController { public function handleRequest(AphrontRequest $request) { return id(new PhabricatorOAuthServerEditEngine()) ->setController($this) ->buildResponse(); } }
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/oauthserver/controller/client/PhabricatorOAuthClientTestController.php
src/applications/oauthserver/controller/client/PhabricatorOAuthClientTestController.php
<?php final class PhabricatorOAuthClientTestController extends PhabricatorOAuthClientController { public function handleRequest(AphrontRequest $request) { $viewer = $this->getViewer(); $id = $request->getURIData('id'); $client = id(new PhabricatorOAuthServerClientQuery()) ->setViewer($viewer) ...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/oauthserver/controller/client/PhabricatorOAuthClientController.php
src/applications/oauthserver/controller/client/PhabricatorOAuthClientController.php
<?php abstract class PhabricatorOAuthClientController extends PhabricatorOAuthServerController { private $clientPHID; protected function getClientPHID() { return $this->clientPHID; } private function setClientPHID($phid) { $this->clientPHID = $phid; return $this; } public function shouldR...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/oauthserver/controller/client/PhabricatorOAuthClientDisableController.php
src/applications/oauthserver/controller/client/PhabricatorOAuthClientDisableController.php
<?php final class PhabricatorOAuthClientDisableController extends PhabricatorOAuthClientController { public function handleRequest(AphrontRequest $request) { $viewer = $this->getViewer(); $client = id(new PhabricatorOAuthServerClientQuery()) ->setViewer($viewer) ->withIDs(array($request->getU...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/oauthserver/storage/PhabricatorOAuthServerAuthorizationCode.php
src/applications/oauthserver/storage/PhabricatorOAuthServerAuthorizationCode.php
<?php final class PhabricatorOAuthServerAuthorizationCode extends PhabricatorOAuthServerDAO { protected $id; protected $code; protected $clientPHID; protected $clientSecret; protected $userPHID; protected $redirectURI; protected function getConfiguration() { return array( self::CONFIG_COLUM...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/oauthserver/storage/PhabricatorOAuthServerTransaction.php
src/applications/oauthserver/storage/PhabricatorOAuthServerTransaction.php
<?php final class PhabricatorOAuthServerTransaction extends PhabricatorApplicationTransaction { const TYPE_NAME = 'oauthserver.name'; const TYPE_REDIRECT_URI = 'oauthserver.redirect-uri'; const TYPE_DISABLED = 'oauthserver.disabled'; public function getApplicationName() { return 'oauth_server'; } ...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/oauthserver/storage/PhabricatorOAuthClientAuthorization.php
src/applications/oauthserver/storage/PhabricatorOAuthClientAuthorization.php
<?php final class PhabricatorOAuthClientAuthorization extends PhabricatorOAuthServerDAO implements PhabricatorPolicyInterface { protected $userPHID; protected $clientPHID; protected $scope; private $client = self::ATTACHABLE; public function getScopeString() { $scope = $this->getScope(); $scop...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/oauthserver/storage/PhabricatorOAuthServerClient.php
src/applications/oauthserver/storage/PhabricatorOAuthServerClient.php
<?php final class PhabricatorOAuthServerClient extends PhabricatorOAuthServerDAO implements PhabricatorPolicyInterface, PhabricatorApplicationTransactionInterface, PhabricatorDestructibleInterface { protected $secret; protected $name; protected $redirectURI; protected $creatorPHID; protected...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/oauthserver/storage/PhabricatorOAuthServerAccessToken.php
src/applications/oauthserver/storage/PhabricatorOAuthServerAccessToken.php
<?php final class PhabricatorOAuthServerAccessToken extends PhabricatorOAuthServerDAO { protected $id; protected $token; protected $userPHID; protected $clientPHID; protected function getConfiguration() { return array( self::CONFIG_COLUMN_SCHEMA => array( 'token' => 'text32', ), ...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/oauthserver/storage/PhabricatorOAuthServerDAO.php
src/applications/oauthserver/storage/PhabricatorOAuthServerDAO.php
<?php abstract class PhabricatorOAuthServerDAO extends PhabricatorLiskDAO { public function getApplicationName() { return 'oauth_server'; } }
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/oauthserver/query/PhabricatorOAuthServerClientSearchEngine.php
src/applications/oauthserver/query/PhabricatorOAuthServerClientSearchEngine.php
<?php final class PhabricatorOAuthServerClientSearchEngine extends PhabricatorApplicationSearchEngine { public function getResultTypeDescription() { return pht('OAuth Clients'); } public function getApplicationClassName() { return 'PhabricatorOAuthServerApplication'; } public function canUseInPa...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/oauthserver/query/PhabricatorOAuthServerClientQuery.php
src/applications/oauthserver/query/PhabricatorOAuthServerClientQuery.php
<?php final class PhabricatorOAuthServerClientQuery extends PhabricatorCursorPagedPolicyAwareQuery { private $ids; private $phids; private $creatorPHIDs; public function withIDs(array $ids) { $this->ids = $ids; return $this; } public function withPHIDs(array $phids) { $this->phids = $phids...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/oauthserver/query/PhabricatorOAuthServerTransactionQuery.php
src/applications/oauthserver/query/PhabricatorOAuthServerTransactionQuery.php
<?php final class PhabricatorOAuthServerTransactionQuery extends PhabricatorApplicationTransactionQuery { public function getTemplateApplicationTransaction() { return new PhabricatorOAuthServerTransaction(); } }
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/oauthserver/query/PhabricatorOAuthServerSchemaSpec.php
src/applications/oauthserver/query/PhabricatorOAuthServerSchemaSpec.php
<?php final class PhabricatorOAuthServerSchemaSpec extends PhabricatorConfigSchemaSpec { public function buildSchemata() { $this->buildEdgeSchemata(new PhabricatorOAuthServerClient()); } }
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/oauthserver/query/PhabricatorOAuthClientAuthorizationQuery.php
src/applications/oauthserver/query/PhabricatorOAuthClientAuthorizationQuery.php
<?php final class PhabricatorOAuthClientAuthorizationQuery extends PhabricatorCursorPagedPolicyAwareQuery { private $phids; private $userPHIDs; private $clientPHIDs; public function withPHIDs(array $phids) { $this->phids = $phids; return $this; } public function withUserPHIDs(array $phids) { ...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/oauthserver/editor/PhabricatorOAuthServerEditor.php
src/applications/oauthserver/editor/PhabricatorOAuthServerEditor.php
<?php final class PhabricatorOAuthServerEditor extends PhabricatorApplicationTransactionEditor { public function getEditorApplicationClass() { return 'PhabricatorOAuthServerApplication'; } public function getEditorObjectsDescription() { return pht('OAuth Applications'); } public function getTran...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/oauthserver/editor/PhabricatorOAuthServerEditEngine.php
src/applications/oauthserver/editor/PhabricatorOAuthServerEditEngine.php
<?php final class PhabricatorOAuthServerEditEngine extends PhabricatorEditEngine { const ENGINECONST = 'oauthserver.application'; public function isEngineConfigurable() { return false; } public function getEngineName() { return pht('OAuth Applications'); } public function getSummaryHeader() {...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/oauthserver/panel/PhabricatorOAuthServerAuthorizationsSettingsPanel.php
src/applications/oauthserver/panel/PhabricatorOAuthServerAuthorizationsSettingsPanel.php
<?php final class PhabricatorOAuthServerAuthorizationsSettingsPanel extends PhabricatorSettingsPanel { public function getPanelKey() { return 'oauthorizations'; } public function getPanelName() { return pht('OAuth Authorizations'); } public function getPanelMenuIcon() { return 'fa-exchange';...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/oauthserver/application/PhabricatorOAuthServerApplication.php
src/applications/oauthserver/application/PhabricatorOAuthServerApplication.php
<?php final class PhabricatorOAuthServerApplication extends PhabricatorApplication { public function getName() { return pht('OAuth Server'); } public function getBaseURI() { return '/oauthserver/'; } public function getShortDescription() { return pht('OAuth Login Provider'); } public func...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/oauthserver/__tests__/PhabricatorOAuthServerTestCase.php
src/applications/oauthserver/__tests__/PhabricatorOAuthServerTestCase.php
<?php final class PhabricatorOAuthServerTestCase extends PhabricatorTestCase { public function testValidateRedirectURI() { static $map = array( 'http://www.google.com' => true, 'http://www.google.com/' => true, 'http://www.google.com/auth' => true, 'www...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/oauthserver/phid/PhabricatorOAuthServerClientAuthorizationPHIDType.php
src/applications/oauthserver/phid/PhabricatorOAuthServerClientAuthorizationPHIDType.php
<?php final class PhabricatorOAuthServerClientAuthorizationPHIDType extends PhabricatorPHIDType { const TYPECONST = 'OASA'; public function getTypeName() { return pht('OAuth Authorization'); } public function newObject() { return new PhabricatorOAuthClientAuthorization(); } public function ge...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/oauthserver/phid/PhabricatorOAuthServerClientPHIDType.php
src/applications/oauthserver/phid/PhabricatorOAuthServerClientPHIDType.php
<?php final class PhabricatorOAuthServerClientPHIDType extends PhabricatorPHIDType { const TYPECONST = 'OASC'; public function getTypeName() { return pht('OAuth Application'); } public function newObject() { return new PhabricatorOAuthServerClient(); } public function getPHIDTypeApplicationClas...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/oauthserver/capability/PhabricatorOAuthServerCreateClientsCapability.php
src/applications/oauthserver/capability/PhabricatorOAuthServerCreateClientsCapability.php
<?php final class PhabricatorOAuthServerCreateClientsCapability extends PhabricatorPolicyCapability { const CAPABILITY = 'oauthserver.create'; public function getCapabilityName() { return pht('Can Create OAuth Applications'); } public function describeCapabilityRejection() { return pht('You do not...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/phurl/controller/PhabricatorPhurlController.php
src/applications/phurl/controller/PhabricatorPhurlController.php
<?php abstract class PhabricatorPhurlController extends PhabricatorController { protected function buildApplicationCrumbs() { $crumbs = parent::buildApplicationCrumbs(); id(new PhabricatorPhurlURLEditEngine()) ->setViewer($this->getViewer()) ->addActionToCrumbs($crumbs); return $crumbs; }...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/phurl/controller/PhabricatorPhurlURLAccessController.php
src/applications/phurl/controller/PhabricatorPhurlURLAccessController.php
<?php final class PhabricatorPhurlURLAccessController extends PhabricatorPhurlController { public function shouldAllowPublic() { return true; } public function handleRequest(AphrontRequest $request) { $viewer = $this->getViewer(); $id = $request->getURIData('id'); $alias = $request->getURIDat...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/phurl/controller/PhabricatorPhurlURLEditController.php
src/applications/phurl/controller/PhabricatorPhurlURLEditController.php
<?php final class PhabricatorPhurlURLEditController extends PhabricatorPhurlController { public function handleRequest(AphrontRequest $request) { return id(new PhabricatorPhurlURLEditEngine()) ->setController($this) ->buildResponse(); } }
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/phurl/controller/PhabricatorPhurlShortURLController.php
src/applications/phurl/controller/PhabricatorPhurlShortURLController.php
<?php final class PhabricatorPhurlShortURLController extends PhabricatorPhurlController { public function shouldRequireLogin() { return false; } public function handleRequest(AphrontRequest $request) { $viewer = $this->getViewer(); $append = $request->getURIData('append'); $main_domain_uri = ...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/phurl/controller/PhabricatorPhurlShortURLDefaultController.php
src/applications/phurl/controller/PhabricatorPhurlShortURLDefaultController.php
<?php final class PhabricatorPhurlShortURLDefaultController extends PhabricatorPhurlController { public function shouldRequireLogin() { return false; } public function handleRequest(AphrontRequest $request) { $dialog = $this->newDialog() ->setTitle(pht('Invalid URL')) ->appendParagraph( ...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/phurl/controller/PhabricatorPhurlURLListController.php
src/applications/phurl/controller/PhabricatorPhurlURLListController.php
<?php final class PhabricatorPhurlURLListController extends PhabricatorPhurlController { public function shouldAllowPublic() { return true; } public function handleRequest(AphrontRequest $request) { $engine = new PhabricatorPhurlURLSearchEngine(); $controller = id(new PhabricatorApplicationSearch...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false