repo
stringlengths
7
63
file_url
stringlengths
81
284
file_path
stringlengths
5
200
content
stringlengths
0
32.8k
language
stringclasses
1 value
license
stringclasses
7 values
commit_sha
stringlengths
40
40
retrieved_at
stringdate
2026-01-04 15:02:33
2026-01-05 05:24:06
truncated
bool
2 classes
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/policy/config/PhabricatorPolicyConfigOptions.php
src/applications/policy/config/PhabricatorPolicyConfigOptions.php
<?php final class PhabricatorPolicyConfigOptions extends PhabricatorApplicationConfigOptions { public function getName() { return pht('Policy'); } public function getDescription() { return pht('Options relating to object visibility.'); } public function getIcon() { return 'fa-lock'; } p...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/policy/codex/PhabricatorPolicyCodex.php
src/applications/policy/codex/PhabricatorPolicyCodex.php
<?php /** * Rendering extensions that allows an object to render custom strings, * descriptions and explanations for the policy system to help users * understand complex policies. */ abstract class PhabricatorPolicyCodex extends Phobject { private $viewer; private $object; private $policy; private $capa...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/policy/codex/PhabricatorPolicyCodexRuleDescription.php
src/applications/policy/codex/PhabricatorPolicyCodexRuleDescription.php
<?php final class PhabricatorPolicyCodexRuleDescription extends Phobject { private $description; private $capabilities = array(); private $isActive = true; public function setDescription($description) { $this->description = $description; return $this; } public function getDescription() { r...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/policy/codex/PhabricatorPolicyCodexInterface.php
src/applications/policy/codex/PhabricatorPolicyCodexInterface.php
<?php interface PhabricatorPolicyCodexInterface { public function newPolicyCodex(); } // TEMPLATE IMPLEMENTATION ///////////////////////////////////////////////////// /* -( PhabricatorPolicyCodexInterface )------------------------------------ */ /* public function newPolicyCodex() { return new <<...>>Po...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/policy/capability/PhabricatorPolicyCanEditCapability.php
src/applications/policy/capability/PhabricatorPolicyCanEditCapability.php
<?php final class PhabricatorPolicyCanEditCapability extends PhabricatorPolicyCapability { const CAPABILITY = self::CAN_EDIT; public function getCapabilityName() { return pht('Can Edit'); } public function describeCapabilityRejection() { return pht('You do not have permission to edit this object.'...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/policy/capability/PhabricatorPolicyCanJoinCapability.php
src/applications/policy/capability/PhabricatorPolicyCanJoinCapability.php
<?php final class PhabricatorPolicyCanJoinCapability extends PhabricatorPolicyCapability { const CAPABILITY = self::CAN_JOIN; public function getCapabilityName() { return pht('Can Join'); } public function describeCapabilityRejection() { return pht('You do not have permission to join this object.'...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/policy/capability/PhabricatorPolicyCanInteractCapability.php
src/applications/policy/capability/PhabricatorPolicyCanInteractCapability.php
<?php final class PhabricatorPolicyCanInteractCapability extends PhabricatorPolicyCapability { const CAPABILITY = self::CAN_INTERACT; public function getCapabilityName() { return pht('Can Interact'); } public function describeCapabilityRejection() { return pht('You do not have permission to intera...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/policy/capability/PhabricatorPolicyCanViewCapability.php
src/applications/policy/capability/PhabricatorPolicyCanViewCapability.php
<?php final class PhabricatorPolicyCanViewCapability extends PhabricatorPolicyCapability { const CAPABILITY = self::CAN_VIEW; public function getCapabilityName() { return pht('Can View'); } public function describeCapabilityRejection() { return pht('You do not have permission to view this object.'...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/policy/capability/PhabricatorPolicyCapability.php
src/applications/policy/capability/PhabricatorPolicyCapability.php
<?php abstract class PhabricatorPolicyCapability extends Phobject { const CAN_VIEW = 'view'; const CAN_EDIT = 'edit'; const CAN_JOIN = 'join'; const CAN_INTERACT = 'interact'; /** * Get the unique key identifying this capability. This key must be globally * unique. Application...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/policy/capability/__tests__/PhabricatorPolicyCapabilityTestCase.php
src/applications/policy/capability/__tests__/PhabricatorPolicyCapabilityTestCase.php
<?php final class PhabricatorPolicyCapabilityTestCase extends PhabricatorTestCase { public function testGetCapabilityMap() { PhabricatorPolicyCapability::getCapabilityMap(); $this->assertTrue(true); } }
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/policy/constants/PhabricatorPolicies.php
src/applications/policy/constants/PhabricatorPolicies.php
<?php final class PhabricatorPolicies extends PhabricatorPolicyConstants { const POLICY_PUBLIC = 'public'; const POLICY_USER = 'users'; const POLICY_ADMIN = 'admin'; const POLICY_NOONE = 'no-one'; /** * Returns the most public policy this install's configuration permits. * This is either ...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/policy/constants/PhabricatorPolicyConstants.php
src/applications/policy/constants/PhabricatorPolicyConstants.php
<?php abstract class PhabricatorPolicyConstants extends Phobject {}
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/policy/constants/PhabricatorPolicyType.php
src/applications/policy/constants/PhabricatorPolicyType.php
<?php final class PhabricatorPolicyType extends PhabricatorPolicyConstants { const TYPE_GLOBAL = 'global'; const TYPE_OBJECT = 'object'; const TYPE_USER = 'user'; const TYPE_CUSTOM = 'custom'; const TYPE_PROJECT = 'project'; const TYPE_MASKED = 'masked'; public stat...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/__tests__/PhabricatorLibraryTestCase.php
src/__tests__/PhabricatorLibraryTestCase.php
<?php final class PhabricatorLibraryTestCase extends PhutilLibraryTestCase {}
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/__tests__/PhabricatorConduitTestCase.php
src/__tests__/PhabricatorConduitTestCase.php
<?php final class PhabricatorConduitTestCase extends PhabricatorTestCase { public function testConduitMethods() { $methods = id(new PhutilClassMapQuery()) ->setAncestorClass('ConduitAPIMethod') ->execute(); // We're just looking for a side effect of ConduitCall construction // here: it will...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/__tests__/PhabricatorCelerityTestCase.php
src/__tests__/PhabricatorCelerityTestCase.php
<?php final class PhabricatorCelerityTestCase extends PhabricatorTestCase { /** * This is more of an acceptance test case instead of a unit test. It verifies * that the Celerity map is up-to-date. */ public function testCelerityMaps() { $resources_map = CelerityPhysicalResources::getAll(); forea...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/__tests__/PhabricatorInfrastructureTestCase.php
src/__tests__/PhabricatorInfrastructureTestCase.php
<?php final class PhabricatorInfrastructureTestCase extends PhabricatorTestCase { protected function getPhabricatorTestCaseConfiguration() { return array( self::PHABRICATOR_TESTCONFIG_BUILD_STORAGE_FIXTURES => true, ); } public function testApplicationsInstalled() { $all = PhabricatorApplicat...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/aphront/AphrontController.php
src/aphront/AphrontController.php
<?php abstract class AphrontController extends Phobject { private $request; private $currentApplication; private $delegatingController; public function setDelegatingController( AphrontController $delegating_controller) { $this->delegatingController = $delegating_controller; return $this; } p...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/aphront/AphrontRequest.php
src/aphront/AphrontRequest.php
<?php /** * @task data Accessing Request Data * @task cookie Managing Cookies * @task cluster Working With a Phabricator Cluster */ final class AphrontRequest extends Phobject { // NOTE: These magic request-type parameters are automatically included in // certain requests (e.g., by phabricator_form(), ...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/aphront/site/AphrontSite.php
src/aphront/site/AphrontSite.php
<?php abstract class AphrontSite extends Phobject { abstract public function getPriority(); abstract public function getDescription(); abstract public function shouldRequireHTTPS(); abstract public function newSiteForRequest(AphrontRequest $request); abstract public function getRoutingMaps(); public fun...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/aphront/site/PhabricatorPlatformSite.php
src/aphront/site/PhabricatorPlatformSite.php
<?php final class PhabricatorPlatformSite extends PhabricatorSite { public function getDescription() { return pht('Serves the core platform and applications.'); } public function getPriority() { return 1000; } public function newSiteForRequest(AphrontRequest $request) { // If no base URI has b...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/aphront/site/AphrontRoutingMap.php
src/aphront/site/AphrontRoutingMap.php
<?php /** * Collection of routes on a site for an application. * * @task info Map Information * @task routing Routing */ final class AphrontRoutingMap extends Phobject { private $site; private $application; private $routes = array(); /* -( Map Info )-----------------------------------------------------...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/aphront/site/PhabricatorShortSite.php
src/aphront/site/PhabricatorShortSite.php
<?php final class PhabricatorShortSite extends PhabricatorSite { public function getDescription() { return pht('Serves shortened URLs.'); } public function getPriority() { return 2500; } public function newSiteForRequest(AphrontRequest $request) { $host = $request->getHost(); $uri = Phabr...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/aphront/site/PhabricatorSite.php
src/aphront/site/PhabricatorSite.php
<?php abstract class PhabricatorSite extends AphrontSite { public function shouldRequireHTTPS() { // If this is an intracluster request, it's okay for it to use HTTP even // if the site otherwise requires HTTPS. It is common to terminate SSL at // a load balancer and use plain HTTP from then on, and adm...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/aphront/site/AphrontRoutingResult.php
src/aphront/site/AphrontRoutingResult.php
<?php /** * Details about a routing map match for a path. * * @param info Result Information */ final class AphrontRoutingResult extends Phobject { private $site; private $application; private $controller; private $uriData; /* -( Result Information )------------------------------------------------- */...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/aphront/site/PhabricatorResourceSite.php
src/aphront/site/PhabricatorResourceSite.php
<?php final class PhabricatorResourceSite extends PhabricatorSite { public function getDescription() { return pht('Serves static resources like images, CSS and JS.'); } public function getPriority() { return 2000; } public function newSiteForRequest(AphrontRequest $request) { $host = $request-...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/aphront/multipartparser/AphrontMultipartPart.php
src/aphront/multipartparser/AphrontMultipartPart.php
<?php final class AphrontMultipartPart extends Phobject { private $headers = array(); private $value = ''; private $name; private $filename; private $tempFile; private $byteSize = 0; public function appendRawHeader($bytes) { $parser = id(new AphrontHTTPHeaderParser()) ->parseRawHeader($bytes...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/aphront/multipartparser/AphrontMultipartParser.php
src/aphront/multipartparser/AphrontMultipartParser.php
<?php final class AphrontMultipartParser extends Phobject { private $contentType; private $boundary; private $buffer; private $body; private $state; private $part; private $parts; public function setContentType($content_type) { $this->contentType = $content_type; return $this; } public...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/aphront/multipartparser/__tests__/AphrontMultipartParserTestCase.php
src/aphront/multipartparser/__tests__/AphrontMultipartParserTestCase.php
<?php final class AphrontMultipartParserTestCase extends PhutilTestCase { public function testParser() { $map = array( array( 'data' => 'simple.txt', 'variables' => array( array('a', 'b'), ), ), ); $data_dir = dirname(__FILE__).'/data/'; foreach ($map a...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/aphront/sink/AphrontPHPHTTPSink.php
src/aphront/sink/AphrontPHPHTTPSink.php
<?php /** * Concrete HTTP sink which uses "echo" and "header()" to emit data. */ final class AphrontPHPHTTPSink extends AphrontHTTPSink { protected function emitHTTPStatus($code, $message = '') { if ($code != 200) { $header = "HTTP/1.0 {$code}"; if (strlen($message)) { $header .= " {$messa...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/aphront/sink/AphrontIsolatedHTTPSink.php
src/aphront/sink/AphrontIsolatedHTTPSink.php
<?php /** * Isolated HTTP sink for testing. */ final class AphrontIsolatedHTTPSink extends AphrontHTTPSink { private $status; private $headers; private $data; protected function emitHTTPStatus($code, $message = '') { $this->status = $code; } protected function emitHeader($name, $value) { $this...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/aphront/sink/AphrontHTTPSink.php
src/aphront/sink/AphrontHTTPSink.php
<?php /** * Abstract class which wraps some sort of output mechanism for HTTP responses. * Normally this is just @{class:AphrontPHPHTTPSink}, which uses "echo" and * "header()" to emit responses. * * @task write Writing Response Components * @task emit Emitting the Response */ abstract class AphrontHTTPSink ...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/aphront/sink/__tests__/AphrontHTTPSinkTestCase.php
src/aphront/sink/__tests__/AphrontHTTPSinkTestCase.php
<?php final class AphrontHTTPSinkTestCase extends PhabricatorTestCase { public function testHTTPSinkBasics() { $sink = new AphrontIsolatedHTTPSink(); $sink->writeHTTPStatus(200); $sink->writeHeaders(array(array('X-Test', 'test'))); $sink->writeData('test'); $this->assertEqual(200, $sink->getEmi...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/aphront/interface/AphrontResponseProducerInterface.php
src/aphront/interface/AphrontResponseProducerInterface.php
<?php /** * An object can implement this interface to allow it to be returned directly * from an @{class:AphrontController}. * * Normally, controllers must return an @{class:AphrontResponse}. Sometimes, * this is not convenient or requires an awkward API. If it's preferable to * return some other type of object ...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/aphront/configuration/AphrontApplicationConfiguration.php
src/aphront/configuration/AphrontApplicationConfiguration.php
<?php /** * @task routing URI Routing * @task response Response Handling * @task exception Exception Handling */ final class AphrontApplicationConfiguration extends Phobject { private $request; private $host; private $path; private $console; public function buildRequest() { $parser = new PhutilQu...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/aphront/exception/AphrontMalformedRequestException.php
src/aphront/exception/AphrontMalformedRequestException.php
<?php /** * These exceptions are raised when a client submits a malformed request. * * These errors are caught by Aphront itself and occur too early or too * fundamentally in request handling to allow the request to route to a * controller or survive to normal processing. * * These exceptions can be made "unlog...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/aphront/exception/AphrontException.php
src/aphront/exception/AphrontException.php
<?php abstract class AphrontException extends Exception {}
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/aphront/httpparametertype/AphrontStringListHTTPParameterType.php
src/aphront/httpparametertype/AphrontStringListHTTPParameterType.php
<?php final class AphrontStringListHTTPParameterType extends AphrontListHTTPParameterType { protected function getParameterValue(AphrontRequest $request, $key) { $list = $request->getArr($key, null); if ($list === null) { $list = $request->getStrList($key); } return $list; } protected...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/aphront/httpparametertype/AphrontStringHTTPParameterType.php
src/aphront/httpparametertype/AphrontStringHTTPParameterType.php
<?php final class AphrontStringHTTPParameterType extends AphrontHTTPParameterType { protected function getParameterValue(AphrontRequest $request, $key) { return $request->getStr($key); } protected function getParameterTypeName() { return 'string'; } protected function getParameterFormatDescripti...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/aphront/httpparametertype/AphrontEpochHTTPParameterType.php
src/aphront/httpparametertype/AphrontEpochHTTPParameterType.php
<?php final class AphrontEpochHTTPParameterType extends AphrontHTTPParameterType { private $allowNull; public function setAllowNull($allow_null) { $this->allowNull = $allow_null; return $this; } public function getAllowNull() { return $this->allowNull; } protected function getParameterExi...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/aphront/httpparametertype/AphrontProjectListHTTPParameterType.php
src/aphront/httpparametertype/AphrontProjectListHTTPParameterType.php
<?php final class AphrontProjectListHTTPParameterType extends AphrontListHTTPParameterType { protected function getParameterValue(AphrontRequest $request, $key) { $type = new AphrontStringListHTTPParameterType(); $list = $this->getValueWithType($type, $request, $key); return id(new PhabricatorProject...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/aphront/httpparametertype/AphrontJSONHTTPParameterType.php
src/aphront/httpparametertype/AphrontJSONHTTPParameterType.php
<?php final class AphrontJSONHTTPParameterType extends AphrontHTTPParameterType { protected function getParameterDefault() { return array(); } protected function getParameterValue(AphrontRequest $request, $key) { $str = $request->getStr($key); return phutil_json_decode($str); } protected fun...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/aphront/httpparametertype/AphrontPHIDListHTTPParameterType.php
src/aphront/httpparametertype/AphrontPHIDListHTTPParameterType.php
<?php final class AphrontPHIDListHTTPParameterType extends AphrontListHTTPParameterType { protected function getParameterValue(AphrontRequest $request, $key) { $type = new AphrontStringListHTTPParameterType(); return $this->getValueWithType($type, $request, $key); } protected function getParameterTyp...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/aphront/httpparametertype/AphrontUserListHTTPParameterType.php
src/aphront/httpparametertype/AphrontUserListHTTPParameterType.php
<?php final class AphrontUserListHTTPParameterType extends AphrontListHTTPParameterType { protected function getParameterValue(AphrontRequest $request, $key) { $type = new AphrontStringListHTTPParameterType(); $list = $this->getValueWithType($type, $request, $key); return id(new PhabricatorUserPHIDRe...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/aphront/httpparametertype/AphrontSelectHTTPParameterType.php
src/aphront/httpparametertype/AphrontSelectHTTPParameterType.php
<?php final class AphrontSelectHTTPParameterType extends AphrontHTTPParameterType { protected function getParameterValue(AphrontRequest $request, $key) { return $request->getStr($key); } protected function getParameterTypeName() { return 'select'; } protected function getParameterFormatDescripti...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/aphront/httpparametertype/AphrontIntHTTPParameterType.php
src/aphront/httpparametertype/AphrontIntHTTPParameterType.php
<?php final class AphrontIntHTTPParameterType extends AphrontHTTPParameterType { protected function getParameterValue(AphrontRequest $request, $key) { return $request->getInt($key); } protected function getParameterTypeName() { return 'int'; } protected function getParameterFormatDescriptions() ...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/aphront/httpparametertype/AphrontListHTTPParameterType.php
src/aphront/httpparametertype/AphrontListHTTPParameterType.php
<?php abstract class AphrontListHTTPParameterType extends AphrontHTTPParameterType { protected function getParameterDefault() { return array(); } }
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/aphront/httpparametertype/AphrontPHIDHTTPParameterType.php
src/aphront/httpparametertype/AphrontPHIDHTTPParameterType.php
<?php final class AphrontPHIDHTTPParameterType extends AphrontHTTPParameterType { protected function getParameterValue(AphrontRequest $request, $key) { return $request->getStr($key); } protected function getParameterTypeName() { return 'phid'; } protected function getParameterFormatDescriptions(...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/aphront/httpparametertype/AphrontBoolHTTPParameterType.php
src/aphront/httpparametertype/AphrontBoolHTTPParameterType.php
<?php final class AphrontBoolHTTPParameterType extends AphrontHTTPParameterType { protected function getParameterExists(AphrontRequest $request, $key) { if ($request->getExists($key)) { return true; } $checkbox_key = $this->getCheckboxKey($key); if ($request->getExists($checkbox_key)) { ...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/aphront/httpparametertype/AphrontRemarkupHTTPParameterType.php
src/aphront/httpparametertype/AphrontRemarkupHTTPParameterType.php
<?php final class AphrontRemarkupHTTPParameterType extends AphrontHTTPParameterType { protected function getParameterDefault() { return $this->newRemarkupValue(); } protected function getParameterValue(AphrontRequest $request, $key) { $corpus_key = $key; $corpus_type = new AphrontStringHTTPParame...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/aphront/httpparametertype/AphrontFileHTTPParameterType.php
src/aphront/httpparametertype/AphrontFileHTTPParameterType.php
<?php final class AphrontFileHTTPParameterType extends AphrontHTTPParameterType { private function getFileKey($key) { return $key.'_raw'; } private function getDefaultKey($key) { return $key.'_default'; } protected function getParameterExists(AphrontRequest $request, $key) { $file_key = $thi...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/aphront/httpparametertype/AphrontHTTPParameterType.php
src/aphront/httpparametertype/AphrontHTTPParameterType.php
<?php /** * Defines how to read a complex value from an HTTP request. * * Most HTTP parameters are simple (like strings or integers) but some * parameters accept more complex values (like lists of users or project names). * * This class handles reading simple and complex values from a request, * performing any ...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/aphront/__tests__/AphrontRoutingMapTestCase.php
src/aphront/__tests__/AphrontRoutingMapTestCase.php
<?php final class AphrontRoutingMapTestCase extends PhabricatorTestCase { public function testRoutingMaps() { $count = 0; $sites = AphrontSite::getAllSites(); foreach ($sites as $site) { $maps = $site->getRoutingMaps(); foreach ($maps as $map) { foreach ($map->getRoutes() as $rule...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/aphront/__tests__/AphrontRequestTestCase.php
src/aphront/__tests__/AphrontRequestTestCase.php
<?php final class AphrontRequestTestCase extends PhabricatorTestCase { public function testRequestDataAccess() { $r = new AphrontRequest('example.com', '/'); $r->setRequestData( array( 'str_empty' => '', 'str' => 'derp', 'str_true' => 'true', 'str_false' => 'fals...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/aphront/sprite/PhutilSprite.php
src/aphront/sprite/PhutilSprite.php
<?php /** * NOTE: This is very new and unstable. */ final class PhutilSprite extends Phobject { private $sourceFiles = array(); private $sourceX; private $sourceY; private $sourceW; private $sourceH; private $targetCSS; private $spriteSheet; private $name; public function setName($name) { $th...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/aphront/sprite/PhutilSpriteSheet.php
src/aphront/sprite/PhutilSpriteSheet.php
<?php /** * NOTE: This is very new and unstable. */ final class PhutilSpriteSheet extends Phobject { const MANIFEST_VERSION = 1; const TYPE_STANDARD = 'standard'; const TYPE_REPEAT_X = 'repeat-x'; const TYPE_REPEAT_Y = 'repeat-y'; private $sprites = array(); private $sources = array(); private $hash...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/aphront/headerparser/AphrontHTTPHeaderParser.php
src/aphront/headerparser/AphrontHTTPHeaderParser.php
<?php final class AphrontHTTPHeaderParser extends Phobject { private $name; private $content; private $pairs; public function parseRawHeader($raw_header) { $this->name = null; $this->content = null; $parts = explode(':', $raw_header, 2); $this->name = trim($parts[0]); if (count($parts) >...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/aphront/headerparser/__tests__/AphrontHTTPHeaderParserTestCase.php
src/aphront/headerparser/__tests__/AphrontHTTPHeaderParserTestCase.php
<?php final class AphrontHTTPHeaderParserTestCase extends PhutilTestCase { public function testHeaderParser() { $cases = array( array( 'Key: x; y; z', 'Key', 'x; y; z', array( array('x', null), array('y', null), array('z', null), ), ...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/aphront/handler/PhabricatorDefaultRequestExceptionHandler.php
src/aphront/handler/PhabricatorDefaultRequestExceptionHandler.php
<?php final class PhabricatorDefaultRequestExceptionHandler extends PhabricatorRequestExceptionHandler { public function getRequestExceptionHandlerPriority() { return 900000; } public function getRequestExceptionHandlerDescription() { return pht('Handles all other exceptions.'); } public functio...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/aphront/handler/PhabricatorAjaxRequestExceptionHandler.php
src/aphront/handler/PhabricatorAjaxRequestExceptionHandler.php
<?php final class PhabricatorAjaxRequestExceptionHandler extends PhabricatorRequestExceptionHandler { public function getRequestExceptionHandlerPriority() { return 110000; } public function getRequestExceptionHandlerDescription() { return pht('Responds to requests made by AJAX clients.'); } publ...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/aphront/handler/PhabricatorConduitRequestExceptionHandler.php
src/aphront/handler/PhabricatorConduitRequestExceptionHandler.php
<?php final class PhabricatorConduitRequestExceptionHandler extends PhabricatorRequestExceptionHandler { public function getRequestExceptionHandlerPriority() { return 100000; } public function getRequestExceptionHandlerDescription() { return pht('Responds to requests made by Conduit clients.'); } ...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/aphront/handler/AphrontRequestExceptionHandler.php
src/aphront/handler/AphrontRequestExceptionHandler.php
<?php /** * React to an unhandled exception escaping request handling in a controller * and convert it into a response. * * These handlers are generally used to render error pages, but they may * also perform more specialized handling in situations where an error page * is not appropriate. */ abstract class Aph...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/aphront/handler/PhabricatorRequestExceptionHandler.php
src/aphront/handler/PhabricatorRequestExceptionHandler.php
<?php abstract class PhabricatorRequestExceptionHandler extends AphrontRequestExceptionHandler { protected function isPhabricatorSite(AphrontRequest $request) { $site = $request->getSite(); if (!$site) { return false; } return ($site instanceof PhabricatorSite); } protected function ge...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/aphront/handler/PhabricatorRateLimitRequestExceptionHandler.php
src/aphront/handler/PhabricatorRateLimitRequestExceptionHandler.php
<?php final class PhabricatorRateLimitRequestExceptionHandler extends PhabricatorRequestExceptionHandler { public function getRequestExceptionHandlerPriority() { return 300000; } public function getRequestExceptionHandlerDescription() { return pht( 'Handles action rate limiting exceptions which...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/aphront/handler/PhabricatorPolicyRequestExceptionHandler.php
src/aphront/handler/PhabricatorPolicyRequestExceptionHandler.php
<?php final class PhabricatorPolicyRequestExceptionHandler extends PhabricatorRequestExceptionHandler { public function getRequestExceptionHandlerPriority() { return 320000; } public function getRequestExceptionHandlerDescription() { return pht( 'Handles policy exceptions which occur when a use...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/aphront/handler/PhabricatorHighSecurityRequestExceptionHandler.php
src/aphront/handler/PhabricatorHighSecurityRequestExceptionHandler.php
<?php final class PhabricatorHighSecurityRequestExceptionHandler extends PhabricatorRequestExceptionHandler { public function getRequestExceptionHandlerPriority() { return 310000; } public function getRequestExceptionHandlerDescription() { return pht( 'Handles high security exceptions which occ...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/aphront/requeststream/AphrontRequestStream.php
src/aphront/requeststream/AphrontRequestStream.php
<?php final class AphrontRequestStream extends Phobject { private $encoding; private $stream; private $closed; private $iterator; public function setEncoding($encoding) { $this->encoding = $encoding; return $this; } public function getEncoding() { return $this->encoding; } public func...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/aphront/response/Aphront404Response.php
src/aphront/response/Aphront404Response.php
<?php final class Aphront404Response extends AphrontHTMLResponse { public function getHTTPResponseCode() { return 404; } public function buildResponseString() { $request = $this->getRequest(); $viewer = $request->getViewer(); // See T13636. Note that this response may be served from a Site oth...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/aphront/response/Aphront304Response.php
src/aphront/response/Aphront304Response.php
<?php final class Aphront304Response extends AphrontResponse { public function getHTTPResponseCode() { return 304; } public function buildResponseString() { // IMPORTANT! According to the HTTP/1.1 spec (RFC 2616) a 304 response // "MUST NOT" have any content. Apache + Safari strongly agree, and ...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/aphront/response/AphrontStandaloneHTMLResponse.php
src/aphront/response/AphrontStandaloneHTMLResponse.php
<?php abstract class AphrontStandaloneHTMLResponse extends AphrontHTMLResponse { abstract protected function getResources(); abstract protected function getResponseTitle(); abstract protected function getResponseBodyClass(); abstract protected function getResponseBody(); abstract protected function buildP...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/aphront/response/AphrontHTMLResponse.php
src/aphront/response/AphrontHTMLResponse.php
<?php abstract class AphrontHTMLResponse extends AphrontResponse { public function getHeaders() { $headers = array( array('Content-Type', 'text/html; charset=UTF-8'), ); $headers = array_merge(parent::getHeaders(), $headers); return $headers; } }
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/aphront/response/AphrontRedirectResponse.php
src/aphront/response/AphrontRedirectResponse.php
<?php /** * TODO: Should be final but isn't because of AphrontReloadResponse. */ class AphrontRedirectResponse extends AphrontResponse { private $uri; private $stackWhenCreated; private $isExternal; private $closeDialogBeforeRedirect; public function setIsExternal($external) { $this->isExternal = $ex...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/aphront/response/AphrontWebpageResponse.php
src/aphront/response/AphrontWebpageResponse.php
<?php final class AphrontWebpageResponse extends AphrontHTMLResponse { private $content; private $unexpectedOutput; public function setContent($content) { $this->content = $content; return $this; } public function setUnexpectedOutput($unexpected_output) { $this->unexpectedOutput = $unexpected_...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/aphront/response/AphrontHTTPProxyResponse.php
src/aphront/response/AphrontHTTPProxyResponse.php
<?php /** * Responds to a request by proxying an HTTP future. * * NOTE: This is currently very inefficient for large responses, and buffers * the entire response into memory before returning it. It should be updated * to stream the response instead, but we need to complete additional * infrastructure work first....
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/aphront/response/AphrontUnhandledExceptionResponse.php
src/aphront/response/AphrontUnhandledExceptionResponse.php
<?php final class AphrontUnhandledExceptionResponse extends AphrontStandaloneHTMLResponse { private $exception; private $showStackTraces; public function setShowStackTraces($show_stack_traces) { $this->showStackTraces = $show_stack_traces; return $this; } public function getShowStackTraces() { ...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/aphront/response/AphrontProxyResponse.php
src/aphront/response/AphrontProxyResponse.php
<?php /** * Base class for responses which augment other types of responses. For example, * a response might be substantially an Ajax response, but add structure to the * response content. It can do this by extending @{class:AphrontProxyResponse}, * instantiating an @{class:AphrontAjaxResponse} in @{method:buildPr...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/aphront/response/AphrontDialogResponse.php
src/aphront/response/AphrontDialogResponse.php
<?php final class AphrontDialogResponse extends AphrontResponse { private $dialog; public function setDialog(AphrontDialogView $dialog) { $this->dialog = $dialog; return $this; } public function getDialog() { return $this->dialog; } public function buildResponseString() { return $this->...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/aphront/response/AphrontJSONResponse.php
src/aphront/response/AphrontJSONResponse.php
<?php final class AphrontJSONResponse extends AphrontResponse { private $content; private $addJSONShield; public function setContent($content) { $this->content = $content; return $this; } public function setAddJSONShield($should_add) { $this->addJSONShield = $should_add; return $this; } ...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/aphront/response/AphrontReloadResponse.php
src/aphront/response/AphrontReloadResponse.php
<?php /** * When actions happen over a JX.Workflow, we may want to reload the page * if the action is javascript-driven but redirect if it isn't. This preserves * query parameters in the javascript case. A reload response behaves like * a redirect response but causes a page reload when received via workflow. */ f...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/aphront/response/AphrontPlainTextResponse.php
src/aphront/response/AphrontPlainTextResponse.php
<?php final class AphrontPlainTextResponse extends AphrontResponse { private $content; public function setContent($content) { $this->content = $content; return $this; } public function buildResponseString() { return $this->content; } public function getHeaders() { $headers = array( ...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/aphront/response/Aphront403Response.php
src/aphront/response/Aphront403Response.php
<?php final class Aphront403Response extends AphrontHTMLResponse { private $forbiddenText; public function setForbiddenText($text) { $this->forbiddenText = $text; return $this; } private function getForbiddenText() { return $this->forbiddenText; } public function getHTTPResponseCode() { r...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/aphront/response/AphrontResponse.php
src/aphront/response/AphrontResponse.php
<?php abstract class AphrontResponse extends Phobject { private $request; private $cacheable = false; private $canCDN; private $responseCode = 200; private $lastModified = null; private $contentSecurityPolicyURIs; private $disableContentSecurityPolicy; protected $frameable; private $headers = array(...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/aphront/response/AphrontFileResponse.php
src/aphront/response/AphrontFileResponse.php
<?php final class AphrontFileResponse extends AphrontResponse { private $content; private $contentIterator; private $contentLength; private $compressResponse; private $mimeType; private $download; private $rangeMin; private $rangeMax; private $allowOrigins = array(); public function addAllowOrig...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/aphront/response/Aphront400Response.php
src/aphront/response/Aphront400Response.php
<?php final class Aphront400Response extends AphrontResponse { public function getHTTPResponseCode() { return 400; } public function buildResponseString() { return '400 Bad Request'; } }
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/aphront/response/AphrontAjaxResponse.php
src/aphront/response/AphrontAjaxResponse.php
<?php final class AphrontAjaxResponse extends AphrontResponse { private $content; private $error; private $disableConsole; public function setContent($content) { $this->content = $content; return $this; } public function setError($error) { $this->error = $error; return $this; } publ...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/aphront/response/__tests__/AphrontRedirectResponseTestCase.php
src/aphront/response/__tests__/AphrontRedirectResponseTestCase.php
<?php final class AphrontRedirectResponseTestCase extends PhabricatorTestCase { public function testLocalRedirectURIs() { // Format a bunch of URIs for local and remote redirection, making sure // we get the expected results. $uris = array( '/a' => array( 'http://phabricator.example.com/a...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/aphront/writeguard/AphrontScopedUnguardedWriteCapability.php
src/aphront/writeguard/AphrontScopedUnguardedWriteCapability.php
<?php final class AphrontScopedUnguardedWriteCapability extends Phobject { public function __destruct() { AphrontWriteGuard::endUnguardedWrites(); } }
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/aphront/writeguard/AphrontWriteGuard.php
src/aphront/writeguard/AphrontWriteGuard.php
<?php /** * Guard writes against CSRF. The Aphront structure takes care of most of this * for you, you just need to call: * * AphrontWriteGuard::willWrite(); * * ...before executing a write against any new kind of storage engine. MySQL * databases and the default file storage engines are already covered, but...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/view/AphrontAutoIDView.php
src/view/AphrontAutoIDView.php
<?php abstract class AphrontAutoIDView extends AphrontView { private $id; final public function getID() { if (!$this->id) { $this->id = celerity_generate_unique_node_id(); } return $this->id; } }
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/view/AphrontTagView.php
src/view/AphrontTagView.php
<?php /** * View which renders down to a single tag, and provides common access for tag * attributes (setting classes, sigils, IDs, etc). */ abstract class AphrontTagView extends AphrontView { private $id; private $classes = array(); private $sigils = array(); private $style; private $metadata; private...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/view/AphrontNullView.php
src/view/AphrontNullView.php
<?php final class AphrontNullView extends AphrontView { public function render() { return $this->renderChildren(); } }
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/view/viewutils.php
src/view/viewutils.php
<?php function phabricator_date($epoch, PhabricatorUser $user) { return phabricator_format_local_time( $epoch, $user, phutil_date_format($epoch)); } function phabricator_relative_date($epoch, $user, $on = false) { static $today; static $yesterday; if (!$today || !$yesterday) { $now = time(); ...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/view/AphrontJavelinView.php
src/view/AphrontJavelinView.php
<?php final class AphrontJavelinView extends AphrontView { private static $renderContext = array(); private static function peekRenderContext() { return nonempty(end(self::$renderContext), null); } private static function popRenderContext() { return array_pop(self::$renderContext); } private stat...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/view/AphrontDialogView.php
src/view/AphrontDialogView.php
<?php final class AphrontDialogView extends AphrontView implements AphrontResponseProducerInterface { private $title; private $shortTitle; private $submitButton; private $cancelURI; private $cancelText = 'Cancel'; private $submitURI; private $hidden = array(); private $class; private $renderAsFo...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/view/AphrontView.php
src/view/AphrontView.php
<?php /** * @task children Managing Children */ abstract class AphrontView extends Phobject implements PhutilSafeHTMLProducerInterface { private $viewer; protected $children = array(); /* -( Configuration )------------------------------------------------------ */ /** * Set the user viewing this e...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/view/extension/PHUICurtainExtension.php
src/view/extension/PHUICurtainExtension.php
<?php abstract class PHUICurtainExtension extends Phobject { private $viewer; public function setViewer(PhabricatorUser $viewer) { $this->viewer = $viewer; return $this; } public function getViewer() { return $this->viewer; } abstract public function shouldEnableForObject($object); abstra...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/view/phui/PHUICrumbView.php
src/view/phui/PHUICrumbView.php
<?php final class PHUICrumbView extends AphrontView { private $name; private $href; private $icon; private $isLastCrumb; private $workflow; private $aural; private $alwaysVisible; public function setAural($aural) { $this->aural = $aural; return $this; } public function getAural() { r...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/view/phui/PHUITimelineEventView.php
src/view/phui/PHUITimelineEventView.php
<?php final class PHUITimelineEventView extends AphrontView { const DELIMITER = " \xC2\xB7 "; private $userHandle; private $title; private $icon; private $color; private $classes = array(); private $contentSource; private $dateCreated; private $anchor; private $isEditable; private $isEdited; ...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/view/phui/PHUIIconView.php
src/view/phui/PHUIIconView.php
<?php final class PHUIIconView extends AphrontTagView { const SPRITE_TOKENS = 'tokens'; const SPRITE_LOGIN = 'login'; const HEAD_SMALL = 'phuihead-small'; const HEAD_MEDIUM = 'phuihead-medium'; private $href = null; private $image; private $text; private $headSize = null; private $spriteIcon; p...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/view/phui/PHUIBadgeBoxView.php
src/view/phui/PHUIBadgeBoxView.php
<?php final class PHUIBadgeBoxView extends AphrontTagView { private $items = array(); private $collapsed; public function addItem($item) { $this->items[] = $item; return $this; } public function setCollapsed($collapsed) { $this->collapsed = $collapsed; return $this; } public function ...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false