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/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
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/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
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/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
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/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
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/infrastructure/env/PhabricatorConfigDatabaseSource.php
src/infrastructure/env/PhabricatorConfigDatabaseSource.php
<?php /** * Configuration source which reads from the database. */ final class PhabricatorConfigDatabaseSource extends PhabricatorConfigProxySource { public function __construct($namespace) { $config = $this->loadConfig($namespace); $this->setSource(new PhabricatorConfigDictionarySource($config)); } ...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/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
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/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
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/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
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/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
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/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
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/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
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/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
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/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
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/infrastructure/query/exception/PhabricatorEmptyQueryException.php
src/infrastructure/query/exception/PhabricatorEmptyQueryException.php
<?php final class PhabricatorEmptyQueryException extends Exception {}
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/infrastructure/query/exception/PhabricatorInvalidQueryCursorException.php
src/infrastructure/query/exception/PhabricatorInvalidQueryCursorException.php
<?php final class PhabricatorInvalidQueryCursorException extends Exception {}
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/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
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/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
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/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
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/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
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/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
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/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
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
true
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/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
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/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
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/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) { return pht('Unknown ("%s")', $source); } else { return pht('Unknown'); } } public f...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/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
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/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
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/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
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/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
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/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
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/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
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/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
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/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
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/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
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/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
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/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
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/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
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/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
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/infrastructure/cache/PhutilKeyValueCache.php
src/infrastructure/cache/PhutilKeyValueCache.php
<?php /** * Interface to a key-value cache like Memcache or APCu. 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 { /* -( Ke...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/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
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/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
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/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
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/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
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/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
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/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
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/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
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/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
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/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
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/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
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/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
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/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
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/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
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/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
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/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
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/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
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/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 (phutil_nonempty_scalar($value)) { $indexes[] = $t...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/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
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/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 (($value !== null) && (strlen($value))) { $i...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/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
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/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
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/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
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/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
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/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()) ->setViewer($...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/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 (phutil_nonempty_scalar($value)) { $indexes[] = ...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/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
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/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 (phutil_nonempty_string($value)) { $indexes[] = ...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/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()) ->setViewer($this->getViewer()) ->setLabe...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/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
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/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
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/infrastructure/customfield/datasource/PhabricatorCustomFieldApplicationSearchNoneFunctionDatasource.php
src/infrastructure/customfield/datasource/PhabricatorCustomFieldApplicationSearchNoneFunctionDatasource.php
<?php final class PhabricatorCustomFieldApplicationSearchNoneFunctionDatasource extends PhabricatorTypeaheadDatasource { public function getBrowseTitle() { return pht('Browse No Value'); } public function getPlaceholderText() { return pht('Type "none()"...'); } public function getDatasourceAppli...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/infrastructure/customfield/datasource/PhabricatorCustomFieldApplicationSearchDatasource.php
src/infrastructure/customfield/datasource/PhabricatorCustomFieldApplicationSearchDatasource.php
<?php final class PhabricatorCustomFieldApplicationSearchDatasource extends PhabricatorTypeaheadProxyDatasource { public function getComponentDatasources() { $datasources = parent::getComponentDatasources(); $datasources[] = new PhabricatorCustomFieldApplicationSearchAnyFunctionDatasource(); $d...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/infrastructure/customfield/interface/PhabricatorCustomFieldInterface.php
src/infrastructure/customfield/interface/PhabricatorCustomFieldInterface.php
<?php interface PhabricatorCustomFieldInterface { public function getCustomFieldBaseClass(); public function getCustomFieldSpecificationForRole($role); public function getCustomFields(); public function attachCustomFields(PhabricatorCustomFieldAttachment $fields); } // TEMPLATE IMPLEMENTATION /////////////...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/infrastructure/customfield/interface/PhabricatorStandardCustomFieldInterface.php
src/infrastructure/customfield/interface/PhabricatorStandardCustomFieldInterface.php
<?php interface PhabricatorStandardCustomFieldInterface { public function getStandardCustomFieldNamespace(); }
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/infrastructure/customfield/editor/PhabricatorCustomFieldEditType.php
src/infrastructure/customfield/editor/PhabricatorCustomFieldEditType.php
<?php final class PhabricatorCustomFieldEditType extends PhabricatorEditType { private $customField; public function setCustomField(PhabricatorCustomField $custom_field) { $this->customField = $custom_field; return $this; } public function getCustomField() { return $this->customField; } p...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/infrastructure/customfield/editor/PhabricatorCustomFieldEditField.php
src/infrastructure/customfield/editor/PhabricatorCustomFieldEditField.php
<?php final class PhabricatorCustomFieldEditField extends PhabricatorEditField { private $customField; private $httpParameterType; private $conduitParameterType; private $bulkParameterType; private $commentAction; public function setCustomField(PhabricatorCustomField $custom_field) { $this->customF...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/infrastructure/customfield/exception/PhabricatorCustomFieldDataNotAvailableException.php
src/infrastructure/customfield/exception/PhabricatorCustomFieldDataNotAvailableException.php
<?php final class PhabricatorCustomFieldDataNotAvailableException extends Exception { public function __construct(PhabricatorCustomField $field) { parent::__construct( pht( "Custom field '%s' (with key '%s', of class '%s') is attempting ". "to access data which is not available in this con...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/infrastructure/customfield/exception/PhabricatorCustomFieldNotProxyException.php
src/infrastructure/customfield/exception/PhabricatorCustomFieldNotProxyException.php
<?php final class PhabricatorCustomFieldNotProxyException extends Exception { public function __construct(PhabricatorCustomField $field) { parent::__construct( pht( "Custom field '%s' (with key '%s', of class '%s') can not have a ". "proxy set with %s, because it returned %s from %s.", ...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/infrastructure/customfield/exception/PhabricatorCustomFieldNotAttachedException.php
src/infrastructure/customfield/exception/PhabricatorCustomFieldNotAttachedException.php
<?php final class PhabricatorCustomFieldNotAttachedException extends Exception {}
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/infrastructure/customfield/exception/PhabricatorCustomFieldImplementationIncompleteException.php
src/infrastructure/customfield/exception/PhabricatorCustomFieldImplementationIncompleteException.php
<?php final class PhabricatorCustomFieldImplementationIncompleteException extends Exception { public function __construct( PhabricatorCustomField $field, $field_key_is_incomplete = false) { if ($field_key_is_incomplete) { $key = pht('<incomplete key>'); $name = pht('<incomplete name>'); ...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/infrastructure/customfield/field/PhabricatorCustomFieldList.php
src/infrastructure/customfield/field/PhabricatorCustomFieldList.php
<?php /** * Convenience class to perform operations on an entire field list, like reading * all values from storage. * * $field_list = new PhabricatorCustomFieldList($fields); * */ final class PhabricatorCustomFieldList extends Phobject { private $fields; private $viewer; /** * @param array<Phabrica...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/infrastructure/customfield/field/PhabricatorCustomFieldAttachment.php
src/infrastructure/customfield/field/PhabricatorCustomFieldAttachment.php
<?php /** * Convenience class which simplifies the implementation of * @{interface:PhabricatorCustomFieldInterface} by obscuring the details of how * custom fields are stored. * * Generally, you should not use this class directly. It is used by * @{class:PhabricatorCustomField} to manage field storage on objects...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/infrastructure/customfield/field/PhabricatorCustomField.php
src/infrastructure/customfield/field/PhabricatorCustomField.php
<?php /** * @task apps Building Applications with Custom Fields * @task core Core Properties and Field Identity * @task proxy Field Proxies * @task context Contextual Data * @task render Rendering Utilities * @task storage Field Storage * @task edit Integration wit...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
true
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/infrastructure/customfield/herald/PhabricatorCustomFieldHeraldFieldGroup.php
src/infrastructure/customfield/herald/PhabricatorCustomFieldHeraldFieldGroup.php
<?php final class PhabricatorCustomFieldHeraldFieldGroup extends HeraldFieldGroup { const FIELDGROUPKEY = 'customfield'; public function getGroupLabel() { return pht('Custom Fields'); } protected function getGroupOrder() { return 2000; } }
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/infrastructure/customfield/herald/PhabricatorCustomFieldHeraldField.php
src/infrastructure/customfield/herald/PhabricatorCustomFieldHeraldField.php
<?php final class PhabricatorCustomFieldHeraldField extends HeraldField { const FIELDCONST = 'herald.custom'; private $customField; public function setCustomField(PhabricatorCustomField $custom_field) { $this->customField = $custom_field; return $this; } public function getCustomField() { ret...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/infrastructure/customfield/herald/PhabricatorCustomFieldHeraldActionGroup.php
src/infrastructure/customfield/herald/PhabricatorCustomFieldHeraldActionGroup.php
<?php final class PhabricatorCustomFieldHeraldActionGroup extends HeraldActionGroup { const ACTIONGROUPKEY = 'customfield'; public function getGroupLabel() { return pht('Custom Fields'); } protected function getGroupOrder() { return 2000; } }
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/infrastructure/customfield/herald/PhabricatorCustomFieldHeraldAction.php
src/infrastructure/customfield/herald/PhabricatorCustomFieldHeraldAction.php
<?php final class PhabricatorCustomFieldHeraldAction extends HeraldAction { const ACTIONCONST = 'herald.action.custom'; const DO_SET_FIELD = 'do.set-custom-field'; private $customField; public function setCustomField(PhabricatorCustomField $custom_field) { $this->customField = $custom_field; return...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/infrastructure/customfield/config/PhabricatorCustomFieldConfigOptionType.php
src/infrastructure/customfield/config/PhabricatorCustomFieldConfigOptionType.php
<?php final class PhabricatorCustomFieldConfigOptionType extends PhabricatorConfigOptionType { public function readRequest( PhabricatorConfigOption $option, AphrontRequest $request) { $e_value = null; $errors = array(); $storage_value = $request->getStr('value'); $in_value = phutil_json_...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/infrastructure/customfield/parser/PhabricatorCustomFieldMonogramParser.php
src/infrastructure/customfield/parser/PhabricatorCustomFieldMonogramParser.php
<?php abstract class PhabricatorCustomFieldMonogramParser extends Phobject { abstract protected function getPrefixes(); abstract protected function getSuffixes(); abstract protected function getInfixes(); abstract protected function getMonogramPattern(); public function parseCorpus($corpus) { $prefix...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/infrastructure/graph/DifferentialRevisionGraph.php
src/infrastructure/graph/DifferentialRevisionGraph.php
<?php final class DifferentialRevisionGraph extends PhabricatorObjectGraph { protected function getEdgeTypes() { return array( DifferentialRevisionDependsOnRevisionEdgeType::EDGECONST, DifferentialRevisionDependedOnByRevisionEdgeType::EDGECONST, ); } protected function getParentEdgeType()...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/infrastructure/graph/ManiphestTaskGraph.php
src/infrastructure/graph/ManiphestTaskGraph.php
<?php final class ManiphestTaskGraph extends PhabricatorObjectGraph { private $seedMaps = array(); private $isStandalone; protected function getEdgeTypes() { return array( ManiphestTaskDependedOnByTaskEdgeType::EDGECONST, ManiphestTaskDependsOnTaskEdgeType::EDGECONST, ); } protected ...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/infrastructure/graph/PhabricatorObjectGraph.php
src/infrastructure/graph/PhabricatorObjectGraph.php
<?php abstract class PhabricatorObjectGraph extends AbstractDirectedGraph { private $viewer; private $edges = array(); private $edgeReach = array(); private $seedPHID; private $objects; private $loadEntireGraph = false; private $limit; private $adjacent; private $height; public function setView...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/infrastructure/edges/engineextension/PhabricatorEdgesDestructionEngineExtension.php
src/infrastructure/edges/engineextension/PhabricatorEdgesDestructionEngineExtension.php
<?php final class PhabricatorEdgesDestructionEngineExtension extends PhabricatorDestructionEngineExtension { const EXTENSIONKEY = 'edges'; public function getExtensionName() { return pht('Edges'); } public function destroyObject( PhabricatorDestructionEngine $engine, $object) { $src_phid ...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/infrastructure/edges/util/PhabricatorEdgeChangeRecord.php
src/infrastructure/edges/util/PhabricatorEdgeChangeRecord.php
<?php final class PhabricatorEdgeChangeRecord extends Phobject { private $xaction; public static function newFromTransaction( PhabricatorApplicationTransaction $xaction) { $record = new self(); $record->xaction = $xaction; return $record; } public function getChangedPHIDs() { $add = $t...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/infrastructure/edges/util/PhabricatorEdgeGraph.php
src/infrastructure/edges/util/PhabricatorEdgeGraph.php
<?php final class PhabricatorEdgeGraph extends AbstractDirectedGraph { private $edgeType; public function setEdgeType($edge_type) { $this->edgeType = $edge_type; return $this; } protected function loadEdges(array $nodes) { if (!$this->edgeType) { throw new Exception(pht('Set edge type befo...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/infrastructure/edges/type/PhabricatorEdgeType.php
src/infrastructure/edges/type/PhabricatorEdgeType.php
<?php /** * Defines an edge type. * * Edges are typed, directed connections between two objects. They are used to * represent most simple relationships, like when a user is subscribed to an * object or an object is a member of a project. * * @task load Loading Types */ abstract class PhabricatorEdgeType exte...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/infrastructure/edges/type/__tests__/PhabricatorEdgeTypeTestCase.php
src/infrastructure/edges/type/__tests__/PhabricatorEdgeTypeTestCase.php
<?php final class PhabricatorEdgeTypeTestCase extends PhabricatorTestCase { public function testGetAllTypes() { PhabricatorEdgeType::getAllTypes(); $this->assertTrue(true); } }
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/infrastructure/edges/query/PhabricatorEdgeObjectQuery.php
src/infrastructure/edges/query/PhabricatorEdgeObjectQuery.php
<?php /** * This is a more formal version of @{class:PhabricatorEdgeQuery} that is used * to expose edges to Conduit. */ final class PhabricatorEdgeObjectQuery extends PhabricatorCursorPagedPolicyAwareQuery { private $sourcePHIDs; private $sourcePHIDType; private $edgeTypes; private $destinationPHIDs; ...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/infrastructure/edges/query/PhabricatorEdgeQuery.php
src/infrastructure/edges/query/PhabricatorEdgeQuery.php
<?php /** * Load object edges created by @{class:PhabricatorEdgeEditor}. * * name=Querying Edges * $src = $earth_phid; * $type = PhabricatorEdgeConfig::TYPE_BODY_HAS_SATELLITE; * * // Load the earth's satellites. * $satellite_edges = id(new PhabricatorEdgeQuery()) * ->withSourcePHIDs(array($src...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/infrastructure/edges/editor/PhabricatorEdgeEditor.php
src/infrastructure/edges/editor/PhabricatorEdgeEditor.php
<?php /** * Add and remove edges between objects. You can use * @{class:PhabricatorEdgeQuery} to load object edges. For more information * on edges, see @{article:Using Edges}. * * Edges are not directly policy aware, and this editor makes low-level changes * below the policy layer. * * name=Adding Edges *...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/infrastructure/edges/exception/PhabricatorEdgeCycleException.php
src/infrastructure/edges/exception/PhabricatorEdgeCycleException.php
<?php final class PhabricatorEdgeCycleException extends Exception { private $cycleEdgeType; private $cycle; public function __construct($cycle_edge_type, array $cycle) { $this->cycleEdgeType = $cycle_edge_type; $this->cycle = $cycle; $cycle_list = implode(', ', $cycle); parent::__construct( ...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/infrastructure/edges/__tests__/PhabricatorEdgeTestCase.php
src/infrastructure/edges/__tests__/PhabricatorEdgeTestCase.php
<?php final class PhabricatorEdgeTestCase extends PhabricatorTestCase { protected function getPhabricatorTestCaseConfiguration() { return array( self::PHABRICATOR_TESTCONFIG_BUILD_STORAGE_FIXTURES => true, ); } public function testCycleDetection() { // The editor should detect that this intr...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false