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 |
|---|---|---|---|---|---|---|---|---|
phorgeit/phorge | https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/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 | aceebaa4305332265a371282a841609fe926b819 | 2026-01-05T04:21:50.722734Z | false |
phorgeit/phorge | https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/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 | aceebaa4305332265a371282a841609fe926b819 | 2026-01-05T04:21:50.722734Z | false |
phorgeit/phorge | https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/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 | aceebaa4305332265a371282a841609fe926b819 | 2026-01-05T04:21:50.722734Z | false |
phorgeit/phorge | https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/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 | aceebaa4305332265a371282a841609fe926b819 | 2026-01-05T04:21:50.722734Z | false |
phorgeit/phorge | https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/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 | aceebaa4305332265a371282a841609fe926b819 | 2026-01-05T04:21:50.722734Z | false |
phorgeit/phorge | https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/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_DEPRECATED... | php | Apache-2.0 | aceebaa4305332265a371282a841609fe926b819 | 2026-01-05T04:21:50.722734Z | false |
phorgeit/phorge | https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/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 | aceebaa4305332265a371282a841609fe926b819 | 2026-01-05T04:21:50.722734Z | false |
phorgeit/phorge | https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/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::class);
}
protected function loadFileByPHID(PhabricatorUser $viewer, $file_phid) {
$file = id(new PhabricatorFileQu... | php | Apache-2.0 | aceebaa4305332265a371282a841609fe926b819 | 2026-01-05T04:21:50.722734Z | false |
phorgeit/phorge | https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/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 | aceebaa4305332265a371282a841609fe926b819 | 2026-01-05T04:21:50.722734Z | false |
phorgeit/phorge | https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/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 | aceebaa4305332265a371282a841609fe926b819 | 2026-01-05T04:21:50.722734Z | false |
phorgeit/phorge | https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/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 | aceebaa4305332265a371282a841609fe926b819 | 2026-01-05T04:21:50.722734Z | false |
phorgeit/phorge | https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/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 | aceebaa4305332265a371282a841609fe926b819 | 2026-01-05T04:21:50.722734Z | false |
phorgeit/phorge | https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/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 | aceebaa4305332265a371282a841609fe926b819 | 2026-01-05T04:21:50.722734Z | false |
phorgeit/phorge | https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/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 | aceebaa4305332265a371282a841609fe926b819 | 2026-01-05T04:21:50.722734Z | false |
phorgeit/phorge | https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/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 | aceebaa4305332265a371282a841609fe926b819 | 2026-01-05T04:21:50.722734Z | false |
phorgeit/phorge | https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/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 | aceebaa4305332265a371282a841609fe926b819 | 2026-01-05T04:21:50.722734Z | false |
phorgeit/phorge | https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/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 | aceebaa4305332265a371282a841609fe926b819 | 2026-01-05T04:21:50.722734Z | false |
phorgeit/phorge | https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/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 | aceebaa4305332265a371282a841609fe926b819 | 2026-01-05T04:21:50.722734Z | false |
phorgeit/phorge | https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/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 | aceebaa4305332265a371282a841609fe926b819 | 2026-01-05T04:21:50.722734Z | false |
phorgeit/phorge | https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/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-audio-o... | php | Apache-2.0 | aceebaa4305332265a371282a841609fe926b819 | 2026-01-05T04:21:50.722734Z | false |
phorgeit/phorge | https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/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 | aceebaa4305332265a371282a841609fe926b819 | 2026-01-05T04:21:50.722734Z | false |
phorgeit/phorge | https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/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 | aceebaa4305332265a371282a841609fe926b819 | 2026-01-05T04:21:50.722734Z | false |
phorgeit/phorge | https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/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 | aceebaa4305332265a371282a841609fe926b819 | 2026-01-05T04:21:50.722734Z | false |
phorgeit/phorge | https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/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 | aceebaa4305332265a371282a841609fe926b819 | 2026-01-05T04:21:50.722734Z | false |
phorgeit/phorge | https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/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 | aceebaa4305332265a371282a841609fe926b819 | 2026-01-05T04:21:50.722734Z | false |
phorgeit/phorge | https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/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 | aceebaa4305332265a371282a841609fe926b819 | 2026-01-05T04:21:50.722734Z | false |
phorgeit/phorge | https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/applications/files/document/exception/PhabricatorDocumentEngineParserException.php | src/applications/files/document/exception/PhabricatorDocumentEngineParserException.php | <?php
final class PhabricatorDocumentEngineParserException
extends Exception {}
| php | Apache-2.0 | aceebaa4305332265a371282a841609fe926b819 | 2026-01-05T04:21:50.722734Z | false |
phorgeit/phorge | https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/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 | aceebaa4305332265a371282a841609fe926b819 | 2026-01-05T04:21:50.722734Z | false |
phorgeit/phorge | https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/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 | aceebaa4305332265a371282a841609fe926b819 | 2026-01-05T04:21:50.722734Z | false |
phorgeit/phorge | https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/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 | aceebaa4305332265a371282a841609fe926b819 | 2026-01-05T04:21:50.722734Z | false |
phorgeit/phorge | https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/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 | aceebaa4305332265a371282a841609fe926b819 | 2026-01-05T04:21:50.722734Z | false |
phorgeit/phorge | https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/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 | aceebaa4305332265a371282a841609fe926b819 | 2026-01-05T04:21:50.722734Z | false |
phorgeit/phorge | https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/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 | aceebaa4305332265a371282a841609fe926b819 | 2026-01-05T04:21:50.722734Z | false |
phorgeit/phorge | https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/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 | aceebaa4305332265a371282a841609fe926b819 | 2026-01-05T04:21:50.722734Z | false |
phorgeit/phorge | https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/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 | aceebaa4305332265a371282a841609fe926b819 | 2026-01-05T04:21:50.722734Z | false |
phorgeit/phorge | https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/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:Configuring File Storage}.
*... | php | Apache-2.0 | aceebaa4305332265a371282a841609fe926b819 | 2026-01-05T04:21:50.722734Z | false |
phorgeit/phorge | https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/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 | aceebaa4305332265a371282a841609fe926b819 | 2026-01-05T04:21:50.722734Z | false |
phorgeit/phorge | https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/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 Phabricato... | php | Apache-2.0 | aceebaa4305332265a371282a841609fe926b819 | 2026-01-05T04:21:50.722734Z | false |
phorgeit/phorge | https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/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 | aceebaa4305332265a371282a841609fe926b819 | 2026-01-05T04:21:50.722734Z | false |
phorgeit/phorge | https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/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 | aceebaa4305332265a371282a841609fe926b819 | 2026-01-05T04:21:50.722734Z | false |
phorgeit/phorge | https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/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 | aceebaa4305332265a371282a841609fe926b819 | 2026-01-05T04:21:50.722734Z | false |
phorgeit/phorge | https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/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 | aceebaa4305332265a371282a841609fe926b819 | 2026-01-05T04:21:50.722734Z | false |
phorgeit/phorge | https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/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 | aceebaa4305332265a371282a841609fe926b819 | 2026-01-05T04:21:50.722734Z | false |
phorgeit/phorge | https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/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 | aceebaa4305332265a371282a841609fe926b819 | 2026-01-05T04:21:50.722734Z | false |
phorgeit/phorge | https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/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 | aceebaa4305332265a371282a841609fe926b819 | 2026-01-05T04:21:50.722734Z | false |
phorgeit/phorge | https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/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 | aceebaa4305332265a371282a841609fe926b819 | 2026-01-05T04:21:50.722734Z | false |
phorgeit/phorge | https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/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 | aceebaa4305332265a371282a841609fe926b819 | 2026-01-05T04:21:50.722734Z | false |
phorgeit/phorge | https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/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 | aceebaa4305332265a371282a841609fe926b819 | 2026-01-05T04:21:50.722734Z | false |
phorgeit/phorge | https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/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 | aceebaa4305332265a371282a841609fe926b819 | 2026-01-05T04:21:50.722734Z | false |
phorgeit/phorge | https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/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 | aceebaa4305332265a371282a841609fe926b819 | 2026-01-05T04:21:50.722734Z | false |
phorgeit/phorge | https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/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 | aceebaa4305332265a371282a841609fe926b819 | 2026-01-05T04:21:50.722734Z | false |
phorgeit/phorge | https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/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 | aceebaa4305332265a371282a841609fe926b819 | 2026-01-05T04:21:50.722734Z | false |
phorgeit/phorge | https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/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 | aceebaa4305332265a371282a841609fe926b819 | 2026-01-05T04:21:50.722734Z | false |
phorgeit/phorge | https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/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 | aceebaa4305332265a371282a841609fe926b819 | 2026-01-05T04:21:50.722734Z | false |
phorgeit/phorge | https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/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 | aceebaa4305332265a371282a841609fe926b819 | 2026-01-05T04:21:50.722734Z | false |
phorgeit/phorge | https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/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 | aceebaa4305332265a371282a841609fe926b819 | 2026-01-05T04:21:50.722734Z | false |
phorgeit/phorge | https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/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 | aceebaa4305332265a371282a841609fe926b819 | 2026-01-05T04:21:50.722734Z | false |
phorgeit/phorge | https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/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 | aceebaa4305332265a371282a841609fe926b819 | 2026-01-05T04:21:50.722734Z | false |
phorgeit/phorge | https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/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 | aceebaa4305332265a371282a841609fe926b819 | 2026-01-05T04:21:50.722734Z | false |
phorgeit/phorge | https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/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 | aceebaa4305332265a371282a841609fe926b819 | 2026-01-05T04:21:50.722734Z | false |
phorgeit/phorge | https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/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 | aceebaa4305332265a371282a841609fe926b819 | 2026-01-05T04:21:50.722734Z | false |
phorgeit/phorge | https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/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::class;
}
public function canUs... | php | Apache-2.0 | aceebaa4305332265a371282a841609fe926b819 | 2026-01-05T04:21:50.722734Z | false |
phorgeit/phorge | https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/applications/oauthserver/query/PhabricatorOAuthServerClientQuery.php | src/applications/oauthserver/query/PhabricatorOAuthServerClientQuery.php | <?php
/**
* @extends PhabricatorCursorPagedPolicyAwareQuery<PhabricatorOAuthServerClient>
*/
final class PhabricatorOAuthServerClientQuery
extends PhabricatorCursorPagedPolicyAwareQuery {
private $ids;
private $phids;
private $creatorPHIDs;
public function withIDs(array $ids) {
$this->ids = $ids;
... | php | Apache-2.0 | aceebaa4305332265a371282a841609fe926b819 | 2026-01-05T04:21:50.722734Z | false |
phorgeit/phorge | https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/applications/oauthserver/query/PhabricatorOAuthServerTransactionQuery.php | src/applications/oauthserver/query/PhabricatorOAuthServerTransactionQuery.php | <?php
final class PhabricatorOAuthServerTransactionQuery
extends PhabricatorApplicationTransactionQuery {
public function getTemplateApplicationTransaction() {
return new PhabricatorOAuthServerTransaction();
}
public function getQueryApplicationClass() {
return PhabricatorOAuthServerApplication::clas... | php | Apache-2.0 | aceebaa4305332265a371282a841609fe926b819 | 2026-01-05T04:21:50.722734Z | false |
phorgeit/phorge | https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/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 | aceebaa4305332265a371282a841609fe926b819 | 2026-01-05T04:21:50.722734Z | false |
phorgeit/phorge | https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/applications/oauthserver/query/PhabricatorOAuthClientAuthorizationQuery.php | src/applications/oauthserver/query/PhabricatorOAuthClientAuthorizationQuery.php | <?php
/**
* @extends PhabricatorCursorPagedPolicyAwareQuery<PhabricatorOAuthClientAuthorization>
*/
final class PhabricatorOAuthClientAuthorizationQuery
extends PhabricatorCursorPagedPolicyAwareQuery {
private $phids;
private $userPHIDs;
private $clientPHIDs;
public function withPHIDs(array $phids) {
... | php | Apache-2.0 | aceebaa4305332265a371282a841609fe926b819 | 2026-01-05T04:21:50.722734Z | false |
phorgeit/phorge | https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/applications/oauthserver/editor/PhabricatorOAuthServerEditor.php | src/applications/oauthserver/editor/PhabricatorOAuthServerEditor.php | <?php
final class PhabricatorOAuthServerEditor
extends PhabricatorApplicationTransactionEditor {
public function getEditorApplicationClass() {
return PhabricatorOAuthServerApplication::class;
}
public function getEditorObjectsDescription() {
return pht('OAuth Applications');
}
public function ge... | php | Apache-2.0 | aceebaa4305332265a371282a841609fe926b819 | 2026-01-05T04:21:50.722734Z | false |
phorgeit/phorge | https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/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 | aceebaa4305332265a371282a841609fe926b819 | 2026-01-05T04:21:50.722734Z | false |
phorgeit/phorge | https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/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 | aceebaa4305332265a371282a841609fe926b819 | 2026-01-05T04:21:50.722734Z | false |
phorgeit/phorge | https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/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 | aceebaa4305332265a371282a841609fe926b819 | 2026-01-05T04:21:50.722734Z | false |
phorgeit/phorge | https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/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 | aceebaa4305332265a371282a841609fe926b819 | 2026-01-05T04:21:50.722734Z | false |
phorgeit/phorge | https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/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 | aceebaa4305332265a371282a841609fe926b819 | 2026-01-05T04:21:50.722734Z | false |
phorgeit/phorge | https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/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 | aceebaa4305332265a371282a841609fe926b819 | 2026-01-05T04:21:50.722734Z | false |
phorgeit/phorge | https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/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 | aceebaa4305332265a371282a841609fe926b819 | 2026-01-05T04:21:50.722734Z | false |
phorgeit/phorge | https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/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 | aceebaa4305332265a371282a841609fe926b819 | 2026-01-05T04:21:50.722734Z | false |
phorgeit/phorge | https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/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 | aceebaa4305332265a371282a841609fe926b819 | 2026-01-05T04:21:50.722734Z | false |
phorgeit/phorge | https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/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 | aceebaa4305332265a371282a841609fe926b819 | 2026-01-05T04:21:50.722734Z | false |
phorgeit/phorge | https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/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 | aceebaa4305332265a371282a841609fe926b819 | 2026-01-05T04:21:50.722734Z | false |
phorgeit/phorge | https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/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 | aceebaa4305332265a371282a841609fe926b819 | 2026-01-05T04:21:50.722734Z | false |
phorgeit/phorge | https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/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 | aceebaa4305332265a371282a841609fe926b819 | 2026-01-05T04:21:50.722734Z | false |
phorgeit/phorge | https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/applications/phurl/controller/PhabricatorPhurlURLViewController.php | src/applications/phurl/controller/PhabricatorPhurlURLViewController.php | <?php
final class PhabricatorPhurlURLViewController
extends PhabricatorPhurlController {
public function shouldAllowPublic() {
return true;
}
public function handleRequest(AphrontRequest $request) {
$viewer = $request->getViewer();
$id = $request->getURIData('id');
$timeline = null;
$ur... | php | Apache-2.0 | aceebaa4305332265a371282a841609fe926b819 | 2026-01-05T04:21:50.722734Z | false |
phorgeit/phorge | https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/applications/phurl/storage/PhabricatorPhurlDAO.php | src/applications/phurl/storage/PhabricatorPhurlDAO.php | <?php
abstract class PhabricatorPhurlDAO extends PhabricatorLiskDAO {
public function getApplicationName() {
return 'phurl';
}
}
| php | Apache-2.0 | aceebaa4305332265a371282a841609fe926b819 | 2026-01-05T04:21:50.722734Z | false |
phorgeit/phorge | https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/applications/phurl/storage/PhabricatorPhurlURL.php | src/applications/phurl/storage/PhabricatorPhurlURL.php | <?php
final class PhabricatorPhurlURL extends PhabricatorPhurlDAO
implements PhabricatorPolicyInterface,
PhabricatorProjectInterface,
PhabricatorApplicationTransactionInterface,
PhabricatorSubscribableInterface,
PhabricatorTokenReceiverInterface,
PhabricatorDestructibleInterface,
PhabricatorMentionableIn... | php | Apache-2.0 | aceebaa4305332265a371282a841609fe926b819 | 2026-01-05T04:21:50.722734Z | false |
phorgeit/phorge | https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/applications/phurl/storage/PhabricatorPhurlURLTransaction.php | src/applications/phurl/storage/PhabricatorPhurlURLTransaction.php | <?php
final class PhabricatorPhurlURLTransaction
extends PhabricatorModularTransaction {
const MAILTAG_DETAILS = 'phurl-details';
public function getApplicationName() {
return 'phurl';
}
public function getApplicationTransactionType() {
return PhabricatorPhurlURLPHIDType::TYPECONST;
}
public ... | php | Apache-2.0 | aceebaa4305332265a371282a841609fe926b819 | 2026-01-05T04:21:50.722734Z | false |
phorgeit/phorge | https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/applications/phurl/storage/PhabricatorPhurlURLNameNgrams.php | src/applications/phurl/storage/PhabricatorPhurlURLNameNgrams.php | <?php
final class PhabricatorPhurlURLNameNgrams
extends PhabricatorSearchNgrams {
public function getNgramKey() {
return 'phurlname';
}
public function getColumnName() {
return 'name';
}
public function getApplicationName() {
return 'phurl';
}
}
| php | Apache-2.0 | aceebaa4305332265a371282a841609fe926b819 | 2026-01-05T04:21:50.722734Z | false |
phorgeit/phorge | https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/applications/phurl/storage/PhabricatorPhurlURLTransactionComment.php | src/applications/phurl/storage/PhabricatorPhurlURLTransactionComment.php | <?php
final class PhabricatorPhurlURLTransactionComment
extends PhabricatorApplicationTransactionComment {
public function getApplicationTransactionObject() {
return new PhabricatorPhurlURLTransaction();
}
}
| php | Apache-2.0 | aceebaa4305332265a371282a841609fe926b819 | 2026-01-05T04:21:50.722734Z | false |
phorgeit/phorge | https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/applications/phurl/storage/PhabricatorPhurlSchemaSpec.php | src/applications/phurl/storage/PhabricatorPhurlSchemaSpec.php | <?php
final class PhabricatorPhurlSchemaSpec
extends PhabricatorConfigSchemaSpec {
public function buildSchemata() {
$this->buildEdgeSchemata(new PhabricatorPhurlURL());
}
}
| php | Apache-2.0 | aceebaa4305332265a371282a841609fe926b819 | 2026-01-05T04:21:50.722734Z | false |
phorgeit/phorge | https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/applications/phurl/query/PhabricatorPhurlURLSearchEngine.php | src/applications/phurl/query/PhabricatorPhurlURLSearchEngine.php | <?php
final class PhabricatorPhurlURLSearchEngine
extends PhabricatorApplicationSearchEngine {
public function getResultTypeDescription() {
return pht('Phurl URLs');
}
public function getApplicationClassName() {
return PhabricatorPhurlApplication::class;
}
public function newQuery() {
return... | php | Apache-2.0 | aceebaa4305332265a371282a841609fe926b819 | 2026-01-05T04:21:50.722734Z | false |
phorgeit/phorge | https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/applications/phurl/query/PhabricatorPhurlURLQuery.php | src/applications/phurl/query/PhabricatorPhurlURLQuery.php | <?php
/**
* @extends PhabricatorCursorPagedPolicyAwareQuery<PhabricatorPhurlURL>
*/
final class PhabricatorPhurlURLQuery
extends PhabricatorCursorPagedPolicyAwareQuery {
private $ids;
private $phids;
private $names;
private $longURLs;
private $aliases;
private $authorPHIDs;
public function newResul... | php | Apache-2.0 | aceebaa4305332265a371282a841609fe926b819 | 2026-01-05T04:21:50.722734Z | false |
phorgeit/phorge | https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/applications/phurl/query/PhabricatorPhurlURLTransactionQuery.php | src/applications/phurl/query/PhabricatorPhurlURLTransactionQuery.php | <?php
final class PhabricatorPhurlURLTransactionQuery
extends PhabricatorApplicationTransactionQuery {
public function getTemplateApplicationTransaction() {
return new PhabricatorPhurlURLTransaction();
}
public function getQueryApplicationClass() {
return PhabricatorPhurlApplication::class;
}
}
| php | Apache-2.0 | aceebaa4305332265a371282a841609fe926b819 | 2026-01-05T04:21:50.722734Z | false |
phorgeit/phorge | https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/applications/phurl/mail/PhabricatorPhurlURLMailReceiver.php | src/applications/phurl/mail/PhabricatorPhurlURLMailReceiver.php | <?php
final class PhabricatorPhurlURLMailReceiver
extends PhabricatorObjectMailReceiver {
public function isEnabled() {
return PhabricatorApplication::isClassInstalled(
PhabricatorPhurlApplication::class);
}
protected function getObjectPattern() {
return 'U[1-9]\d*';
}
protected function l... | php | Apache-2.0 | aceebaa4305332265a371282a841609fe926b819 | 2026-01-05T04:21:50.722734Z | false |
phorgeit/phorge | https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/applications/phurl/mail/PhabricatorPhurlURLReplyHandler.php | src/applications/phurl/mail/PhabricatorPhurlURLReplyHandler.php | <?php
final class PhabricatorPhurlURLReplyHandler
extends PhabricatorApplicationTransactionReplyHandler {
public function validateMailReceiver($mail_receiver) {
if (!($mail_receiver instanceof PhabricatorPhurlURL)) {
throw new Exception(
pht(
'Mail receiver is not a %s!',
'Ph... | php | Apache-2.0 | aceebaa4305332265a371282a841609fe926b819 | 2026-01-05T04:21:50.722734Z | false |
phorgeit/phorge | https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/applications/phurl/editor/PhabricatorPhurlURLEditor.php | src/applications/phurl/editor/PhabricatorPhurlURLEditor.php | <?php
final class PhabricatorPhurlURLEditor
extends PhabricatorApplicationTransactionEditor {
public function getEditorApplicationClass() {
return PhabricatorPhurlApplication::class;
}
public function getEditorObjectsDescription() {
return pht('Phurl');
}
public function getCreateObjectTitle($au... | php | Apache-2.0 | aceebaa4305332265a371282a841609fe926b819 | 2026-01-05T04:21:50.722734Z | false |
phorgeit/phorge | https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/applications/phurl/editor/PhabricatorPhurlURLEditEngine.php | src/applications/phurl/editor/PhabricatorPhurlURLEditEngine.php | <?php
final class PhabricatorPhurlURLEditEngine
extends PhabricatorEditEngine {
const ENGINECONST = 'phurl.url';
public function getEngineName() {
return pht('Phurl');
}
public function getEngineApplicationClass() {
return PhabricatorPhurlApplication::class;
}
public function getSummaryHeader... | php | Apache-2.0 | aceebaa4305332265a371282a841609fe926b819 | 2026-01-05T04:21:50.722734Z | false |
phorgeit/phorge | https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/applications/phurl/xaction/PhabricatorPhurlURLTransactionType.php | src/applications/phurl/xaction/PhabricatorPhurlURLTransactionType.php | <?php
abstract class PhabricatorPhurlURLTransactionType
extends PhabricatorModularTransactionType {}
| php | Apache-2.0 | aceebaa4305332265a371282a841609fe926b819 | 2026-01-05T04:21:50.722734Z | false |
phorgeit/phorge | https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/applications/phurl/xaction/PhabricatorPhurlURLNameTransaction.php | src/applications/phurl/xaction/PhabricatorPhurlURLNameTransaction.php | <?php
final class PhabricatorPhurlURLNameTransaction
extends PhabricatorPhurlURLTransactionType {
const TRANSACTIONTYPE = 'phurl.name';
public function generateOldValue($object) {
return $object->getName();
}
public function applyInternalEffects($object, $value) {
$object->setName($value);
}
... | php | Apache-2.0 | aceebaa4305332265a371282a841609fe926b819 | 2026-01-05T04:21:50.722734Z | false |
phorgeit/phorge | https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/applications/phurl/xaction/PhabricatorPhurlURLDescriptionTransaction.php | src/applications/phurl/xaction/PhabricatorPhurlURLDescriptionTransaction.php | <?php
final class PhabricatorPhurlURLDescriptionTransaction
extends PhabricatorPhurlURLTransactionType {
const TRANSACTIONTYPE = 'phurl.description';
public function generateOldValue($object) {
return $object->getDescription();
}
public function applyInternalEffects($object, $value) {
$object->set... | php | Apache-2.0 | aceebaa4305332265a371282a841609fe926b819 | 2026-01-05T04:21:50.722734Z | false |
phorgeit/phorge | https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/applications/phurl/xaction/PhabricatorPhurlURLAliasTransaction.php | src/applications/phurl/xaction/PhabricatorPhurlURLAliasTransaction.php | <?php
final class PhabricatorPhurlURLAliasTransaction
extends PhabricatorPhurlURLTransactionType {
const TRANSACTIONTYPE = 'phurl.alias';
public function generateOldValue($object) {
return $object->getAlias();
}
public function applyInternalEffects($object, $value) {
$object->setAlias($value);
}... | php | Apache-2.0 | aceebaa4305332265a371282a841609fe926b819 | 2026-01-05T04:21:50.722734Z | false |
phorgeit/phorge | https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/applications/phurl/xaction/PhabricatorPhurlURLLongURLTransaction.php | src/applications/phurl/xaction/PhabricatorPhurlURLLongURLTransaction.php | <?php
final class PhabricatorPhurlURLLongURLTransaction
extends PhabricatorPhurlURLTransactionType {
const TRANSACTIONTYPE = 'phurl.longurl';
public function generateOldValue($object) {
return $object->getLongURL();
}
public function applyInternalEffects($object, $value) {
$object->setLongURL($val... | php | Apache-2.0 | aceebaa4305332265a371282a841609fe926b819 | 2026-01-05T04:21:50.722734Z | false |
phorgeit/phorge | https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/applications/phurl/application/PhabricatorPhurlApplication.php | src/applications/phurl/application/PhabricatorPhurlApplication.php | <?php
final class PhabricatorPhurlApplication extends PhabricatorApplication {
public function getName() {
return pht('Phurl');
}
public function getShortDescription() {
return pht('URL Shortener');
}
public function getFlavorText() {
return pht('Shorten your favorite URL.');
}
public fun... | php | Apache-2.0 | aceebaa4305332265a371282a841609fe926b819 | 2026-01-05T04:21:50.722734Z | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.