repo
stringlengths
7
63
file_url
stringlengths
81
284
file_path
stringlengths
5
200
content
stringlengths
0
32.8k
language
stringclasses
1 value
license
stringclasses
7 values
commit_sha
stringlengths
40
40
retrieved_at
stringdate
2026-01-04 15:02:33
2026-01-05 05:24:06
truncated
bool
2 classes
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/infrastructure/storage/connection/AphrontIsolatedDatabaseConnection.php
src/infrastructure/storage/connection/AphrontIsolatedDatabaseConnection.php
<?php final class AphrontIsolatedDatabaseConnection extends AphrontDatabaseConnection { private $configuration; private static $nextInsertID; private $insertID; private $transcript = array(); private $allResults; private $affectedRows; public function __construct(array $configuration) { $this->...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/infrastructure/storage/connection/AphrontDatabaseConnection.php
src/infrastructure/storage/connection/AphrontDatabaseConnection.php
<?php /** * @task xaction Transaction Management */ abstract class AphrontDatabaseConnection extends Phobject implements PhutilQsprintfInterface { private $transactionState; private $readOnly; private $queryTimeout; private $locks = array(); private $lastActiveEpoch; private $persistent; abstrac...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/infrastructure/storage/connection/AphrontDatabaseTransactionState.php
src/infrastructure/storage/connection/AphrontDatabaseTransactionState.php
<?php /** * Represents current transaction state of a connection. */ final class AphrontDatabaseTransactionState extends Phobject { private $depth = 0; private $readLockLevel = 0; private $writeLockLevel = 0; public function getDepth() { return $this->depth; } public function increase...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/infrastructure/storage/connection/mysql/AphrontBaseMySQLDatabaseConnection.php
src/infrastructure/storage/connection/mysql/AphrontBaseMySQLDatabaseConnection.php
<?php abstract class AphrontBaseMySQLDatabaseConnection extends AphrontDatabaseConnection { private $configuration; private $connection; private $connectionPool = array(); private $lastResult; private $nextError; const CALLERROR_QUERY = 777777; const CALLERROR_CONNECT = 777778; abstract protected...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/infrastructure/storage/connection/mysql/AphrontMySQLiDatabaseConnection.php
src/infrastructure/storage/connection/mysql/AphrontMySQLiDatabaseConnection.php
<?php /** * @phutil-external-symbol class mysqli */ final class AphrontMySQLiDatabaseConnection extends AphrontBaseMySQLDatabaseConnection { private $connectionOpen = false; public function escapeUTF8String($string) { $this->validateUTF8String($string); return $this->escapeBinaryString($string); } ...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/infrastructure/storage/connection/mysql/AphrontMySQLDatabaseConnection.php
src/infrastructure/storage/connection/mysql/AphrontMySQLDatabaseConnection.php
<?php final class AphrontMySQLDatabaseConnection extends AphrontBaseMySQLDatabaseConnection { public function escapeUTF8String($string) { $this->validateUTF8String($string); return $this->escapeBinaryString($string); } public function escapeBinaryString($string) { return mysql_real_escape_string(...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/infrastructure/storage/__tests__/AphrontIsolatedDatabaseConnectionTestCase.php
src/infrastructure/storage/__tests__/AphrontIsolatedDatabaseConnectionTestCase.php
<?php final class AphrontIsolatedDatabaseConnectionTestCase extends PhabricatorTestCase { protected function getPhabricatorTestCaseConfiguration() { return array( // We disable this here because this test is unique (it is testing that // isolation actually occurs) and must establish a live connect...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/infrastructure/storage/__tests__/QueryFormattingTestCase.php
src/infrastructure/storage/__tests__/QueryFormattingTestCase.php
<?php final class QueryFormattingTestCase extends PhabricatorTestCase { public function testQueryFormatting() { $conn = id(new PhabricatorUser())->establishConnection('r'); $this->assertEqual( 'NULL', (string)qsprintf($conn, '%nd', null)); $this->assertEqual( '0', (string)qspri...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/infrastructure/storage/__tests__/AphrontMySQLDatabaseConnectionTestCase.php
src/infrastructure/storage/__tests__/AphrontMySQLDatabaseConnectionTestCase.php
<?php final class AphrontMySQLDatabaseConnectionTestCase extends PhabricatorTestCase { protected function getPhabricatorTestCaseConfiguration() { return array( // We disable this here because we're testing live MySQL connections. self::PHABRICATOR_TESTCONFIG_ISOLATE_LISK => false, ); } pu...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/infrastructure/storage/future/QueryFuture.php
src/infrastructure/storage/future/QueryFuture.php
<?php /** * This class provides several approaches for querying data from the database: * * # Async queries: Used under MySQLi with MySQLnd. * # Parallel queries: Used under HPHP. * # Multi queries: Used under MySQLi or HPHP. * # Single queries: Used under MySQL. * * The class automatically decides whi...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/infrastructure/storage/schema/PhabricatorStorageSchemaSpec.php
src/infrastructure/storage/schema/PhabricatorStorageSchemaSpec.php
<?php final class PhabricatorStorageSchemaSpec extends PhabricatorConfigSchemaSpec { public function buildSchemata() { $this->buildRawSchema( 'meta_data', 'patch_status', array( 'patch' => 'text128', 'applied' => 'uint32', 'duration' => 'uint64?', ), array...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/infrastructure/management/PhabricatorManagementWorkflow.php
src/infrastructure/management/PhabricatorManagementWorkflow.php
<?php abstract class PhabricatorManagementWorkflow extends PhutilArgumentWorkflow { public function isExecutable() { return true; } public function getViewer() { // Some day, we might provide a more general viewer mechanism to scripts. // For now, workflows can call this method for convenience and ...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/infrastructure/util/PhabricatorSlug.php
src/infrastructure/util/PhabricatorSlug.php
<?php final class PhabricatorSlug extends Phobject { public static function normalizeProjectSlug($slug) { $slug = str_replace('/', ' ', $slug); $slug = self::normalize($slug, $hashtag = true); return rtrim($slug, '/'); } public static function isValidProjectSlug($slug) { $slug = self::normalize...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/infrastructure/util/PhabricatorSSHKeyGenerator.php
src/infrastructure/util/PhabricatorSSHKeyGenerator.php
<?php final class PhabricatorSSHKeyGenerator extends Phobject { public static function assertCanGenerateKeypair() { $binary = 'ssh-keygen'; if (!Filesystem::resolveBinary($binary)) { throw new Exception( pht( 'Can not generate keys: unable to find "%s" in PATH!', $binary));...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/infrastructure/util/PhabricatorGlobalLock.php
src/infrastructure/util/PhabricatorGlobalLock.php
<?php /** * Global, MySQL-backed lock. This is a high-reliability, low-performance * global lock. * * The lock is maintained by using GET_LOCK() in MySQL, and automatically * released when the connection terminates. Thus, this lock can safely be used * to control access to shared resources without implementing a...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/infrastructure/util/PhabricatorHash.php
src/infrastructure/util/PhabricatorHash.php
<?php final class PhabricatorHash extends Phobject { const INDEX_DIGEST_LENGTH = 12; const ANCHOR_DIGEST_LENGTH = 12; /** * Digest a string using HMAC+SHA1. * * Because a SHA1 collision is now known, this method should be considered * weak. Callers should prefer @{method:digestWithNamedKey}. * ...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/infrastructure/util/PhabricatorMetronome.php
src/infrastructure/util/PhabricatorMetronome.php
<?php /** * Tick at a given frequency with a specifiable offset. * * One use case for this is to flatten out load spikes caused by periodic * service calls. Give each host a metronome that ticks at the same frequency, * but with different offsets. Then, have hosts make service calls only after * their metronome ...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/infrastructure/util/password/PhabricatorPasswordHasherUnavailableException.php
src/infrastructure/util/password/PhabricatorPasswordHasherUnavailableException.php
<?php final class PhabricatorPasswordHasherUnavailableException extends Exception {}
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/infrastructure/util/password/PhabricatorPasswordHasher.php
src/infrastructure/util/password/PhabricatorPasswordHasher.php
<?php /** * Provides a mechanism for hashing passwords, like "iterated md5", "bcrypt", * "scrypt", etc. * * Hashers define suitability and strength, and the system automatically * chooses the strongest available hasher and can prompt users to upgrade as * soon as a stronger hasher is available. * * @task hashe...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/infrastructure/util/password/PhabricatorIteratedMD5PasswordHasher.php
src/infrastructure/util/password/PhabricatorIteratedMD5PasswordHasher.php
<?php final class PhabricatorIteratedMD5PasswordHasher extends PhabricatorPasswordHasher { public function getHumanReadableName() { return pht('Iterated MD5'); } public function getHashName() { return 'md5'; } public function getHashLength() { return 32; } public function canHashPasswor...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/infrastructure/util/password/PhabricatorBcryptPasswordHasher.php
src/infrastructure/util/password/PhabricatorBcryptPasswordHasher.php
<?php final class PhabricatorBcryptPasswordHasher extends PhabricatorPasswordHasher { public function getHumanReadableName() { return pht('bcrypt'); } public function getHashName() { return 'bcrypt'; } public function getHashLength() { return 60; } public function canHashPasswords() { ...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/infrastructure/util/password/__tests__/PhabricatorIteratedMD5PasswordHasherTestCase.php
src/infrastructure/util/password/__tests__/PhabricatorIteratedMD5PasswordHasherTestCase.php
<?php final class PhabricatorIteratedMD5PasswordHasherTestCase extends PhabricatorTestCase { public function testHasher() { $hasher = new PhabricatorIteratedMD5PasswordHasher(); $this->assertEqual( 'md5:4824a35493d8b5dceab36f017d68425f', $hasher->getPasswordHashForStorage( new PhutilO...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/infrastructure/util/password/__tests__/PhabricatorPasswordHasherTestCase.php
src/infrastructure/util/password/__tests__/PhabricatorPasswordHasherTestCase.php
<?php final class PhabricatorPasswordHasherTestCase extends PhabricatorTestCase { public function testHasherSyntax() { $caught = null; try { PhabricatorPasswordHasher::getHasherForHash( new PhutilOpaqueEnvelope('xxx')); } catch (Exception $ex) { $caught = $ex; } $this->asser...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/infrastructure/util/__tests__/PhabricatorGlobalLockTestCase.php
src/infrastructure/util/__tests__/PhabricatorGlobalLockTestCase.php
<?php final class PhabricatorGlobalLockTestCase extends PhabricatorTestCase { protected function getPhabricatorTestCaseConfiguration() { return array( self::PHABRICATOR_TESTCONFIG_BUILD_STORAGE_FIXTURES => true, ); } public function testConnectionPoolWithDefaultConnection() { PhabricatorGlo...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/infrastructure/util/__tests__/PhabricatorHashTestCase.php
src/infrastructure/util/__tests__/PhabricatorHashTestCase.php
<?php final class PhabricatorHashTestCase extends PhabricatorTestCase { public function testHashForIndex() { $map = array( 'dog' => 'Aliif7Qjd5ct', 'cat' => 'toudDsue3Uv8', 'rat' => 'RswaKgTjqOuj', 'bat' => 'rAkJKyX4YdYm', ); foreach ($map as $input => $expect) { $this->as...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/infrastructure/util/__tests__/PhabricatorMetronomeTestCase.php
src/infrastructure/util/__tests__/PhabricatorMetronomeTestCase.php
<?php final class PhabricatorMetronomeTestCase extends PhabricatorTestCase { public function testMetronomeOffsets() { $cases = array( 'web001.example.net' => 44, 'web002.example.net' => 36, 'web003.example.net' => 25, 'web004.example.net' => 25, 'web005.example.net' => 16, ...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/infrastructure/util/__tests__/PhabricatorHMACTestCase.php
src/infrastructure/util/__tests__/PhabricatorHMACTestCase.php
<?php final class PhabricatorHMACTestCase extends PhabricatorTestCase { protected function getPhabricatorTestCaseConfiguration() { return array( self::PHABRICATOR_TESTCONFIG_BUILD_STORAGE_FIXTURES => true, ); } public function testHMACKeyGeneration() { $input = 'quack'; $hash_1 = Phabric...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/infrastructure/util/__tests__/PhabricatorSlugTestCase.php
src/infrastructure/util/__tests__/PhabricatorSlugTestCase.php
<?php final class PhabricatorSlugTestCase extends PhabricatorTestCase { public function testSlugNormalization() { $slugs = array( '' => '/', '/' => '/', '//' => '/', '&&&' => '_/', '/derp/' => 'derp/', '...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/infrastructure/util/__tests__/PhabricatorPreambleTestCase.php
src/infrastructure/util/__tests__/PhabricatorPreambleTestCase.php
<?php final class PhabricatorPreambleTestCase extends PhabricatorTestCase { /** * @phutil-external-symbol function preamble_get_x_forwarded_for_address */ public function testXForwardedForLayers() { $tests = array( // This is normal behavior with one load balancer. array( 'header' ...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/infrastructure/lint/linter/PhabricatorJavelinLinter.php
src/infrastructure/lint/linter/PhabricatorJavelinLinter.php
<?php final class PhabricatorJavelinLinter extends ArcanistLinter { private $symbols = array(); private $symbolsBinary; private $haveWarnedAboutBinary; const LINT_PRIVATE_ACCESS = 1; const LINT_MISSING_DEPENDENCY = 2; const LINT_UNNECESSARY_DEPENDENCY = 3; const LINT_UNKNOWN_DEPENDENCY = 4; const LI...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/infrastructure/env/PhabricatorConfigDefaultSource.php
src/infrastructure/env/PhabricatorConfigDefaultSource.php
<?php /** * Configuration source which reads from defaults defined in the authoritative * configuration definitions. */ final class PhabricatorConfigDefaultSource extends PhabricatorConfigProxySource { public function __construct() { $options = PhabricatorApplicationConfigOptions::loadAllOptions(); $op...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/infrastructure/env/PhabricatorConfigFileSource.php
src/infrastructure/env/PhabricatorConfigFileSource.php
<?php /** * Configuration source which reads from a configuration file on disk (a * PHP file in the `conf/` directory). */ final class PhabricatorConfigFileSource extends PhabricatorConfigProxySource { /** * @phutil-external-symbol function phabricator_read_config_file */ public function __construct($con...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/infrastructure/env/PhabricatorConfigLocalSource.php
src/infrastructure/env/PhabricatorConfigLocalSource.php
<?php final class PhabricatorConfigLocalSource extends PhabricatorConfigProxySource { public function __construct() { $config = $this->loadConfig(); $this->setSource(new PhabricatorConfigDictionarySource($config)); } public function setKeys(array $keys) { $result = parent::setKeys($keys); $this...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/infrastructure/env/PhabricatorScopedEnv.php
src/infrastructure/env/PhabricatorScopedEnv.php
<?php /** * Scope guard to hold a temporary environment. See @{class:PhabricatorEnv} for * instructions on use. * * @task internal Internals * @task override Overriding Environment Configuration */ final class PhabricatorScopedEnv extends Phobject { private $key; private $isPopped = false; /* -( Overridin...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/infrastructure/env/PhabricatorConfigProxySource.php
src/infrastructure/env/PhabricatorConfigProxySource.php
<?php /** * Configuration source which proxies some other configuration source. */ abstract class PhabricatorConfigProxySource extends PhabricatorConfigSource { private $source; final protected function getSource() { if (!$this->source) { throw new Exception(pht('No configuration source set!')); ...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/infrastructure/env/PhabricatorEnv.php
src/infrastructure/env/PhabricatorEnv.php
<?php /** * Manages the execution environment configuration, exposing APIs to read * configuration settings and other similar values that are derived directly * from configuration settings. * * * = Reading Configuration = * * The primary role of this class is to provide an API for reading * Phabricator config...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/infrastructure/env/PhabricatorConfigDatabaseSource.php
src/infrastructure/env/PhabricatorConfigDatabaseSource.php
<?php final class PhabricatorConfigDatabaseSource extends PhabricatorConfigProxySource { public function __construct($namespace) { $config = $this->loadConfig($namespace); $this->setSource(new PhabricatorConfigDictionarySource($config)); } public function isWritable() { // While this is writable,...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/infrastructure/env/PhabricatorConfigStackSource.php
src/infrastructure/env/PhabricatorConfigStackSource.php
<?php /** * Configuration source which reads from a stack of other configuration * sources. * * This source is writable if any source in the stack is writable. Writes happen * to the first writable source only. */ final class PhabricatorConfigStackSource extends PhabricatorConfigSource { private $stack = ar...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/infrastructure/env/PhabricatorConfigSource.php
src/infrastructure/env/PhabricatorConfigSource.php
<?php abstract class PhabricatorConfigSource extends Phobject { private $name; public function setName($name) { $this->name = $name; return $this; } public function getName() { return $this->name; } abstract public function getKeys(array $keys); abstract public function getAllKeys(); p...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/infrastructure/env/PhabricatorConfigSiteSource.php
src/infrastructure/env/PhabricatorConfigSiteSource.php
<?php /** * Optional configuration source which loads between local sources and the * database source. * * Subclasses of this source can read external configuration sources (like a * remote server). */ abstract class PhabricatorConfigSiteSource extends PhabricatorConfigProxySource { public function getPrior...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/infrastructure/env/PhabricatorConfigDictionarySource.php
src/infrastructure/env/PhabricatorConfigDictionarySource.php
<?php final class PhabricatorConfigDictionarySource extends PhabricatorConfigSource { private $dictionary; public function __construct(array $dictionary) { $this->dictionary = $dictionary; } public function getAllKeys() { return $this->dictionary; } public function getKeys(array $keys) { ...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/infrastructure/env/__tests__/PhabricatorEnvTestCase.php
src/infrastructure/env/__tests__/PhabricatorEnvTestCase.php
<?php final class PhabricatorEnvTestCase extends PhabricatorTestCase { public function testLocalURIForLink() { $map = array( '/' => true, '/D123' => true, '/path/to/something/' => true, "/path/to/\nHeader: x" => false, 'http://evil.com/' ...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/infrastructure/query/PhabricatorQuery.php
src/infrastructure/query/PhabricatorQuery.php
<?php /** * @task format Formatting Query Clauses */ abstract class PhabricatorQuery extends Phobject { abstract public function execute(); /* -( Formatting Query Clauses )------------------------------------------- */ /** * @task format */ protected function formatWhereClause( AphrontDatabas...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/infrastructure/query/PhabricatorOffsetPagedQuery.php
src/infrastructure/query/PhabricatorOffsetPagedQuery.php
<?php /** * A query class which uses offset/limit paging. Provides logic and accessors * for offsets and limits. */ abstract class PhabricatorOffsetPagedQuery extends PhabricatorQuery { private $offset; private $limit; final public function setOffset($offset) { $this->offset = $offset; return $this;...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/infrastructure/query/constraint/PhabricatorQueryConstraint.php
src/infrastructure/query/constraint/PhabricatorQueryConstraint.php
<?php final class PhabricatorQueryConstraint extends Phobject { const OPERATOR_AND = 'and'; const OPERATOR_OR = 'or'; const OPERATOR_NOT = 'not'; const OPERATOR_NULL = 'null'; const OPERATOR_ANCESTOR = 'ancestor'; const OPERATOR_EMPTY = 'empty'; const OPERATOR_ONLY = 'only'; const OPERATOR_ANY = 'any'...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/infrastructure/query/exception/PhabricatorEmptyQueryException.php
src/infrastructure/query/exception/PhabricatorEmptyQueryException.php
<?php final class PhabricatorEmptyQueryException extends Exception {}
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/infrastructure/query/exception/PhabricatorInvalidQueryCursorException.php
src/infrastructure/query/exception/PhabricatorInvalidQueryCursorException.php
<?php final class PhabricatorInvalidQueryCursorException extends Exception {}
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/infrastructure/query/order/PhabricatorQueryOrderItem.php
src/infrastructure/query/order/PhabricatorQueryOrderItem.php
<?php /** * Structural class representing one item in an order vector. * * See @{class:PhabricatorQueryOrderVector} for discussion of order vectors. * This represents one item in an order vector, like "id". When combined with * the other items in the vector, a complete ordering (like "name, id") is * described. ...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/infrastructure/query/order/PhabricatorQueryOrderVector.php
src/infrastructure/query/order/PhabricatorQueryOrderVector.php
<?php /** * Structural class representing a column ordering for a query. * * Queries often order results on multiple columns. For example, projects might * be ordered by "name, id". This class wraps a list of column orderings and * makes them easier to manage. * * To construct an order vector, use @{method:newF...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/infrastructure/query/order/__tests__/PhabricatorQueryOrderTestCase.php
src/infrastructure/query/order/__tests__/PhabricatorQueryOrderTestCase.php
<?php final class PhabricatorQueryOrderTestCase extends PhabricatorTestCase { public function testQueryOrderItem() { $item = PhabricatorQueryOrderItem::newFromScalar('id'); $this->assertEqual('id', $item->getOrderKey()); $this->assertEqual(false, $item->getIsReversed()); $item = PhabricatorQueryOrd...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/infrastructure/query/policy/PhabricatorPolicyAwareQuery.php
src/infrastructure/query/policy/PhabricatorPolicyAwareQuery.php
<?php /** * A @{class:PhabricatorQuery} which filters results according to visibility * policies for the querying user. Broadly, this class allows you to implement * a query that returns only objects the user is allowed to see. * * $results = id(new ExampleQuery()) * ->setViewer($user) * ->withConstra...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/infrastructure/query/policy/PhabricatorQueryCursor.php
src/infrastructure/query/policy/PhabricatorQueryCursor.php
<?php final class PhabricatorQueryCursor extends Phobject { private $object; private $rawRow; public function setObject($object) { $this->object = $object; return $this; } public function getObject() { return $this->object; } public function setRawRow(array $raw_row) { $this->rawRow...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/infrastructure/query/policy/PhabricatorCursorPagedPolicyAwareQuery.php
src/infrastructure/query/policy/PhabricatorCursorPagedPolicyAwareQuery.php
<?php /** * A query class which uses cursor-based paging. This paging is much more * performant than offset-based paging in the presence of policy filtering. * * @task cursors Query Cursors * @task clauses Building Query Clauses * @task appsearch Integration with ApplicationSearch * @task customfield Integratio...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
true
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/infrastructure/contentsource/PhabricatorContentSourceView.php
src/infrastructure/contentsource/PhabricatorContentSourceView.php
<?php final class PhabricatorContentSourceView extends AphrontView { private $contentSource; public function setContentSource(PhabricatorContentSource $content_source) { $this->contentSource = $content_source; return $this; } public function getSourceName() { return $this->contentSource->getSour...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/infrastructure/contentsource/PhabricatorConduitContentSource.php
src/infrastructure/contentsource/PhabricatorConduitContentSource.php
<?php final class PhabricatorConduitContentSource extends PhabricatorContentSource { const SOURCECONST = 'conduit'; public function getSourceName() { return pht('Conduit'); } public function getSourceDescription() { return pht('Content from the Conduit API.'); } }
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/infrastructure/contentsource/PhabricatorUnknownContentSource.php
src/infrastructure/contentsource/PhabricatorUnknownContentSource.php
<?php final class PhabricatorUnknownContentSource extends PhabricatorContentSource { const SOURCECONST = 'unknown'; public function getSourceName() { $source = $this->getSource(); if ($source !== null && strlen($source)) { return pht('Unknown ("%s")', $source); } else { return pht('Unkn...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/infrastructure/contentsource/PhabricatorContentSource.php
src/infrastructure/contentsource/PhabricatorContentSource.php
<?php abstract class PhabricatorContentSource extends Phobject { private $source; private $params = array(); abstract public function getSourceName(); abstract public function getSourceDescription(); final public function getSourceTypeConstant() { return $this->getPhobjectClassConstant('SOURCECONST', ...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/infrastructure/contentsource/PhabricatorFaxContentSource.php
src/infrastructure/contentsource/PhabricatorFaxContentSource.php
<?php final class PhabricatorFaxContentSource extends PhabricatorContentSource { const SOURCECONST = 'fax'; public function getSourceName() { return pht('Fax'); } public function getSourceDescription() { return pht('Content received via fax (telefacsimile).'); } }
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/infrastructure/contentsource/PhabricatorLipsumContentSource.php
src/infrastructure/contentsource/PhabricatorLipsumContentSource.php
<?php final class PhabricatorLipsumContentSource extends PhabricatorContentSource { const SOURCECONST = 'lipsum'; public function getSourceName() { return pht('Lipsum'); } public function getSourceDescription() { return pht('Test data created with bin/lipsum.'); } }
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/infrastructure/contentsource/PhabricatorContentSourceModule.php
src/infrastructure/contentsource/PhabricatorContentSourceModule.php
<?php final class PhabricatorContentSourceModule extends PhabricatorConfigModule { public function getModuleKey() { return 'contentsource'; } public function getModuleName() { return pht('Content Sources'); } public function renderModuleStatus(AphrontRequest $request) { $viewer = $request->g...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/infrastructure/contentsource/PhabricatorConsoleContentSource.php
src/infrastructure/contentsource/PhabricatorConsoleContentSource.php
<?php final class PhabricatorConsoleContentSource extends PhabricatorContentSource { const SOURCECONST = 'console'; public function getSourceName() { return pht('Console'); } public function getSourceDescription() { return pht('Content generated by CLI administrative tools.'); } }
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/infrastructure/contentsource/PhabricatorUnitTestContentSource.php
src/infrastructure/contentsource/PhabricatorUnitTestContentSource.php
<?php final class PhabricatorUnitTestContentSource extends PhabricatorContentSource { const SOURCECONST = 'unittest'; public function getSourceName() { return pht('Unit Test'); } public function getSourceDescription() { return pht('Content created by unit tests.'); } }
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/infrastructure/contentsource/PhabricatorOldWorldContentSource.php
src/infrastructure/contentsource/PhabricatorOldWorldContentSource.php
<?php final class PhabricatorOldWorldContentSource extends PhabricatorContentSource { const SOURCECONST = 'legacy'; public function getSourceName() { return pht('Old World'); } public function getSourceDescription() { return pht( 'Content from the distant past, before content sources existed...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/infrastructure/contentsource/PhabricatorWebContentSource.php
src/infrastructure/contentsource/PhabricatorWebContentSource.php
<?php final class PhabricatorWebContentSource extends PhabricatorContentSource { const SOURCECONST = 'web'; public function getSourceName() { return pht('Web'); } public function getSourceDescription() { return pht('Content created from the web UI.'); } }
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/infrastructure/cache/PhutilAPCKeyValueCache.php
src/infrastructure/cache/PhutilAPCKeyValueCache.php
<?php /** * Interface to the APC key-value cache. This is a very high-performance cache * which is local to the current machine. */ final class PhutilAPCKeyValueCache extends PhutilKeyValueCache { /* -( Key-Value Cache Implementation )------------------------------------- */ public function isAvailable() { ...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/infrastructure/cache/PhutilKeyValueCacheProfiler.php
src/infrastructure/cache/PhutilKeyValueCacheProfiler.php
<?php final class PhutilKeyValueCacheProfiler extends PhutilKeyValueCacheProxy { private $profiler; private $name; public function setName($name) { $this->name = $name; return $this; } public function getName() { return $this->name; } /** * Set a profiler for cache operations. * ...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/infrastructure/cache/PhutilKeyValueCacheProxy.php
src/infrastructure/cache/PhutilKeyValueCacheProxy.php
<?php abstract class PhutilKeyValueCacheProxy extends PhutilKeyValueCache { private $proxy; final public function __construct(PhutilKeyValueCache $proxy) { $this->proxy = $proxy; } final protected function getProxy() { return $this->proxy; } public function isAvailable() { return $this->get...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/infrastructure/cache/PhutilMemcacheKeyValueCache.php
src/infrastructure/cache/PhutilMemcacheKeyValueCache.php
<?php /** * @task memcache Managing Memcache */ final class PhutilMemcacheKeyValueCache extends PhutilKeyValueCache { private $servers = array(); private $connections = array(); /* -( Key-Value Cache Implementation )------------------------------------- */ public function isAvailable() { return fun...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/infrastructure/cache/PhutilKeyValueCacheStack.php
src/infrastructure/cache/PhutilKeyValueCacheStack.php
<?php /** * Stacks multiple caches on top of each other, with readthrough semantics: * * - For reads, we try each cache in order until we find all the keys. * - For writes, we set the keys in each cache. * * @task config Configuring the Stack */ final class PhutilKeyValueCacheStack extends PhutilKeyValu...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/infrastructure/cache/PhutilKeyValueCache.php
src/infrastructure/cache/PhutilKeyValueCache.php
<?php /** * Interface to a key-value cache like Memcache or APC. This class provides a * uniform interface to multiple different key-value caches and integration * with PhutilServiceProfiler. * * @task kvimpl Key-Value Cache Implementation */ abstract class PhutilKeyValueCache extends Phobject { /* -( Key...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/infrastructure/cache/PhutilKeyValueCacheNamespace.php
src/infrastructure/cache/PhutilKeyValueCacheNamespace.php
<?php final class PhutilKeyValueCacheNamespace extends PhutilKeyValueCacheProxy { private $namespace; public function setNamespace($namespace) { if (strpos($namespace, ':') !== false) { throw new Exception(pht("Namespace can't contain colons.")); } $this->namespace = $namespace.':'; retur...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/infrastructure/cache/PhutilDirectoryKeyValueCache.php
src/infrastructure/cache/PhutilDirectoryKeyValueCache.php
<?php /** * Interface to a directory-based disk cache. Storage persists across requests. * * This cache is very very slow, and most suitable for command line scripts * which need to build large caches derived from sources like working copies * (for example, Diviner). This cache performs better for large amounts o...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/infrastructure/cache/PhutilInRequestKeyValueCache.php
src/infrastructure/cache/PhutilInRequestKeyValueCache.php
<?php /** * Key-value cache implemented in the current request. All storage is local * to this request (i.e., the current page) and destroyed after the request * exits. This means the first request to this cache for a given key on a page * will ALWAYS miss. * * This cache exists mostly to support unit tests. In ...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/infrastructure/cache/PhutilOnDiskKeyValueCache.php
src/infrastructure/cache/PhutilOnDiskKeyValueCache.php
<?php /** * Interface to a disk cache. Storage persists across requests. * * This cache is very slow compared to caches like APC. It is intended as a * specialized alternative to APC when APC is not available. * * This is a highly specialized cache and not appropriate for use as a * generalized key-value cache ...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/infrastructure/cache/__tests__/PhutilKeyValueCacheTestCase.php
src/infrastructure/cache/__tests__/PhutilKeyValueCacheTestCase.php
<?php final class PhutilKeyValueCacheTestCase extends PhutilTestCase { public function testInRequestCache() { $cache = new PhutilInRequestKeyValueCache(); $this->doCacheTest($cache); $cache->destroyCache(); } public function testInRequestCacheLimit() { $cache = new PhutilInRequestKeyValueCache(...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/infrastructure/customfield/engineextension/PhabricatorCustomFieldEditEngineExtension.php
src/infrastructure/customfield/engineextension/PhabricatorCustomFieldEditEngineExtension.php
<?php final class PhabricatorCustomFieldEditEngineExtension extends PhabricatorEditEngineExtension { const EXTENSIONKEY = 'customfield.fields'; public function getExtensionPriority() { return 5000; } public function isExtensionEnabled() { return true; } public function getExtensionName() { ...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/infrastructure/customfield/engineextension/PhabricatorCustomFieldFulltextEngineExtension.php
src/infrastructure/customfield/engineextension/PhabricatorCustomFieldFulltextEngineExtension.php
<?php final class PhabricatorCustomFieldFulltextEngineExtension extends PhabricatorFulltextEngineExtension { const EXTENSIONKEY = 'customfield.fields'; public function getExtensionName() { return pht('Custom Fields'); } public function shouldEnrichFulltextObject($object) { return ($object instance...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/infrastructure/customfield/engineextension/PhabricatorCustomFieldSearchEngineExtension.php
src/infrastructure/customfield/engineextension/PhabricatorCustomFieldSearchEngineExtension.php
<?php final class PhabricatorCustomFieldSearchEngineExtension extends PhabricatorSearchEngineExtension { const EXTENSIONKEY = 'customfield'; public function isExtensionEnabled() { return true; } public function getExtensionName() { return pht('Support for Custom Fields'); } public function su...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/infrastructure/customfield/storage/PhabricatorCustomFieldIndexStorage.php
src/infrastructure/customfield/storage/PhabricatorCustomFieldIndexStorage.php
<?php abstract class PhabricatorCustomFieldIndexStorage extends PhabricatorLiskDAO { protected $objectPHID; protected $indexKey; protected $indexValue; protected function getConfiguration() { return array( self::CONFIG_TIMESTAMPS => false, ) + parent::getConfiguration(); } abstract public ...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/infrastructure/customfield/storage/PhabricatorCustomFieldStringIndexStorage.php
src/infrastructure/customfield/storage/PhabricatorCustomFieldStringIndexStorage.php
<?php abstract class PhabricatorCustomFieldStringIndexStorage extends PhabricatorCustomFieldIndexStorage { protected function getConfiguration() { return array( self::CONFIG_COLUMN_SCHEMA => array( 'indexKey' => 'bytes12', 'indexValue' => 'sort', ), self::CONFIG_KEY_SCHEMA =>...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/infrastructure/customfield/storage/PhabricatorCustomFieldStorage.php
src/infrastructure/customfield/storage/PhabricatorCustomFieldStorage.php
<?php abstract class PhabricatorCustomFieldStorage extends PhabricatorLiskDAO { protected $objectPHID; protected $fieldIndex; protected $fieldValue; protected function getConfiguration() { return array( self::CONFIG_TIMESTAMPS => false, self::CONFIG_COLUMN_SCHEMA => array( 'fieldInd...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/infrastructure/customfield/storage/PhabricatorCustomFieldNumericIndexStorage.php
src/infrastructure/customfield/storage/PhabricatorCustomFieldNumericIndexStorage.php
<?php abstract class PhabricatorCustomFieldNumericIndexStorage extends PhabricatorCustomFieldIndexStorage { protected function getConfiguration() { return array( self::CONFIG_COLUMN_SCHEMA => array( 'indexKey' => 'bytes12', 'indexValue' => 'sint64', ), self::CONFIG_KEY_SCHEMA...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/infrastructure/customfield/query/PhabricatorCustomFieldStorageQuery.php
src/infrastructure/customfield/query/PhabricatorCustomFieldStorageQuery.php
<?php /** * Load custom field data from storage. * * This query loads the data directly into the field objects and does not * return it to the caller. It can bulk load data for any list of fields, * even if they have different objects or object types. */ final class PhabricatorCustomFieldStorageQuery extends Pho...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/infrastructure/customfield/standard/PhabricatorStandardCustomFieldCredential.php
src/infrastructure/customfield/standard/PhabricatorStandardCustomFieldCredential.php
<?php final class PhabricatorStandardCustomFieldCredential extends PhabricatorStandardCustomField { public function getFieldType() { return 'credential'; } public function buildFieldIndexes() { $indexes = array(); $value = $this->getFieldValue(); if (strlen($value)) { $indexes[] = $thi...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/infrastructure/customfield/standard/PhabricatorStandardCustomFieldUsers.php
src/infrastructure/customfield/standard/PhabricatorStandardCustomFieldUsers.php
<?php final class PhabricatorStandardCustomFieldUsers extends PhabricatorStandardCustomFieldTokenizer { public function getFieldType() { return 'users'; } public function getDatasource() { return new PhabricatorPeopleDatasource(); } protected function getHTTPParameterType() { return new Aphr...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/infrastructure/customfield/standard/PhabricatorStandardCustomFieldPHIDs.php
src/infrastructure/customfield/standard/PhabricatorStandardCustomFieldPHIDs.php
<?php /** * Common code for standard field types which store lists of PHIDs. */ abstract class PhabricatorStandardCustomFieldPHIDs extends PhabricatorStandardCustomField { public function buildFieldIndexes() { $indexes = array(); $value = $this->getFieldValue(); if (is_array($value)) { foreac...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/infrastructure/customfield/standard/PhabricatorStandardCustomFieldInt.php
src/infrastructure/customfield/standard/PhabricatorStandardCustomFieldInt.php
<?php final class PhabricatorStandardCustomFieldInt extends PhabricatorStandardCustomField { public function getFieldType() { return 'int'; } public function buildFieldIndexes() { $indexes = array(); $value = $this->getFieldValue(); if (strlen($value)) { $indexes[] = $this->newNumericI...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/infrastructure/customfield/standard/PhabricatorStandardCustomField.php
src/infrastructure/customfield/standard/PhabricatorStandardCustomField.php
<?php abstract class PhabricatorStandardCustomField extends PhabricatorCustomField { private $rawKey; private $fieldKey; private $fieldName; private $fieldValue; private $fieldDescription; private $fieldConfig; private $applicationField; private $strings = array(); private $caption; private $fie...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/infrastructure/customfield/standard/PhabricatorStandardCustomFieldSelect.php
src/infrastructure/customfield/standard/PhabricatorStandardCustomFieldSelect.php
<?php final class PhabricatorStandardCustomFieldSelect extends PhabricatorStandardCustomField { public function getFieldType() { return 'select'; } public function buildFieldIndexes() { $indexes = array(); $value = $this->getFieldValue(); if (strlen($value)) { $indexes[] = $this->newSt...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/infrastructure/customfield/standard/PhabricatorStandardCustomFieldHeader.php
src/infrastructure/customfield/standard/PhabricatorStandardCustomFieldHeader.php
<?php final class PhabricatorStandardCustomFieldHeader extends PhabricatorStandardCustomField { public function getFieldType() { return 'header'; } public function renderEditControl(array $handles) { $header = phutil_tag( 'div', array( 'class' => 'phabricator-standard-custom-field...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/infrastructure/customfield/standard/PhabricatorStandardCustomFieldLink.php
src/infrastructure/customfield/standard/PhabricatorStandardCustomFieldLink.php
<?php final class PhabricatorStandardCustomFieldLink extends PhabricatorStandardCustomField { public function getFieldType() { return 'link'; } public function buildFieldIndexes() { $indexes = array(); $value = $this->getFieldValue(); if (strlen($value)) { $indexes[] = $this->newString...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/infrastructure/customfield/standard/PhabricatorStandardCustomFieldDatasource.php
src/infrastructure/customfield/standard/PhabricatorStandardCustomFieldDatasource.php
<?php final class PhabricatorStandardCustomFieldDatasource extends PhabricatorStandardCustomFieldTokenizer { public function getFieldType() { return 'datasource'; } public function getDatasource() { $parameters = $this->getFieldConfigValue('datasource.parameters', array()); $class = $this->getFi...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/infrastructure/customfield/standard/PhabricatorStandardCustomFieldBlueprints.php
src/infrastructure/customfield/standard/PhabricatorStandardCustomFieldBlueprints.php
<?php final class PhabricatorStandardCustomFieldBlueprints extends PhabricatorStandardCustomFieldTokenizer { public function getFieldType() { return 'blueprints'; } public function getDatasource() { return new DrydockBlueprintDatasource(); } public function applyApplicationTransactionExternalEff...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/infrastructure/customfield/standard/PhabricatorStandardCustomFieldTokenizer.php
src/infrastructure/customfield/standard/PhabricatorStandardCustomFieldTokenizer.php
<?php abstract class PhabricatorStandardCustomFieldTokenizer extends PhabricatorStandardCustomFieldPHIDs { abstract public function getDatasource(); public function renderEditControl(array $handles) { $value = $this->getFieldValue(); $control = id(new AphrontFormTokenizerControl()) ->setUser($th...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/infrastructure/customfield/standard/PhabricatorStandardCustomFieldDate.php
src/infrastructure/customfield/standard/PhabricatorStandardCustomFieldDate.php
<?php final class PhabricatorStandardCustomFieldDate extends PhabricatorStandardCustomField { public function getFieldType() { return 'date'; } public function buildFieldIndexes() { $indexes = array(); $value = $this->getFieldValue(); if (strlen($value)) { $indexes[] = $this->newNumeri...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/infrastructure/customfield/standard/PhabricatorStandardCustomFieldBool.php
src/infrastructure/customfield/standard/PhabricatorStandardCustomFieldBool.php
<?php final class PhabricatorStandardCustomFieldBool extends PhabricatorStandardCustomField { public function getFieldType() { return 'bool'; } public function buildFieldIndexes() { $indexes = array(); $value = $this->getFieldValue(); if (strlen($value)) { $indexes[] = $this->newNumeri...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/infrastructure/customfield/standard/PhabricatorStandardCustomFieldText.php
src/infrastructure/customfield/standard/PhabricatorStandardCustomFieldText.php
<?php final class PhabricatorStandardCustomFieldText extends PhabricatorStandardCustomField { public function getFieldType() { return 'text'; } public function buildFieldIndexes() { $indexes = array(); $value = $this->getFieldValue(); if (strlen($value)) { $indexes[] = $this->newString...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/infrastructure/customfield/standard/PhabricatorStandardCustomFieldRemarkup.php
src/infrastructure/customfield/standard/PhabricatorStandardCustomFieldRemarkup.php
<?php final class PhabricatorStandardCustomFieldRemarkup extends PhabricatorStandardCustomField { public function getFieldType() { return 'remarkup'; } public function renderEditControl(array $handles) { return id(new PhabricatorRemarkupControl()) ->setUser($this->getViewer()) ->setLabel(...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/infrastructure/customfield/datasource/PhabricatorStandardSelectCustomFieldDatasource.php
src/infrastructure/customfield/datasource/PhabricatorStandardSelectCustomFieldDatasource.php
<?php final class PhabricatorStandardSelectCustomFieldDatasource extends PhabricatorTypeaheadDatasource { public function getBrowseTitle() { return pht('Browse Values'); } public function getPlaceholderText() { return pht('Type a field value...'); } public function getDatasourceApplicationClass(...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/infrastructure/customfield/datasource/PhabricatorCustomFieldApplicationSearchAnyFunctionDatasource.php
src/infrastructure/customfield/datasource/PhabricatorCustomFieldApplicationSearchAnyFunctionDatasource.php
<?php final class PhabricatorCustomFieldApplicationSearchAnyFunctionDatasource extends PhabricatorTypeaheadDatasource { public function getBrowseTitle() { return pht('Browse Any'); } public function getPlaceholderText() { return pht('Type "any()"...'); } public function getDatasourceApplicationC...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false