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/export/field/PhabricatorDoubleExportField.php
src/infrastructure/export/field/PhabricatorDoubleExportField.php
<?php final class PhabricatorDoubleExportField extends PhabricatorExportField { /** * @return float|null */ public function getNaturalValue($value) { if ($value === null) { return $value; } return (float)$value; } /** * @phutil-external-symbol class PHPExcel_Cell_DataType */ ...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/infrastructure/export/format/PhabricatorJSONExportFormat.php
src/infrastructure/export/format/PhabricatorJSONExportFormat.php
<?php final class PhabricatorJSONExportFormat extends PhabricatorExportFormat { const EXPORTKEY = 'json'; private $objects = array(); public function getExportFormatName() { return 'JSON (.json)'; } public function isExportFormatEnabled() { return true; } public function getFileExtension()...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/infrastructure/export/format/PhabricatorExportFormat.php
src/infrastructure/export/format/PhabricatorExportFormat.php
<?php abstract class PhabricatorExportFormat extends Phobject { private $viewer; private $title; final public function getExportFormatKey() { return $this->getPhobjectClassConstant('EXPORTKEY'); } final public function setViewer(PhabricatorUser $viewer) { $this->viewer = $viewer; return $thi...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/infrastructure/export/format/PhabricatorExcelExportFormat.php
src/infrastructure/export/format/PhabricatorExcelExportFormat.php
<?php final class PhabricatorExcelExportFormat extends PhabricatorExportFormat { const EXPORTKEY = 'excel'; private $workbook; private $sheet; private $rowCursor; public function getExportFormatName() { return pht('Excel (.xlsx)'); } public function isExportFormatEnabled() { if (!extension_...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/infrastructure/export/format/PhabricatorCSVExportFormat.php
src/infrastructure/export/format/PhabricatorCSVExportFormat.php
<?php final class PhabricatorCSVExportFormat extends PhabricatorExportFormat { const EXPORTKEY = 'csv'; private $rows = array(); public function getExportFormatName() { return pht('Comma-Separated Values (.csv)'); } public function isExportFormatEnabled() { return true; } public function g...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/infrastructure/export/format/PhabricatorTextExportFormat.php
src/infrastructure/export/format/PhabricatorTextExportFormat.php
<?php final class PhabricatorTextExportFormat extends PhabricatorExportFormat { const EXPORTKEY = 'text'; private $rows = array(); public function getExportFormatName() { return 'Tab-Separated Text (.txt)'; } public function isExportFormatEnabled() { return true; } public function getFileE...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/infrastructure/export/engine/PhabricatorProjectsExportEngineExtension.php
src/infrastructure/export/engine/PhabricatorProjectsExportEngineExtension.php
<?php final class PhabricatorProjectsExportEngineExtension extends PhabricatorExportEngineExtension { const EXTENSIONKEY = 'projects'; public function supportsObject($object) { return ($object instanceof PhabricatorProjectInterface); } public function newExportFields() { return array( id(new...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/infrastructure/export/engine/PhabricatorExportEngineBulkJobType.php
src/infrastructure/export/engine/PhabricatorExportEngineBulkJobType.php
<?php final class PhabricatorExportEngineBulkJobType extends PhabricatorWorkerSingleBulkJobType { public function getBulkJobTypeKey() { return 'export'; } public function getJobName(PhabricatorWorkerBulkJob $job) { return pht('Data Export'); } public function getCurtainActions( PhabricatorU...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/infrastructure/export/engine/PhabricatorCustomFieldExportEngineExtension.php
src/infrastructure/export/engine/PhabricatorCustomFieldExportEngineExtension.php
<?php final class PhabricatorCustomFieldExportEngineExtension extends PhabricatorExportEngineExtension { const EXTENSIONKEY = 'custom-field'; private $object; public function supportsObject($object) { $this->object = $object; return ($object instanceof PhabricatorCustomFieldInterface); } public...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/infrastructure/export/engine/PhabricatorSubscriptionsExportEngineExtension.php
src/infrastructure/export/engine/PhabricatorSubscriptionsExportEngineExtension.php
<?php final class PhabricatorSubscriptionsExportEngineExtension extends PhabricatorExportEngineExtension { const EXTENSIONKEY = 'subscriptions'; public function supportsObject($object) { return ($object instanceof PhabricatorSubscribableInterface); } public function newExportFields() { return arra...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/infrastructure/export/engine/PhabricatorLiskExportEngineExtension.php
src/infrastructure/export/engine/PhabricatorLiskExportEngineExtension.php
<?php final class PhabricatorLiskExportEngineExtension extends PhabricatorExportEngineExtension { const EXTENSIONKEY = 'lisk'; public function supportsObject($object) { if (!($object instanceof LiskDAO)) { return false; } if (!$object->getConfigOption(LiskDAO::CONFIG_TIMESTAMPS)) { ret...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/infrastructure/export/engine/PhabricatorSpacesExportEngineExtension.php
src/infrastructure/export/engine/PhabricatorSpacesExportEngineExtension.php
<?php final class PhabricatorSpacesExportEngineExtension extends PhabricatorExportEngineExtension { const EXTENSIONKEY = 'spaces'; public function supportsObject($object) { $viewer = $this->getViewer(); if (!PhabricatorSpacesNamespaceQuery::getViewerSpacesExist($viewer)) { return false; } ...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/infrastructure/export/engine/PhabricatorExportEngineExtension.php
src/infrastructure/export/engine/PhabricatorExportEngineExtension.php
<?php abstract class PhabricatorExportEngineExtension extends Phobject { private $viewer; final public function getExtensionKey() { return $this->getPhobjectClassConstant('EXTENSIONKEY'); } final public function setViewer($viewer) { $this->viewer = $viewer; return $this; } final public func...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/infrastructure/export/engine/PhabricatorExportFormatSetting.php
src/infrastructure/export/engine/PhabricatorExportFormatSetting.php
<?php final class PhabricatorExportFormatSetting extends PhabricatorInternalSetting { const SETTINGKEY = 'export.format'; public function getSettingName() { return pht('Export Format'); } public function getSettingDefaultValue() { return null; } }
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/infrastructure/export/engine/PhabricatorExportEngine.php
src/infrastructure/export/engine/PhabricatorExportEngine.php
<?php final class PhabricatorExportEngine extends Phobject { private $viewer; private $searchEngine; private $savedQuery; private $exportFormat; private $filename; private $title; public function setViewer(PhabricatorUser $viewer) { $this->viewer = $viewer; return $this; } public functio...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/infrastructure/status/PhabricatorObjectStatus.php
src/infrastructure/status/PhabricatorObjectStatus.php
<?php abstract class PhabricatorObjectStatus extends Phobject { private $key; private $properties; protected function __construct($key = null, array $properties = array()) { $this->key = $key; $this->properties = $properties; } protected function getStatusProperty($key) { if (!array_key_exis...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/infrastructure/log/PhabricatorProtocolLog.php
src/infrastructure/log/PhabricatorProtocolLog.php
<?php final class PhabricatorProtocolLog extends Phobject { private $logfile; private $mode; private $buffer = array(); public function __construct($logfile) { $this->logfile = $logfile; } public function didStartSession($session_name) { $this->setMode('!'); $this->buffer[] = $session_name...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/infrastructure/log/PhabricatorAccessLog.php
src/infrastructure/log/PhabricatorAccessLog.php
<?php final class PhabricatorAccessLog extends Phobject { private static $log; public static function init() { // NOTE: This currently has no effect, but some day we may reuse PHP // interpreters to run multiple requests. If we do, it has the effect of // throwing away the old log. self::$log = n...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/infrastructure/log/PhabricatorSSHLog.php
src/infrastructure/log/PhabricatorSSHLog.php
<?php final class PhabricatorSSHLog extends Phobject { private static $log; public static function getLog() { if (!self::$log) { $path = PhabricatorEnv::getEnvConfig('log.ssh.path'); $format = PhabricatorEnv::getEnvConfig('log.ssh.format'); $format = nonempty( $format, "[%D]...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/infrastructure/daemon/PhutilDaemon.php
src/infrastructure/daemon/PhutilDaemon.php
<?php /** * Scaffolding for implementing robust background processing scripts. * * * Autoscaling * =========== * * Autoscaling automatically launches copies of a daemon when it is busy * (scaling the pool up) and stops them when they're idle (scaling the pool * down). This is appropriate for daemons which per...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/infrastructure/daemon/PhutilDaemonHandle.php
src/infrastructure/daemon/PhutilDaemonHandle.php
<?php final class PhutilDaemonHandle extends Phobject { const EVENT_DID_LAUNCH = 'daemon.didLaunch'; const EVENT_DID_LOG = 'daemon.didLogMessage'; const EVENT_DID_HEARTBEAT = 'daemon.didHeartbeat'; const EVENT_WILL_GRACEFUL = 'daemon.willGraceful'; const EVENT_WILL_EXIT = 'daemon.willExit'; ...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/infrastructure/daemon/PhutilDaemonOverseer.php
src/infrastructure/daemon/PhutilDaemonOverseer.php
<?php /** * Oversees a daemon and restarts it if it fails. * * @task signals Signal Handling */ final class PhutilDaemonOverseer extends Phobject { private $argv; private static $instance; private $config; private $pools = array(); private $traceMode; private $traceMemory; private $daemonize; pri...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/infrastructure/daemon/PhutilDaemonPool.php
src/infrastructure/daemon/PhutilDaemonPool.php
<?php final class PhutilDaemonPool extends Phobject { private $properties = array(); private $commandLineArguments; private $overseer; private $daemons = array(); private $argv; private $lastAutoscaleUpdate; private $inShutdown; private function __construct() { // <empty> } public static f...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/infrastructure/daemon/PhabricatorDaemon.php
src/infrastructure/daemon/PhabricatorDaemon.php
<?php abstract class PhabricatorDaemon extends PhutilDaemon { protected function willRun() { parent::willRun(); $phabricator = phutil_get_library_root('phabricator'); $root = dirname($phabricator); require_once $root.'/scripts/__init_script__.php'; } protected function willSleep($duration) { ...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/infrastructure/daemon/PhutilDaemonOverseerModule.php
src/infrastructure/daemon/PhutilDaemonOverseerModule.php
<?php /** * Overseer modules allow daemons to be externally influenced. * * See @{class:PhabricatorDaemonOverseerModule} for a concrete example. */ abstract class PhutilDaemonOverseerModule extends Phobject { private $throttles = array(); /** * This method is used to indicate to the overseer that daemons...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/infrastructure/daemon/workers/PhabricatorTriggerDaemon.php
src/infrastructure/daemon/workers/PhabricatorTriggerDaemon.php
<?php /** * Schedule and execute event triggers, which run code at specific times. * * Also performs garbage collection of old logs, caches, etc. * * @task garbage Garbage Collection */ final class PhabricatorTriggerDaemon extends PhabricatorDaemon { const COUNTER_VERSION = 'trigger.version'; const COUNTE...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/infrastructure/daemon/workers/PhabricatorTaskmasterDaemon.php
src/infrastructure/daemon/workers/PhabricatorTaskmasterDaemon.php
<?php final class PhabricatorTaskmasterDaemon extends PhabricatorDaemon { protected function run() { do { PhabricatorCaches::destroyRequestCache(); $tasks = id(new PhabricatorWorkerLeaseQuery()) ->setLimit(1) ->execute(); if ($tasks) { $this->willBeginWork(); ...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/infrastructure/daemon/workers/PhabricatorWorker.php
src/infrastructure/daemon/workers/PhabricatorWorker.php
<?php /** * @task config Configuring Retries and Failures */ abstract class PhabricatorWorker extends Phobject { private $data; private static $runAllTasksInProcess = false; private $queuedTasks = array(); private $currentWorkerTask; // NOTE: Lower priority numbers execute first. The priority numbers h...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/infrastructure/daemon/workers/PhabricatorTaskmasterDaemonModule.php
src/infrastructure/daemon/workers/PhabricatorTaskmasterDaemonModule.php
<?php final class PhabricatorTaskmasterDaemonModule extends PhutilDaemonOverseerModule { public function shouldWakePool(PhutilDaemonPool $pool) { $class = $pool->getPoolDaemonClass(); if ($class != PhabricatorTaskmasterDaemon::class) { return false; } if ($this->shouldThrottle($class, 1)) ...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/infrastructure/daemon/workers/engineextension/PhabricatorWorkerDestructionEngineExtension.php
src/infrastructure/daemon/workers/engineextension/PhabricatorWorkerDestructionEngineExtension.php
<?php final class PhabricatorWorkerDestructionEngineExtension extends PhabricatorDestructionEngineExtension { const EXTENSIONKEY = 'workers'; public function getExtensionName() { return pht('Worker Tasks'); } public function destroyObject( PhabricatorDestructionEngine $engine, $object) { ...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/infrastructure/daemon/workers/storage/PhabricatorWorkerDAO.php
src/infrastructure/daemon/workers/storage/PhabricatorWorkerDAO.php
<?php abstract class PhabricatorWorkerDAO extends PhabricatorLiskDAO { public function getApplicationName() { return 'worker'; } }
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/infrastructure/daemon/workers/storage/PhabricatorWorkerTask.php
src/infrastructure/daemon/workers/storage/PhabricatorWorkerTask.php
<?php abstract class PhabricatorWorkerTask extends PhabricatorWorkerDAO { // NOTE: If you provide additional fields here, make sure they are handled // correctly in the archiving process. protected $taskClass; protected $leaseOwner; protected $leaseExpires; protected $failureCount; protected $dataID; ...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/infrastructure/daemon/workers/storage/PhabricatorWorkerTrigger.php
src/infrastructure/daemon/workers/storage/PhabricatorWorkerTrigger.php
<?php final class PhabricatorWorkerTrigger extends PhabricatorWorkerDAO implements PhabricatorDestructibleInterface, PhabricatorPolicyInterface { protected $triggerVersion; protected $clockClass; protected $clockProperties; protected $actionClass; protected $actionProperties; private $action ...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/infrastructure/daemon/workers/storage/PhabricatorWorkerSchemaSpec.php
src/infrastructure/daemon/workers/storage/PhabricatorWorkerSchemaSpec.php
<?php final class PhabricatorWorkerSchemaSpec extends PhabricatorConfigSchemaSpec { public function buildSchemata() { $this->buildEdgeSchemata(new PhabricatorWorkerBulkJob()); } }
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/infrastructure/daemon/workers/storage/PhabricatorWorkerBulkJob.php
src/infrastructure/daemon/workers/storage/PhabricatorWorkerBulkJob.php
<?php /** * @task implementation Job Implementation */ final class PhabricatorWorkerBulkJob extends PhabricatorWorkerDAO implements PhabricatorPolicyInterface, PhabricatorSubscribableInterface, PhabricatorApplicationTransactionInterface, PhabricatorDestructibleInterface { const STATUS_CONF...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/infrastructure/daemon/workers/storage/PhabricatorWorkerTriggerEvent.php
src/infrastructure/daemon/workers/storage/PhabricatorWorkerTriggerEvent.php
<?php final class PhabricatorWorkerTriggerEvent extends PhabricatorWorkerDAO { protected $triggerID; protected $lastEventEpoch; protected $nextEventEpoch; protected function getConfiguration() { return array( self::CONFIG_TIMESTAMPS => false, self::CONFIG_COLUMN_SCHEMA => array( 'la...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/infrastructure/daemon/workers/storage/PhabricatorWorkerBulkJobTransaction.php
src/infrastructure/daemon/workers/storage/PhabricatorWorkerBulkJobTransaction.php
<?php final class PhabricatorWorkerBulkJobTransaction extends PhabricatorApplicationTransaction { const TYPE_STATUS = 'bulkjob.status'; public function getApplicationName() { return 'worker'; } public function getApplicationTransactionType() { return PhabricatorWorkerBulkJobPHIDType::TYPECONST; ...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/infrastructure/daemon/workers/storage/PhabricatorWorkerBulkTask.php
src/infrastructure/daemon/workers/storage/PhabricatorWorkerBulkTask.php
<?php final class PhabricatorWorkerBulkTask extends PhabricatorWorkerDAO { const STATUS_WAITING = 'waiting'; const STATUS_RUNNING = 'running'; const STATUS_DONE = 'done'; const STATUS_FAIL = 'fail'; protected $bulkJobPHID; protected $objectPHID; protected $status; protected $data = array(); prot...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/infrastructure/daemon/workers/storage/PhabricatorWorkerArchiveTask.php
src/infrastructure/daemon/workers/storage/PhabricatorWorkerArchiveTask.php
<?php final class PhabricatorWorkerArchiveTask extends PhabricatorWorkerTask { const RESULT_SUCCESS = 0; const RESULT_FAILURE = 1; const RESULT_CANCELLED = 2; protected $duration; protected $result; protected $archivedEpoch; protected function getConfiguration() { $parent = parent::getConfi...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/infrastructure/daemon/workers/storage/PhabricatorWorkerTaskData.php
src/infrastructure/daemon/workers/storage/PhabricatorWorkerTaskData.php
<?php final class PhabricatorWorkerTaskData extends PhabricatorWorkerDAO { protected $data; protected function getConfiguration() { return array( self::CONFIG_TIMESTAMPS => false, self::CONFIG_SERIALIZATION => array( 'data' => self::SERIALIZATION_JSON, ), ) + parent::getConfigur...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/infrastructure/daemon/workers/storage/PhabricatorWorkerActiveTask.php
src/infrastructure/daemon/workers/storage/PhabricatorWorkerActiveTask.php
<?php final class PhabricatorWorkerActiveTask extends PhabricatorWorkerTask { protected $failureTime; private $serverTime; private $localTime; protected function getConfiguration() { $parent = parent::getConfiguration(); $config = array( self::CONFIG_IDS => self::IDS_COUNTER, self::CONF...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/infrastructure/daemon/workers/management/PhabricatorWorkerTriggerManagementFireWorkflow.php
src/infrastructure/daemon/workers/management/PhabricatorWorkerTriggerManagementFireWorkflow.php
<?php final class PhabricatorWorkerTriggerManagementFireWorkflow extends PhabricatorWorkerTriggerManagementWorkflow { protected function didConstruct() { $this ->setName('fire') ->setExamples('**fire** --id __id__') ->setSynopsis( pht( 'Activates selected triggers, firing t...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/infrastructure/daemon/workers/management/PhabricatorWorkerManagementCancelWorkflow.php
src/infrastructure/daemon/workers/management/PhabricatorWorkerManagementCancelWorkflow.php
<?php final class PhabricatorWorkerManagementCancelWorkflow extends PhabricatorWorkerManagementWorkflow { protected function didConstruct() { $this ->setName('cancel') ->setExamples('**cancel** __selectors__') ->setSynopsis( pht( 'Cancel selected tasks. The work these tasks...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/infrastructure/daemon/workers/management/PhabricatorWorkerManagementRetryWorkflow.php
src/infrastructure/daemon/workers/management/PhabricatorWorkerManagementRetryWorkflow.php
<?php final class PhabricatorWorkerManagementRetryWorkflow extends PhabricatorWorkerManagementWorkflow { protected function didConstruct() { $this ->setName('retry') ->setExamples('**retry** __selectors__') ->setSynopsis( pht( 'Retry selected tasks which previously failed p...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/infrastructure/daemon/workers/management/PhabricatorWorkerManagementWorkflow.php
src/infrastructure/daemon/workers/management/PhabricatorWorkerManagementWorkflow.php
<?php abstract class PhabricatorWorkerManagementWorkflow extends PhabricatorManagementWorkflow { protected function getTaskSelectionArguments() { return array( array( 'name' => 'id', 'param' => 'id', 'repeat' => true, 'help' => pht('Select one or more tasks by ID.'), ...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/infrastructure/daemon/workers/management/PhabricatorWorkerManagementFreeWorkflow.php
src/infrastructure/daemon/workers/management/PhabricatorWorkerManagementFreeWorkflow.php
<?php final class PhabricatorWorkerManagementFreeWorkflow extends PhabricatorWorkerManagementWorkflow { protected function didConstruct() { $this ->setName('free') ->setExamples('**free** __selectors__') ->setSynopsis( pht( 'Free leases on selected tasks. If the daemon hold...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/infrastructure/daemon/workers/management/PhabricatorWorkerTriggerManagementWorkflow.php
src/infrastructure/daemon/workers/management/PhabricatorWorkerTriggerManagementWorkflow.php
<?php abstract class PhabricatorWorkerTriggerManagementWorkflow extends PhabricatorManagementWorkflow { protected function getTriggerSelectionArguments() { return array( array( 'name' => 'id', 'param' => 'id', 'repeat' => true, 'help' => pht('Select one or more triggers b...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/infrastructure/daemon/workers/management/PhabricatorWorkerManagementFloodWorkflow.php
src/infrastructure/daemon/workers/management/PhabricatorWorkerManagementFloodWorkflow.php
<?php final class PhabricatorWorkerManagementFloodWorkflow extends PhabricatorWorkerManagementWorkflow { protected function didConstruct() { $this ->setName('flood') ->setExamples('**flood**') ->setSynopsis( pht( 'Flood the queue with test tasks. This command is intended fo...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/infrastructure/daemon/workers/management/PhabricatorWorkerManagementExecuteWorkflow.php
src/infrastructure/daemon/workers/management/PhabricatorWorkerManagementExecuteWorkflow.php
<?php final class PhabricatorWorkerManagementExecuteWorkflow extends PhabricatorWorkerManagementWorkflow { protected function didConstruct() { $this ->setName('execute') ->setExamples('**execute** __selectors__') ->setSynopsis( pht( 'Execute a task explicitly. This command ...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/infrastructure/daemon/workers/management/PhabricatorWorkerManagementDelayWorkflow.php
src/infrastructure/daemon/workers/management/PhabricatorWorkerManagementDelayWorkflow.php
<?php final class PhabricatorWorkerManagementDelayWorkflow extends PhabricatorWorkerManagementWorkflow { protected function didConstruct() { $this ->setName('delay') ->setExamples( implode( "\n", array( '**delay** __selectors__ --until __date__', ...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/infrastructure/daemon/workers/management/PhabricatorWorkerManagementPriorityWorkflow.php
src/infrastructure/daemon/workers/management/PhabricatorWorkerManagementPriorityWorkflow.php
<?php final class PhabricatorWorkerManagementPriorityWorkflow extends PhabricatorWorkerManagementWorkflow { protected function didConstruct() { $this ->setName('priority') ->setExamples('**priority** __selectors__ --priority __value__') ->setSynopsis( pht( 'Change the prior...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/infrastructure/daemon/workers/query/PhabricatorWorkerBulkJobQuery.php
src/infrastructure/daemon/workers/query/PhabricatorWorkerBulkJobQuery.php
<?php /** * @extends PhabricatorCursorPagedPolicyAwareQuery<PhabricatorWorkerBulkJob> */ final class PhabricatorWorkerBulkJobQuery extends PhabricatorCursorPagedPolicyAwareQuery { private $ids; private $phids; private $authorPHIDs; private $bulkJobTypes; private $statuses; public function withIDs(arr...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/infrastructure/daemon/workers/query/PhabricatorWorkerBulkJobSearchEngine.php
src/infrastructure/daemon/workers/query/PhabricatorWorkerBulkJobSearchEngine.php
<?php final class PhabricatorWorkerBulkJobSearchEngine extends PhabricatorApplicationSearchEngine { public function getResultTypeDescription() { return pht('Daemon Bulk Jobs'); } public function getApplicationClassName() { return PhabricatorDaemonsApplication::class; } public function newQuery()...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/infrastructure/daemon/workers/query/PhabricatorWorkerArchiveTaskQuery.php
src/infrastructure/daemon/workers/query/PhabricatorWorkerArchiveTaskQuery.php
<?php final class PhabricatorWorkerArchiveTaskQuery extends PhabricatorWorkerTaskQuery { public function execute() { $task_table = new PhabricatorWorkerArchiveTask(); $conn_r = $task_table->establishConnection('r'); $rows = queryfx_all( $conn_r, 'SELECT * FROM %T %Q %Q %Q', $task_t...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/infrastructure/daemon/workers/query/PhabricatorWorkerActiveTaskQuery.php
src/infrastructure/daemon/workers/query/PhabricatorWorkerActiveTaskQuery.php
<?php final class PhabricatorWorkerActiveTaskQuery extends PhabricatorWorkerTaskQuery { public function execute() { $task_table = new PhabricatorWorkerActiveTask(); $conn_r = $task_table->establishConnection('r'); $rows = queryfx_all( $conn_r, 'SELECT * FROM %T %Q %Q %Q', $task_tab...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/infrastructure/daemon/workers/query/PhabricatorWorkerTaskQuery.php
src/infrastructure/daemon/workers/query/PhabricatorWorkerTaskQuery.php
<?php abstract class PhabricatorWorkerTaskQuery extends PhabricatorQuery { private $ids; private $dateModifiedSince; private $dateCreatedBefore; private $objectPHIDs; private $containerPHIDs; private $classNames; private $limit; private $minFailureCount; private $maxFailureCount; private $minPri...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/infrastructure/daemon/workers/query/PhabricatorWorkerTriggerQuery.php
src/infrastructure/daemon/workers/query/PhabricatorWorkerTriggerQuery.php
<?php final class PhabricatorWorkerTriggerQuery extends PhabricatorPolicyAwareQuery { // NOTE: This is a PolicyAware query so it can work with other infrastructure // like handles; triggers themselves are low-level and do not have // meaningful policies. const ORDER_ID = 'id'; const ORDER_EXECUTION = 'ex...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/infrastructure/daemon/workers/query/PhabricatorWorkerLeaseQuery.php
src/infrastructure/daemon/workers/query/PhabricatorWorkerLeaseQuery.php
<?php /** * Select and lease tasks from the worker task queue. */ final class PhabricatorWorkerLeaseQuery extends PhabricatorQuery { const PHASE_LEASED = 'leased'; const PHASE_UNLEASED = 'unleased'; const PHASE_EXPIRED = 'expired'; private $ids; private $objectPHIDs; private $limit; private $skipLea...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/infrastructure/daemon/workers/query/PhabricatorWorkerBulkJobTransactionQuery.php
src/infrastructure/daemon/workers/query/PhabricatorWorkerBulkJobTransactionQuery.php
<?php final class PhabricatorWorkerBulkJobTransactionQuery extends PhabricatorApplicationTransactionQuery { public function getTemplateApplicationTransaction() { return new PhabricatorWorkerBulkJobTransaction(); } public function getQueryApplicationClass() { return PhabricatorDaemonsApplication::clas...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/infrastructure/daemon/workers/bulk/PhabricatorWorkerBulkJobCreateWorker.php
src/infrastructure/daemon/workers/bulk/PhabricatorWorkerBulkJobCreateWorker.php
<?php final class PhabricatorWorkerBulkJobCreateWorker extends PhabricatorWorkerBulkJobWorker { protected function doWork() { $lock = $this->acquireJobLock(); $job = $this->loadJob(); $actor = $this->loadActor($job); $status = $job->getStatus(); switch ($status) { case PhabricatorWorke...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/infrastructure/daemon/workers/bulk/PhabricatorWorkerSingleBulkJobType.php
src/infrastructure/daemon/workers/bulk/PhabricatorWorkerSingleBulkJobType.php
<?php /** * An bulk job which can not be parallelized and executes only one task. */ abstract class PhabricatorWorkerSingleBulkJobType extends PhabricatorWorkerBulkJobType { public function getDescriptionForConfirm(PhabricatorWorkerBulkJob $job) { return null; } public function getJobSize(PhabricatorWo...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/infrastructure/daemon/workers/bulk/PhabricatorWorkerBulkJobWorker.php
src/infrastructure/daemon/workers/bulk/PhabricatorWorkerBulkJobWorker.php
<?php abstract class PhabricatorWorkerBulkJobWorker extends PhabricatorWorker { final protected function acquireJobLock() { return PhabricatorGlobalLock::newLock('bulkjob.'.$this->getJobID()) ->lock(15); } final protected function acquireTaskLock() { return PhabricatorGlobalLock::newLock('bulkt...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/infrastructure/daemon/workers/bulk/PhabricatorWorkerBulkJobTaskWorker.php
src/infrastructure/daemon/workers/bulk/PhabricatorWorkerBulkJobTaskWorker.php
<?php final class PhabricatorWorkerBulkJobTaskWorker extends PhabricatorWorkerBulkJobWorker { protected function doWork() { $lock = $this->acquireTaskLock(); $task = $this->loadTask(); $status = $task->getStatus(); switch ($task->getStatus()) { case PhabricatorWorkerBulkTask::STATUS_WAITING...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/infrastructure/daemon/workers/bulk/PhabricatorWorkerBulkJobType.php
src/infrastructure/daemon/workers/bulk/PhabricatorWorkerBulkJobType.php
<?php abstract class PhabricatorWorkerBulkJobType extends Phobject { abstract public function getJobName(PhabricatorWorkerBulkJob $job); abstract public function getBulkJobTypeKey(); abstract public function getJobSize(PhabricatorWorkerBulkJob $job); abstract public function getDescriptionForConfirm( Phab...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/infrastructure/daemon/workers/action/PhabricatorLogTriggerAction.php
src/infrastructure/daemon/workers/action/PhabricatorLogTriggerAction.php
<?php /** * Trivial action which logs a message. * * This action is primarily useful for testing triggers. */ final class PhabricatorLogTriggerAction extends PhabricatorTriggerAction { public function validateProperties(array $properties) { PhutilTypeSpec::checkMap( $properties, array( ...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/infrastructure/daemon/workers/action/PhabricatorTriggerAction.php
src/infrastructure/daemon/workers/action/PhabricatorTriggerAction.php
<?php /** * A trigger action reacts to a scheduled event. * * Almost all events should use a @{class:PhabricatorScheduleTaskTriggerAction}. * Avoid introducing new actions without strong justification. See that class * for discussion of concerns. */ abstract class PhabricatorTriggerAction extends Phobject { p...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/infrastructure/daemon/workers/action/PhabricatorScheduleTaskTriggerAction.php
src/infrastructure/daemon/workers/action/PhabricatorScheduleTaskTriggerAction.php
<?php /** * Trigger action which queues a task. * * Most triggers should take this action: triggers need to execute as quickly * as possible, and should generally queue tasks instead of doing any real * work. * * In some cases, triggers could execute more quickly by examining the * scheduled action time and co...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/infrastructure/daemon/workers/editor/PhabricatorWorkerBulkJobEditor.php
src/infrastructure/daemon/workers/editor/PhabricatorWorkerBulkJobEditor.php
<?php final class PhabricatorWorkerBulkJobEditor extends PhabricatorApplicationTransactionEditor { public function getEditorApplicationClass() { return PhabricatorDaemonsApplication::class; } public function getEditorObjectsDescription() { return pht('Bulk Jobs'); } public function getTransactio...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/infrastructure/daemon/workers/exception/PhabricatorWorkerYieldException.php
src/infrastructure/daemon/workers/exception/PhabricatorWorkerYieldException.php
<?php /** * Allows tasks to yield to other tasks. * * If a worker throws this exception while processing a task, the task will be * pushed toward the back of the queue and tried again later. */ final class PhabricatorWorkerYieldException extends Exception { private $duration; public function __construct($du...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/infrastructure/daemon/workers/exception/PhabricatorWorkerPermanentFailureException.php
src/infrastructure/daemon/workers/exception/PhabricatorWorkerPermanentFailureException.php
<?php final class PhabricatorWorkerPermanentFailureException 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/daemon/workers/__tests__/PhabricatorTestWorker.php
src/infrastructure/daemon/workers/__tests__/PhabricatorTestWorker.php
<?php final class PhabricatorTestWorker extends PhabricatorWorker { public function getRequiredLeaseTime() { return idx( $this->getTaskData(), 'getRequiredLeaseTime', parent::getRequiredLeaseTime()); } public function getMaximumRetryCount() { return idx( $this->getTaskData(), ...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/infrastructure/daemon/workers/__tests__/PhabricatorWorkerBulkJobTestCase.php
src/infrastructure/daemon/workers/__tests__/PhabricatorWorkerBulkJobTestCase.php
<?php final class PhabricatorWorkerBulkJobTestCase extends PhabricatorTestCase { public function testGetAllBulkJobTypes() { PhabricatorWorkerBulkJobType::getAllJobTypes(); $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/daemon/workers/__tests__/PhabricatorWorkerTestCase.php
src/infrastructure/daemon/workers/__tests__/PhabricatorWorkerTestCase.php
<?php final class PhabricatorWorkerTestCase extends PhabricatorTestCase { protected function getPhabricatorTestCaseConfiguration() { return array( self::PHABRICATOR_TESTCONFIG_BUILD_STORAGE_FIXTURES => true, ); } protected function willRunOneTest($test) { parent::willRunOneTest($test); /...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/infrastructure/daemon/workers/phid/PhabricatorWorkerTriggerPHIDType.php
src/infrastructure/daemon/workers/phid/PhabricatorWorkerTriggerPHIDType.php
<?php final class PhabricatorWorkerTriggerPHIDType extends PhabricatorPHIDType { const TYPECONST = 'TRIG'; public function getTypeName() { return pht('Trigger'); } public function newObject() { return new PhabricatorWorkerTrigger(); } public function getPHIDTypeApplicationClass() { return P...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/infrastructure/daemon/workers/phid/PhabricatorWorkerBulkJobPHIDType.php
src/infrastructure/daemon/workers/phid/PhabricatorWorkerBulkJobPHIDType.php
<?php final class PhabricatorWorkerBulkJobPHIDType extends PhabricatorPHIDType { const TYPECONST = 'BULK'; public function getTypeName() { return pht('Bulk Job'); } public function newObject() { return new PhabricatorWorkerBulkJob(); } public function getPHIDTypeApplicationClass() { return ...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/infrastructure/daemon/workers/clock/PhabricatorTriggerClock.php
src/infrastructure/daemon/workers/clock/PhabricatorTriggerClock.php
<?php /** * A trigger clock implements scheduling rules for an event. * * Two examples of triggered events are a subscription which bills on the 12th * of every month, or a meeting reminder which sends an email 15 minutes before * an event. A trigger clock contains the logic to figure out exactly when * those ti...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/infrastructure/daemon/workers/clock/PhabricatorSubscriptionTriggerClock.php
src/infrastructure/daemon/workers/clock/PhabricatorSubscriptionTriggerClock.php
<?php /** * Triggers an event every month on the same day of the month, like the 12th * of the month. * * If a given month does not have such a day (for instance, the clock triggers * on the 30th of each month and the month in question is February, which never * has a 30th day), it will trigger on the last day o...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/infrastructure/daemon/workers/clock/PhabricatorNeverTriggerClock.php
src/infrastructure/daemon/workers/clock/PhabricatorNeverTriggerClock.php
<?php /** * Never triggers an event. * * This clock can be used for testing, or to cancel events. */ final class PhabricatorNeverTriggerClock extends PhabricatorTriggerClock { public function validateProperties(array $properties) { PhutilTypeSpec::checkMap( $properties, array()); } 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/daemon/workers/clock/PhabricatorOneTimeTriggerClock.php
src/infrastructure/daemon/workers/clock/PhabricatorOneTimeTriggerClock.php
<?php /** * Triggers an event exactly once, at a specific epoch time. */ final class PhabricatorOneTimeTriggerClock extends PhabricatorTriggerClock { public function validateProperties(array $properties) { PhutilTypeSpec::checkMap( $properties, array( 'epoch' => 'int', )); } p...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/infrastructure/daemon/workers/clock/PhabricatorMetronomicTriggerClock.php
src/infrastructure/daemon/workers/clock/PhabricatorMetronomicTriggerClock.php
<?php /** * Triggers an event repeatedly, delaying a fixed number of seconds between * triggers. * * For example, this clock can trigger an event every 30 seconds. */ final class PhabricatorMetronomicTriggerClock extends PhabricatorTriggerClock { public function validateProperties(array $properties) { Phut...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/infrastructure/daemon/workers/clock/PhabricatorDailyRoutineTriggerClock.php
src/infrastructure/daemon/workers/clock/PhabricatorDailyRoutineTriggerClock.php
<?php /** * Triggers a daily routine, like server backups. * * This clock triggers events every 24 hours, using UTC. It does not use a * locale, and is intended for technical processes like backing up a server * every night. * * Because UTC does not have daylight savings, the local hour when this event * occur...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/infrastructure/daemon/workers/clock/__tests__/PhabricatorTriggerClockTestCase.php
src/infrastructure/daemon/workers/clock/__tests__/PhabricatorTriggerClockTestCase.php
<?php final class PhabricatorTriggerClockTestCase extends PhabricatorTestCase { public function testOneTimeTriggerClock() { $now = PhabricatorTime::getNow(); $clock = new PhabricatorOneTimeTriggerClock( array( 'epoch' => $now, )); $this->assertEqual( $now, $clock->getNe...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/infrastructure/daemon/contentsource/PhabricatorDaemonContentSource.php
src/infrastructure/daemon/contentsource/PhabricatorDaemonContentSource.php
<?php final class PhabricatorDaemonContentSource extends PhabricatorContentSource { const SOURCECONST = 'daemon'; public function getSourceName() { return pht('Daemon'); } public function getSourceDescription() { return pht('Updates from background processing in daemons.'); } }
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/infrastructure/daemon/contentsource/PhabricatorBulkContentSource.php
src/infrastructure/daemon/contentsource/PhabricatorBulkContentSource.php
<?php final class PhabricatorBulkContentSource extends PhabricatorContentSource { const SOURCECONST = 'bulk'; public function getSourceName() { return pht('Bulk Update'); } public function getSourceDescription() { return pht('Changes made by bulk update.'); } }
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/infrastructure/daemon/overseer/PhabricatorDaemonOverseerModule.php
src/infrastructure/daemon/overseer/PhabricatorDaemonOverseerModule.php
<?php /** * Overseer module. * * The primary purpose of this overseer module is to poll for configuration * changes and reload daemons when the configuration changes. */ final class PhabricatorDaemonOverseerModule extends PhutilDaemonOverseerModule { private $configVersion; public function shouldReloadDae...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/infrastructure/daemon/garbagecollector/PhabricatorGarbageCollector.php
src/infrastructure/daemon/garbagecollector/PhabricatorGarbageCollector.php
<?php /** * @task info Getting Collector Information * @task collect Collecting Garbage */ abstract class PhabricatorGarbageCollector extends Phobject { /* -( Getting Collector Information )-------------------------------------- */ /** * Get a human readable name for what this collector cleans up, like ...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/infrastructure/daemon/garbagecollector/management/PhabricatorGarbageCollectorManagementCollectWorkflow.php
src/infrastructure/daemon/garbagecollector/management/PhabricatorGarbageCollectorManagementCollectWorkflow.php
<?php final class PhabricatorGarbageCollectorManagementCollectWorkflow extends PhabricatorGarbageCollectorManagementWorkflow { protected function didConstruct() { $this ->setName('collect') ->setExamples('**collect** --collector __collector__') ->setSynopsis( pht('Run a garbage colle...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/infrastructure/daemon/garbagecollector/management/PhabricatorGarbageCollectorManagementSetPolicyWorkflow.php
src/infrastructure/daemon/garbagecollector/management/PhabricatorGarbageCollectorManagementSetPolicyWorkflow.php
<?php final class PhabricatorGarbageCollectorManagementSetPolicyWorkflow extends PhabricatorGarbageCollectorManagementWorkflow { protected function didConstruct() { $this ->setName('set-policy') ->setExamples( "**set-policy** --collector __collector__ --days 30\n". "**set-policy** ...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/infrastructure/daemon/garbagecollector/management/PhabricatorGarbageCollectorManagementCompactEdgesWorkflow.php
src/infrastructure/daemon/garbagecollector/management/PhabricatorGarbageCollectorManagementCompactEdgesWorkflow.php
<?php final class PhabricatorGarbageCollectorManagementCompactEdgesWorkflow extends PhabricatorGarbageCollectorManagementWorkflow { protected function didConstruct() { $this ->setName('compact-edges') ->setExamples('**compact-edges**') ->setSynopsis( pht( 'Rebuild old edge ...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/infrastructure/daemon/garbagecollector/management/PhabricatorGarbageCollectorManagementWorkflow.php
src/infrastructure/daemon/garbagecollector/management/PhabricatorGarbageCollectorManagementWorkflow.php
<?php abstract class PhabricatorGarbageCollectorManagementWorkflow extends PhabricatorManagementWorkflow { protected function getCollector($const) { $collectors = PhabricatorGarbageCollector::getAllCollectors(); $collector_list = array_keys($collectors); sort($collector_list); $collector_list = i...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/infrastructure/daemon/control/PhabricatorDaemonReference.php
src/infrastructure/daemon/control/PhabricatorDaemonReference.php
<?php // TODO: See T13321. After the removal of daemon PID files this class // no longer makes as much sense as it once did. final class PhabricatorDaemonReference extends Phobject { public static function isProcessRunning($pid) { if (!$pid) { return false; } if (function_exists('posix_kill')) {...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/infrastructure/javelin/markup.php
src/infrastructure/javelin/markup.php
<?php /** * @return PhutilSafeHTML */ function javelin_tag( $tag, array $attributes = array(), $content = null) { if (isset($attributes['sigil']) || isset($attributes['meta']) || isset($attributes['mustcapture'])) { foreach ($attributes as $k => $v) { switch ($k) { case 'sigil...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/infrastructure/javelin/Javelin.php
src/infrastructure/javelin/Javelin.php
<?php final class Javelin extends Phobject { public static function initBehavior( $behavior, array $config = array(), $source_name = 'phabricator') { $response = CelerityAPI::getStaticResourceResponse(); $response->initBehavior($behavior, $config, $source_name); } }
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/infrastructure/parser/PhutilPygmentizeParser.php
src/infrastructure/parser/PhutilPygmentizeParser.php
<?php /** * Parser that converts `pygmetize` output or similar HTML blocks from "class" * attributes to "style" attributes. */ final class PhutilPygmentizeParser extends Phobject { private $map = array(); public function setMap(array $map) { $this->map = $map; return $this; } public function getM...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/infrastructure/parser/PhutilURIHelper.php
src/infrastructure/parser/PhutilURIHelper.php
<?php /** * A simple wrapper for PhutilURI, to be aware of the * relative/absolute context, and other minor things. */ final class PhutilURIHelper extends Phobject { /** * String version of your original URI. * @var string */ private $uriStr; /** * Structured version of your URI. * @var Phuti...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/infrastructure/parser/__tests__/PhutilURIHelperTestCase.php
src/infrastructure/parser/__tests__/PhutilURIHelperTestCase.php
<?php final class PhutilURIHelperTestCase extends PhabricatorTestCase { public function testPhutilURIHelper() { // Every row is a test. Every column is: // - 0: name of the test // - 1: test input value // - 2: is the URI pointing to Phorge itself? // - 3: is the URI an anchor? (no domain, no pr...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/infrastructure/parser/__tests__/PhutilPygmentizeParserTestCase.php
src/infrastructure/parser/__tests__/PhutilPygmentizeParserTestCase.php
<?php final class PhutilPygmentizeParserTestCase extends PhutilTestCase { public function testPygmentizeParser() { $this->tryParser( '', '', array(), pht('Empty')); $this->tryParser( '<span class="mi">1</span>', '<span style="color: #ff0000">1</span>', array( ...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/infrastructure/markup/render.php
src/infrastructure/markup/render.php
<?php /** * Render an HTML tag in a way that treats user content as unsafe by default. * * Tag rendering has some special logic which implements security features: * * - When rendering `<a>` tags, if the `rel` attribute is not specified, it * is interpreted as `rel="noreferrer"`. * - When rendering `<a>...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/infrastructure/markup/PhutilRemarkupBlockStorage.php
src/infrastructure/markup/PhutilRemarkupBlockStorage.php
<?php /** * Remarkup prevents several classes of text-processing problems by replacing * tokens in the text as they are marked up. For example, if you write something * like this: * * //D12// * * It is processed in several stages. First the "D12" matches and is replaced * with a token, in the form of "<0x01>...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/infrastructure/markup/PhabricatorMarkupOneOff.php
src/infrastructure/markup/PhabricatorMarkupOneOff.php
<?php /** * DEPRECATED. Use @{class:PHUIRemarkupView}. */ final class PhabricatorMarkupOneOff extends Phobject implements PhabricatorMarkupInterface { private $content; private $preserveLinebreaks; private $engineRuleset; private $engine; private $disableCache; private $contentCacheFragment; priv...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false