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/project/capability/ProjectDefaultViewCapability.php
src/applications/project/capability/ProjectDefaultViewCapability.php
<?php final class ProjectDefaultViewCapability extends PhabricatorPolicyCapability { const CAPABILITY = 'project.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/project/capability/ProjectCanLockProjectsCapability.php
src/applications/project/capability/ProjectCanLockProjectsCapability.php
<?php final class ProjectCanLockProjectsCapability extends PhabricatorPolicyCapability { const CAPABILITY = 'project.can.lock'; public function getCapabilityName() { return pht('Can Lock Project Membership'); } public function describeCapabilityRejection() { return pht('You do not have permission ...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/applications/project/remarkup/ProjectRemarkupRule.php
src/applications/project/remarkup/ProjectRemarkupRule.php
<?php final class ProjectRemarkupRule extends PhabricatorObjectRemarkupRule { protected function getObjectNamePrefix() { return '#'; } protected function renderObjectRef( $object, PhabricatorObjectHandle $handle, $anchor, $id) { if ($this->getEngine()->isTextMode()) { return '#'....
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/applications/project/remarkup/__tests__/ProjectRemarkupRuleTestCase.php
src/applications/project/remarkup/__tests__/ProjectRemarkupRuleTestCase.php
<?php final class ProjectRemarkupRuleTestCase extends PhabricatorTestCase { public function testProjectObjectRemarkup() { $cases = array( 'I like #ducks.' => array( 'embed' => array(), 'ref' => array( array( 'offset' => 8, 'id' => 'ducks', ), ...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/applications/project/constants/PhabricatorProjectStatus.php
src/applications/project/constants/PhabricatorProjectStatus.php
<?php final class PhabricatorProjectStatus extends Phobject { const STATUS_ACTIVE = 0; const STATUS_ARCHIVED = 100; const STATUS_ACTIVE_KEY = 'active'; const STATUS_ARCHIVED_KEY = 'archived'; public static function getNameForStatus($status) { $map = array( self::STATUS_ACTIVE => ...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/applications/project/constants/PhabricatorProjectWorkboardBackgroundColor.php
src/applications/project/constants/PhabricatorProjectWorkboardBackgroundColor.php
<?php final class PhabricatorProjectWorkboardBackgroundColor extends Phobject { public static function getOptions() { $options = array( array( 'key' => '', 'name' => pht('Use Parent Background (Default)'), 'special' => 'parent', 'icon' => 'fa-chevron-circle-up', 'gr...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/applications/files/PhabricatorImageTransformer.php
src/applications/files/PhabricatorImageTransformer.php
<?php /** * @task enormous Detecting Enormous Images * @task save Saving Image Data */ final class PhabricatorImageTransformer extends Phobject { /* -( Saving Image Data )-------------------------------------------------- */ /** * Save an image resource to a string representation suitable for 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/controller/PhabricatorFileImageProxyController.php
src/applications/files/controller/PhabricatorFileImageProxyController.php
<?php final class PhabricatorFileImageProxyController extends PhabricatorFileController { public function shouldAllowPublic() { return true; } public function handleRequest(AphrontRequest $request) { $viewer = $request->getViewer(); $img_uri = $request->getStr('uri'); // Validate the URI bef...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/applications/files/controller/PhabricatorFileUICurtainAttachController.php
src/applications/files/controller/PhabricatorFileUICurtainAttachController.php
<?php final class PhabricatorFileUICurtainAttachController extends PhabricatorFileController { public function handleRequest(AphrontRequest $request) { $viewer = $request->getViewer(); $object_phid = $request->getURIData('objectPHID'); $file_phid = $request->getURIData('filePHID'); $object = id(...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/applications/files/controller/PhabricatorFileListController.php
src/applications/files/controller/PhabricatorFileListController.php
<?php final class PhabricatorFileListController extends PhabricatorFileController { public function shouldAllowPublic() { return true; } public function isGlobalDragAndDropUploadEnabled() { return true; } public function handleRequest(AphrontRequest $request) { return id(new PhabricatorFileSea...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/applications/files/controller/PhabricatorFileController.php
src/applications/files/controller/PhabricatorFileController.php
<?php abstract class PhabricatorFileController extends PhabricatorController { public function buildApplicationMenu() { return $this->newApplicationMenu() ->setSearchEngine(new PhabricatorFileSearchEngine()); } }
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/applications/files/controller/PhabricatorFileLightboxController.php
src/applications/files/controller/PhabricatorFileLightboxController.php
<?php final class PhabricatorFileLightboxController extends PhabricatorFileController { public function shouldAllowPublic() { return true; } public function handleRequest(AphrontRequest $request) { $viewer = $request->getViewer(); $phid = $request->getURIData('phid'); $comment = $request->get...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/applications/files/controller/PhabricatorFileDeleteController.php
src/applications/files/controller/PhabricatorFileDeleteController.php
<?php final class PhabricatorFileDeleteController extends PhabricatorFileController { public function handleRequest(AphrontRequest $request) { $viewer = $request->getViewer(); $id = $request->getURIData('id'); $file = id(new PhabricatorFileQuery()) ->setViewer($viewer) ->withIDs(array($id))...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/applications/files/controller/PhabricatorFileDataController.php
src/applications/files/controller/PhabricatorFileDataController.php
<?php final class PhabricatorFileDataController extends PhabricatorFileController { private $phid; private $key; private $file; public function shouldRequireLogin() { return false; } public function shouldAllowPartialSessions() { return true; } public function handleRequest(AphrontRequest $...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/applications/files/controller/PhabricatorFileUploadController.php
src/applications/files/controller/PhabricatorFileUploadController.php
<?php final class PhabricatorFileUploadController extends PhabricatorFileController { public function isGlobalDragAndDropUploadEnabled() { return true; } public function handleRequest(AphrontRequest $request) { $viewer = $request->getUser(); $file = PhabricatorFile::initializeNewFile(); $e_fi...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/applications/files/controller/PhabricatorFileTransformListController.php
src/applications/files/controller/PhabricatorFileTransformListController.php
<?php final class PhabricatorFileTransformListController extends PhabricatorFileController { public function shouldAllowPublic() { return true; } public function handleRequest(AphrontRequest $request) { $viewer = $this->getViewer(); $file = id(new PhabricatorFileQuery()) ->setViewer($viewe...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/applications/files/controller/PhabricatorFileComposeController.php
src/applications/files/controller/PhabricatorFileComposeController.php
<?php final class PhabricatorFileComposeController extends PhabricatorFileController { public function handleRequest(AphrontRequest $request) { $viewer = $request->getViewer(); $color_map = PhabricatorFilesComposeIconBuiltinFile::getAllColors(); $icon_map = $this->getIconMap(); if ($request->isF...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/applications/files/controller/PhabricatorFileEditController.php
src/applications/files/controller/PhabricatorFileEditController.php
<?php final class PhabricatorFileEditController extends PhabricatorFileController { public function handleRequest(AphrontRequest $request) { return id(new PhabricatorFileEditEngine()) ->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/files/controller/PhabricatorFileIconSetSelectController.php
src/applications/files/controller/PhabricatorFileIconSetSelectController.php
<?php final class PhabricatorFileIconSetSelectController extends PhabricatorFileController { public function handleRequest(AphrontRequest $request) { $key = $request->getURIData('key'); $set = PhabricatorIconSet::getIconSetByKey($key); if (!$set) { return new Aphront404Response(); } $v...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/applications/files/controller/PhabricatorFileUploadDialogController.php
src/applications/files/controller/PhabricatorFileUploadDialogController.php
<?php final class PhabricatorFileUploadDialogController extends PhabricatorFileController { public function handleRequest(AphrontRequest $request) { $viewer = $request->getViewer(); $e_file = true; $errors = array(); if ($request->isDialogFormPost()) { $file_phids = $request->getStrList('fi...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/applications/files/controller/PhabricatorFileViewController.php
src/applications/files/controller/PhabricatorFileViewController.php
<?php final class PhabricatorFileViewController extends PhabricatorFileController { public function shouldAllowPublic() { return true; } public function handleRequest(AphrontRequest $request) { $viewer = $request->getViewer(); $id = $request->getURIData('id'); $phid = $request->getURIData('phid...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/applications/files/controller/PhabricatorFileDropUploadController.php
src/applications/files/controller/PhabricatorFileDropUploadController.php
<?php final class PhabricatorFileDropUploadController extends PhabricatorFileController { public function shouldAllowRestrictedParameter($parameter_name) { // Prevent false positives from file content when it is submitted via // drag-and-drop upload. return true; } /** * @phutil-external-symbo...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/applications/files/controller/PhabricatorFileDocumentController.php
src/applications/files/controller/PhabricatorFileDocumentController.php
<?php final class PhabricatorFileDocumentController extends PhabricatorFileController { public function shouldAllowPublic() { return true; } public function handleRequest(AphrontRequest $request) { $engine = id(new PhabricatorFileDocumentRenderingEngine()) ->setRequest($request) ->setCont...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/applications/files/controller/PhabricatorFileDetachController.php
src/applications/files/controller/PhabricatorFileDetachController.php
<?php final class PhabricatorFileDetachController extends PhabricatorFileController { public function handleRequest(AphrontRequest $request) { $viewer = $request->getViewer(); $object_phid = $request->getURIData('objectPHID'); $file_phid = $request->getURIData('filePHID'); $object = id(new Phabr...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/applications/files/controller/PhabricatorFileUICurtainListController.php
src/applications/files/controller/PhabricatorFileUICurtainListController.php
<?php final class PhabricatorFileUICurtainListController extends PhabricatorFileController { public function shouldAllowPublic() { return true; } public function handleRequest(AphrontRequest $request) { $viewer = $request->getViewer(); $object_phid = $request->getURIData('phid'); $object = ...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/applications/files/controller/PhabricatorFileTransformController.php
src/applications/files/controller/PhabricatorFileTransformController.php
<?php final class PhabricatorFileTransformController extends PhabricatorFileController { public function shouldRequireLogin() { return false; } public function handleRequest(AphrontRequest $request) { $viewer = $this->getViewer(); // NOTE: This is a public/CDN endpoint, and permission to see 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/engineextension/PhabricatorFileAttachmentDestructionEngineExtension.php
src/applications/files/engineextension/PhabricatorFileAttachmentDestructionEngineExtension.php
<?php final class PhabricatorFileAttachmentDestructionEngineExtension extends PhabricatorDestructionEngineExtension { const EXTENSIONKEY = 'file.attachments'; public function getExtensionName() { return pht('File Attachments'); } public function destroyObject( PhabricatorDestructionEngine $engine,...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/applications/files/engineextension/PhabricatorFilesCurtainExtension.php
src/applications/files/engineextension/PhabricatorFilesCurtainExtension.php
<?php final class PhabricatorFilesCurtainExtension extends PHUICurtainExtension { const EXTENSIONKEY = 'files.files'; public function shouldEnableForObject($object) { return true; } public function getExtensionApplication() { return new PhabricatorFilesApplication(); } public function buildCu...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/applications/files/storage/PhabricatorFileTransaction.php
src/applications/files/storage/PhabricatorFileTransaction.php
<?php final class PhabricatorFileTransaction extends PhabricatorModularTransaction { public function getApplicationName() { return 'file'; } public function getApplicationTransactionType() { return PhabricatorFileFilePHIDType::TYPECONST; } public function getApplicationTransactionCommentObject()...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/applications/files/storage/PhabricatorFileExternalRequest.php
src/applications/files/storage/PhabricatorFileExternalRequest.php
<?php final class PhabricatorFileExternalRequest extends PhabricatorFileDAO implements PhabricatorDestructibleInterface { protected $uri; protected $uriIndex; protected $ttl; protected $filePHID; protected $isSuccessful; protected $responseMessage; protected function getConfiguration() { 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/storage/PhabricatorFileStorageBlob.php
src/applications/files/storage/PhabricatorFileStorageBlob.php
<?php /** * Simple blob store DAO for @{class:PhabricatorMySQLFileStorageEngine}. */ final class PhabricatorFileStorageBlob extends PhabricatorFileDAO { protected $data; protected function getConfiguration() { return array( self::CONFIG_BINARY => array( 'data' => true, ), ) + parent...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/applications/files/storage/PhabricatorFileChunk.php
src/applications/files/storage/PhabricatorFileChunk.php
<?php final class PhabricatorFileChunk extends PhabricatorFileDAO implements PhabricatorPolicyInterface, PhabricatorDestructibleInterface { protected $chunkHandle; protected $byteStart; protected $byteEnd; protected $dataFilePHID; private $dataFile = self::ATTACHABLE; protected function getCon...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/applications/files/storage/PhabricatorFileDAO.php
src/applications/files/storage/PhabricatorFileDAO.php
<?php abstract class PhabricatorFileDAO extends PhabricatorLiskDAO { public function getApplicationName() { return '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/storage/PhabricatorTransformedFile.php
src/applications/files/storage/PhabricatorTransformedFile.php
<?php final class PhabricatorTransformedFile extends PhabricatorFileDAO { protected $originalPHID; protected $transform; protected $transformedPHID; protected function getConfiguration() { return array( self::CONFIG_COLUMN_SCHEMA => array( 'transform' => 'text128', ), self::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/storage/PhabricatorFile.php
src/applications/files/storage/PhabricatorFile.php
<?php /** * Parameters * ========== * * When creating a new file using a method like @{method:newFromFileData}, these * parameters are supported: * * | name | Human readable filename. * | authorPHID | User PHID of uploader. * | ttl.absolute | Temporary file lifetime as an epoch timestamp. * | ttl.rel...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
true
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/applications/files/storage/PhabricatorFileTransactionComment.php
src/applications/files/storage/PhabricatorFileTransactionComment.php
<?php final class PhabricatorFileTransactionComment extends PhabricatorApplicationTransactionComment { public function getApplicationTransactionObject() { return new PhabricatorFileTransaction(); } }
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/applications/files/storage/PhabricatorFileSchemaSpec.php
src/applications/files/storage/PhabricatorFileSchemaSpec.php
<?php final class PhabricatorFileSchemaSpec extends PhabricatorConfigSchemaSpec { public function buildSchemata() { $this->buildEdgeSchemata(new PhabricatorFile()); } }
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/applications/files/storage/PhabricatorFileNameNgrams.php
src/applications/files/storage/PhabricatorFileNameNgrams.php
<?php final class PhabricatorFileNameNgrams extends PhabricatorSearchNgrams { public function getNgramKey() { return 'filename'; } public function getColumnName() { return 'name'; } public function getApplicationName() { return '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/storage/PhabricatorFileAttachment.php
src/applications/files/storage/PhabricatorFileAttachment.php
<?php final class PhabricatorFileAttachment extends PhabricatorFileDAO implements PhabricatorPolicyInterface, PhabricatorExtendedPolicyInterface { protected $objectPHID; protected $filePHID; protected $attacherPHID; protected $attachmentMode; private $object = self::ATTACHABLE; private $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/storage/__tests__/PhabricatorFileTestCase.php
src/applications/files/storage/__tests__/PhabricatorFileTestCase.php
<?php final class PhabricatorFileTestCase extends PhabricatorTestCase { protected function getPhabricatorTestCaseConfiguration() { return array( self::PHABRICATOR_TESTCONFIG_BUILD_STORAGE_FIXTURES => true, ); } public function testFileDirectScramble() { // Changes to a file's view policy shou...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/applications/files/management/PhabricatorFilesManagementCycleWorkflow.php
src/applications/files/management/PhabricatorFilesManagementCycleWorkflow.php
<?php final class PhabricatorFilesManagementCycleWorkflow extends PhabricatorFilesManagementWorkflow { protected function didConstruct() { $arguments = $this->newIteratorArguments(); $arguments[] = array( 'name' => 'key', 'param' => 'keyname', 'help' => pht('Select a specific storage key...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/applications/files/management/PhabricatorFilesManagementIntegrityWorkflow.php
src/applications/files/management/PhabricatorFilesManagementIntegrityWorkflow.php
<?php final class PhabricatorFilesManagementIntegrityWorkflow extends PhabricatorFilesManagementWorkflow { protected function didConstruct() { $arguments = $this->newIteratorArguments(); $arguments[] = array( 'name' => 'strip', 'help' => pht( 'DANGEROUS. Strip integrity hashes from fi...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/applications/files/management/PhabricatorFilesManagementCompactWorkflow.php
src/applications/files/management/PhabricatorFilesManagementCompactWorkflow.php
<?php final class PhabricatorFilesManagementCompactWorkflow extends PhabricatorFilesManagementWorkflow { protected function didConstruct() { $arguments = $this->newIteratorArguments(); $arguments[] = array( 'name' => 'dry-run', 'help' => pht('Show what would be compacted.'), ); $this ...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/applications/files/management/PhabricatorFilesManagementMigrateWorkflow.php
src/applications/files/management/PhabricatorFilesManagementMigrateWorkflow.php
<?php final class PhabricatorFilesManagementMigrateWorkflow extends PhabricatorFilesManagementWorkflow { protected function didConstruct() { $arguments = $this->newIteratorArguments(); $arguments[] = array( 'name' => 'engine', 'param' => 'storage-engine', 'help' => pht('Migrate to the n...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/applications/files/management/PhabricatorFilesManagementGenerateKeyWorkflow.php
src/applications/files/management/PhabricatorFilesManagementGenerateKeyWorkflow.php
<?php final class PhabricatorFilesManagementGenerateKeyWorkflow extends PhabricatorFilesManagementWorkflow { protected function didConstruct() { $this ->setName('generate-key') ->setSynopsis( pht('Generate an encryption key.')) ->setArguments( array( array( ...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/applications/files/management/PhabricatorFilesManagementRebuildWorkflow.php
src/applications/files/management/PhabricatorFilesManagementRebuildWorkflow.php
<?php final class PhabricatorFilesManagementRebuildWorkflow extends PhabricatorFilesManagementWorkflow { protected function didConstruct() { $arguments = $this->newIteratorArguments(); $arguments[] = array( 'name' => 'dry-run', 'help' => pht('Show what would be updated.'), ); $argume...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/applications/files/management/PhabricatorFilesManagementCatWorkflow.php
src/applications/files/management/PhabricatorFilesManagementCatWorkflow.php
<?php final class PhabricatorFilesManagementCatWorkflow extends PhabricatorFilesManagementWorkflow { protected function didConstruct() { $this ->setName('cat') ->setSynopsis(pht('Print the contents of a file.')) ->setArguments( array( array( 'name' => 'begin', ...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/applications/files/management/PhabricatorFilesManagementEncodeWorkflow.php
src/applications/files/management/PhabricatorFilesManagementEncodeWorkflow.php
<?php final class PhabricatorFilesManagementEncodeWorkflow extends PhabricatorFilesManagementWorkflow { protected function didConstruct() { $arguments = $this->newIteratorArguments(); $arguments[] = array( 'name' => 'as', 'param' => 'format', 'help' => pht('Select the storage format to ...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/applications/files/management/PhabricatorFilesManagementEnginesWorkflow.php
src/applications/files/management/PhabricatorFilesManagementEnginesWorkflow.php
<?php final class PhabricatorFilesManagementEnginesWorkflow extends PhabricatorFilesManagementWorkflow { protected function didConstruct() { $this ->setName('engines') ->setSynopsis(pht('List available storage engines.')) ->setArguments(array()); } public function execute(PhutilArgument...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/applications/files/management/PhabricatorFilesManagementWorkflow.php
src/applications/files/management/PhabricatorFilesManagementWorkflow.php
<?php abstract class PhabricatorFilesManagementWorkflow extends PhabricatorManagementWorkflow { protected function newIteratorArguments() { return array( array( 'name' => 'all', 'help' => pht('Operate on all files.'), ), array( 'name' => 'names', 'wildcard' =>...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/applications/files/worker/FileDeletionWorker.php
src/applications/files/worker/FileDeletionWorker.php
<?php final class FileDeletionWorker extends PhabricatorWorker { private function loadFile() { $phid = idx($this->getTaskData(), 'objectPHID'); if (!$phid) { throw new PhabricatorWorkerPermanentFailureException( pht('No "%s" in task data.', 'objectPHID')); } $file = id(new Phabricator...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/applications/files/query/PhabricatorFileQuery.php
src/applications/files/query/PhabricatorFileQuery.php
<?php /** * @extends PhabricatorCursorPagedPolicyAwareQuery<PhabricatorFile> */ final class PhabricatorFileQuery extends PhabricatorCursorPagedPolicyAwareQuery { private $ids; private $phids; private $authorPHIDs; private $explicitUploads; private $transforms; private $dateCreatedAfter; private $dat...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/applications/files/query/PhabricatorFileTransactionQuery.php
src/applications/files/query/PhabricatorFileTransactionQuery.php
<?php final class PhabricatorFileTransactionQuery extends PhabricatorApplicationTransactionQuery { public function getTemplateApplicationTransaction() { return new PhabricatorFileTransaction(); } public function getQueryApplicationClass() { return PhabricatorFilesApplication::class; } }
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/applications/files/query/PhabricatorFileChunkQuery.php
src/applications/files/query/PhabricatorFileChunkQuery.php
<?php /** * @extends PhabricatorCursorPagedPolicyAwareQuery<PhabricatorFileChunk> */ final class PhabricatorFileChunkQuery extends PhabricatorCursorPagedPolicyAwareQuery { private $chunkHandles; private $rangeStart; private $rangeEnd; private $isComplete; private $needDataFiles; public function withC...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/applications/files/query/PhabricatorFileBundleLoader.php
src/applications/files/query/PhabricatorFileBundleLoader.php
<?php /** * Callback provider for loading @{class@arcanist:ArcanistBundle} file data * stored in the Files application. */ final class PhabricatorFileBundleLoader extends Phobject { private $viewer; public function setViewer(PhabricatorUser $viewer) { $this->viewer = $viewer; return $this; } publ...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/applications/files/query/PhabricatorFileSearchEngine.php
src/applications/files/query/PhabricatorFileSearchEngine.php
<?php final class PhabricatorFileSearchEngine extends PhabricatorApplicationSearchEngine { public function getResultTypeDescription() { return pht('Files'); } public function getApplicationClassName() { return PhabricatorFilesApplication::class; } public function canUseInPanelContext() { ret...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/applications/files/query/PhabricatorFileAttachmentQuery.php
src/applications/files/query/PhabricatorFileAttachmentQuery.php
<?php /** * @extends PhabricatorCursorPagedPolicyAwareQuery<PhabricatorFileAttachment> */ final class PhabricatorFileAttachmentQuery extends PhabricatorCursorPagedPolicyAwareQuery { private $objectPHIDs; private $objectPHIDPrefix; private $filePHIDs; private $needFiles; private $visibleFiles; private ...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/applications/files/favicon/PhabricatorFaviconRefQuery.php
src/applications/files/favicon/PhabricatorFaviconRefQuery.php
<?php final class PhabricatorFaviconRefQuery extends Phobject { private $refs; /** * @param array<PhabricatorFaviconRef> $refs */ public function withRefs(array $refs) { assert_instances_of($refs, PhabricatorFaviconRef::class); $this->refs = $refs; return $this; } public function execute...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/applications/files/favicon/PhabricatorFaviconRef.php
src/applications/files/favicon/PhabricatorFaviconRef.php
<?php final class PhabricatorFaviconRef extends Phobject { private $viewer; private $width; private $height; private $emblems; private $uri; private $cacheKey; public function __construct() { $this->emblems = array(null, null, null, null); } public function setViewer(PhabricatorUser $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/mail/FileCreateMailReceiver.php
src/applications/files/mail/FileCreateMailReceiver.php
<?php final class FileCreateMailReceiver extends PhabricatorApplicationMailReceiver { protected function newApplication() { return new PhabricatorFilesApplication(); } protected function processReceivedMail( PhabricatorMetaMTAReceivedMail $mail, PhutilEmailAddress $target) { $author = $this->...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/applications/files/mail/FileMailReceiver.php
src/applications/files/mail/FileMailReceiver.php
<?php final class FileMailReceiver extends PhabricatorObjectMailReceiver { public function isEnabled() { return PhabricatorApplication::isClassInstalled( PhabricatorFilesApplication::class); } protected function getObjectPattern() { return 'F[1-9]\d*'; } protected function loadObject($patter...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/applications/files/mail/FileReplyHandler.php
src/applications/files/mail/FileReplyHandler.php
<?php final class FileReplyHandler extends PhabricatorApplicationTransactionReplyHandler { public function validateMailReceiver($mail_receiver) { if (!($mail_receiver instanceof PhabricatorFile)) { throw new Exception(pht('Mail receiver is not a %s.', 'PhabricatorFile')); } } 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/files/keyring/PhabricatorKeyringConfigOptionType.php
src/applications/files/keyring/PhabricatorKeyringConfigOptionType.php
<?php final class PhabricatorKeyringConfigOptionType extends PhabricatorConfigJSONOptionType { public function validateOption(PhabricatorConfigOption $option, $value) { if (!is_array($value)) { throw new Exception( pht( 'Keyring configuration is not valid: value must be a '. ...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/applications/files/keyring/PhabricatorKeyring.php
src/applications/files/keyring/PhabricatorKeyring.php
<?php final class PhabricatorKeyring extends Phobject { private static $hasReadConfiguration; private static $keyRing = array(); public static function addKey($spec) { self::$keyRing[$spec['name']] = $spec; } public static function getKey($name, $type) { self::readConfiguration(); if (empty(s...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/applications/files/action/PhabricatorFilesOutboundRequestAction.php
src/applications/files/action/PhabricatorFilesOutboundRequestAction.php
<?php final class PhabricatorFilesOutboundRequestAction extends PhabricatorSystemAction { const TYPECONST = 'files.outbound'; public function getScoreThreshold() { return 60 / phutil_units('1 hour in seconds'); } public function getLimitExplanation() { return pht( 'You have initiated too man...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/applications/files/editor/PhabricatorFileEditor.php
src/applications/files/editor/PhabricatorFileEditor.php
<?php final class PhabricatorFileEditor extends PhabricatorApplicationTransactionEditor { public function getEditorApplicationClass() { return PhabricatorFilesApplication::class; } public function getEditorObjectsDescription() { return pht('Files'); } public function getTransactionTypes() { ...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/applications/files/editor/PhabricatorFileEditEngine.php
src/applications/files/editor/PhabricatorFileEditEngine.php
<?php final class PhabricatorFileEditEngine extends PhabricatorEditEngine { const ENGINECONST = 'files.file'; public function getEngineName() { return pht('Files'); } protected function supportsEditEngineConfiguration() { return false; } protected function getCreateNewObjectPolicy() { // ...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/applications/files/xaction/PhabricatorFileDeleteTransaction.php
src/applications/files/xaction/PhabricatorFileDeleteTransaction.php
<?php final class PhabricatorFileDeleteTransaction extends PhabricatorFileTransactionType { const TRANSACTIONTYPE = 'file:delete'; public function generateOldValue($object) { return PhabricatorFile::STATUS_ACTIVE; } public function applyInternalEffects($object, $value) { $file = $object; // Ma...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/applications/files/xaction/PhabricatorFileAltTextTransaction.php
src/applications/files/xaction/PhabricatorFileAltTextTransaction.php
<?php final class PhabricatorFileAltTextTransaction extends PhabricatorFileTransactionType { const TRANSACTIONTYPE = 'file:alt'; public function generateOldValue($object) { return $object->getCustomAltText(); } public function generateNewValue($object, $value) { $value = phutil_string_cast($value)...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/applications/files/xaction/PhabricatorFileTransactionType.php
src/applications/files/xaction/PhabricatorFileTransactionType.php
<?php abstract class PhabricatorFileTransactionType 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/files/xaction/PhabricatorFileNameTransaction.php
src/applications/files/xaction/PhabricatorFileNameTransaction.php
<?php final class PhabricatorFileNameTransaction extends PhabricatorFileTransactionType { const TRANSACTIONTYPE = 'file:name'; public function generateOldValue($object) { return $object->getName(); } public function applyInternalEffects($object, $value) { $object->setName($value); } public fu...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/applications/files/exception/PhabricatorFileIntegrityException.php
src/applications/files/exception/PhabricatorFileIntegrityException.php
<?php final class PhabricatorFileIntegrityException 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/exception/PhabricatorFileUploadException.php
src/applications/files/exception/PhabricatorFileUploadException.php
<?php final class PhabricatorFileUploadException extends Exception { public function __construct($code) { $map = array( UPLOAD_ERR_INI_SIZE => pht( "Uploaded file is too large: current limit is %s. To adjust ". "this limit change '%s' in php.ini.", ini_get('upload_max_filesize'), ...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/applications/files/exception/PhabricatorFileStorageConfigurationException.php
src/applications/files/exception/PhabricatorFileStorageConfigurationException.php
<?php /** * Thrown by storage engines to indicate an configuration error which should * abort the storage attempt, as opposed to a transient storage error which * should be retried on other engines. */ final class PhabricatorFileStorageConfigurationException 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/builtin/PhabricatorFilesComposeAvatarBuiltinFile.php
src/applications/files/builtin/PhabricatorFilesComposeAvatarBuiltinFile.php
<?php final class PhabricatorFilesComposeAvatarBuiltinFile extends PhabricatorFilesBuiltinFile { private $icon; private $color; private $border; private $maps = array(); const VERSION = 'v1'; public function updateUser(PhabricatorUser $user) { $username = $user->getUsername(); $image_map = $...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/applications/files/builtin/PhabricatorFilesComposeIconBuiltinFile.php
src/applications/files/builtin/PhabricatorFilesComposeIconBuiltinFile.php
<?php final class PhabricatorFilesComposeIconBuiltinFile extends PhabricatorFilesBuiltinFile { private $icon; private $color; public function setIcon($icon) { $this->icon = $icon; return $this; } public function getIcon() { return $this->icon; } public function setColor($color) { $t...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/applications/files/builtin/PhabricatorFilesOnDiskBuiltinFile.php
src/applications/files/builtin/PhabricatorFilesOnDiskBuiltinFile.php
<?php final class PhabricatorFilesOnDiskBuiltinFile extends PhabricatorFilesBuiltinFile { private $name; public function setName($name) { $this->name = $name; return $this; } public function getName() { if ($this->name === null) { throw new PhutilInvalidStateException('setName'); } ...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/applications/files/builtin/PhabricatorFilesBuiltinFile.php
src/applications/files/builtin/PhabricatorFilesBuiltinFile.php
<?php abstract class PhabricatorFilesBuiltinFile extends Phobject { abstract public function getBuiltinFileKey(); abstract public function getBuiltinDisplayName(); abstract public function loadBuiltinFileData(); }
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/applications/files/iconset/PhabricatorIconSet.php
src/applications/files/iconset/PhabricatorIconSet.php
<?php abstract class PhabricatorIconSet extends Phobject { abstract protected function newIcons(); final public function getIconSetKey() { return $this->getPhobjectClassConstant('ICONSETKEY'); } public function getChooseButtonText() { return pht('Choose Icon...'); } public function getSelectI...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/applications/files/iconset/PhabricatorIconSetIcon.php
src/applications/files/iconset/PhabricatorIconSetIcon.php
<?php final class PhabricatorIconSetIcon extends Phobject { private $key; private $icon; private $label; private $isDisabled; public function setKey($key) { $this->key = $key; return $this; } public function getKey() { return $this->key; } public function setIcon($icon) { $this-...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/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
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/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
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/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
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/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
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/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 File to transform. * @return li...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/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
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/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
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/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
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/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
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/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
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/applications/files/uploadsource/PhabricatorFileUploadSourceByteLimitException.php
src/applications/files/uploadsource/PhabricatorFileUploadSourceByteLimitException.php
<?php final class PhabricatorFileUploadSourceByteLimitException 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/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
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/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
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/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
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/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
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/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
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/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
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/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 PhabricatorFilesAp...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/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
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/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
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false