repo
stringlengths
7
63
file_url
stringlengths
81
284
file_path
stringlengths
5
200
content
stringlengths
0
32.8k
language
stringclasses
1 value
license
stringclasses
7 values
commit_sha
stringlengths
40
40
retrieved_at
stringdate
2026-01-04 15:02:33
2026-01-05 05:24:06
truncated
bool
2 classes
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/applications/ponder/storage/PonderQuestion.php
src/applications/ponder/storage/PonderQuestion.php
<?php final class PonderQuestion extends PonderDAO implements PhabricatorApplicationTransactionInterface, PhabricatorMarkupInterface, PhabricatorSubscribableInterface, PhabricatorFlaggableInterface, PhabricatorPolicyInterface, PhabricatorTokenReceiverInterface, PhabricatorProjectInterface...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/applications/ponder/storage/PonderAnswer.php
src/applications/ponder/storage/PonderAnswer.php
<?php final class PonderAnswer extends PonderDAO implements PhabricatorApplicationTransactionInterface, PhabricatorMarkupInterface, PhabricatorPolicyInterface, PhabricatorFlaggableInterface, PhabricatorSubscribableInterface, PhabricatorDestructibleInterface { const MARKUP_FIELD_CONTENT = '...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/applications/ponder/storage/__tests__/PonderQuestionStatusTestCase.php
src/applications/ponder/storage/__tests__/PonderQuestionStatusTestCase.php
<?php final class PonderQuestionStatusTestCase extends PhutilTestCase { public function testClosedStatuses() { $statuses = PonderQuestionStatus::getQuestionStatusClosedMap(); foreach ($statuses as $status) { $question = new PonderQuestion(); $question->setStatus($status); $this->assertEqu...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/applications/ponder/query/PonderQuestionTransactionQuery.php
src/applications/ponder/query/PonderQuestionTransactionQuery.php
<?php final class PonderQuestionTransactionQuery extends PhabricatorApplicationTransactionQuery { public function getTemplateApplicationTransaction() { return new PonderQuestionTransaction(); } public function getQueryApplicationClass() { return PhabricatorPonderApplication::class; } }
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/applications/ponder/query/PonderAnswerQuery.php
src/applications/ponder/query/PonderAnswerQuery.php
<?php /** * @extends PhabricatorCursorPagedPolicyAwareQuery<PonderAnswer> */ final class PonderAnswerQuery extends PhabricatorCursorPagedPolicyAwareQuery { private $ids; private $phids; private $authorPHIDs; private $questionIDs; public function withIDs(array $ids) { $this->ids = $ids; return $...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/applications/ponder/query/PonderQuestionQuery.php
src/applications/ponder/query/PonderQuestionQuery.php
<?php /** * @extends PhabricatorCursorPagedPolicyAwareQuery<PonderQuestion> */ final class PonderQuestionQuery extends PhabricatorCursorPagedPolicyAwareQuery { private $ids; private $phids; private $status; private $authorPHIDs; private $answererPHIDs; private $needProjectPHIDs; private $needAnswe...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/applications/ponder/query/PonderAnswerTransactionQuery.php
src/applications/ponder/query/PonderAnswerTransactionQuery.php
<?php final class PonderAnswerTransactionQuery extends PhabricatorApplicationTransactionQuery { public function getTemplateApplicationTransaction() { return new PonderAnswerTransaction(); } public function getQueryApplicationClass() { return PhabricatorPonderApplication::class; } }
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/applications/ponder/query/PonderQuestionSearchEngine.php
src/applications/ponder/query/PonderQuestionSearchEngine.php
<?php final class PonderQuestionSearchEngine extends PhabricatorApplicationSearchEngine { public function getResultTypeDescription() { return pht('Ponder Questions'); } public function getApplicationClassName() { return PhabricatorPonderApplication::class; } public function newQuery() { retu...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/applications/ponder/mail/PonderAnswerReplyHandler.php
src/applications/ponder/mail/PonderAnswerReplyHandler.php
<?php final class PonderAnswerReplyHandler extends PhabricatorApplicationTransactionReplyHandler { public function validateMailReceiver($mail_receiver) { if (!($mail_receiver instanceof PonderAnswer)) { throw new Exception(pht('Mail receiver is not a %s!', 'PonderAnswer')); } } public function ...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/applications/ponder/mail/PonderAnswerMailReceiver.php
src/applications/ponder/mail/PonderAnswerMailReceiver.php
<?php final class PonderAnswerMailReceiver extends PhabricatorObjectMailReceiver { public function isEnabled() { return PhabricatorApplication::isClassInstalled( PhabricatorPonderApplication::class); } protected function getObjectPattern() { return 'ANSR[1-9]\d*'; } protected function loadOb...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/applications/ponder/mail/PonderQuestionMailReceiver.php
src/applications/ponder/mail/PonderQuestionMailReceiver.php
<?php final class PonderQuestionMailReceiver extends PhabricatorObjectMailReceiver { public function isEnabled() { return PhabricatorApplication::isClassInstalled( PhabricatorPonderApplication::class); } protected function getObjectPattern() { return 'Q[1-9]\d*'; } protected function loadObj...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/applications/ponder/mail/PonderQuestionReplyHandler.php
src/applications/ponder/mail/PonderQuestionReplyHandler.php
<?php final class PonderQuestionReplyHandler extends PhabricatorApplicationTransactionReplyHandler { public function validateMailReceiver($mail_receiver) { if (!($mail_receiver instanceof PonderQuestion)) { throw new Exception(pht('Mail receiver is not a %s!', 'PonderQuestion')); } } public fun...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/applications/ponder/mail/PonderQuestionCreateMailReceiver.php
src/applications/ponder/mail/PonderQuestionCreateMailReceiver.php
<?php final class PonderQuestionCreateMailReceiver extends PhabricatorApplicationMailReceiver { protected function newApplication() { return new PhabricatorPonderApplication(); } protected function processReceivedMail( PhabricatorMetaMTAReceivedMail $mail, PhutilEmailAddress $target) { $autho...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/applications/ponder/editor/PonderQuestionEditor.php
src/applications/ponder/editor/PonderQuestionEditor.php
<?php final class PonderQuestionEditor extends PonderEditor { private $answer; public function getEditorObjectsDescription() { return pht('Ponder Questions'); } public function getCreateObjectTitle($author, $object) { return pht('%s asked this question.', $author); } public function getCreate...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/applications/ponder/editor/PonderEditor.php
src/applications/ponder/editor/PonderEditor.php
<?php abstract class PonderEditor extends PhabricatorApplicationTransactionEditor { public function getEditorApplicationClass() { return PhabricatorPonderApplication::class; } protected function getMailSubjectPrefix() { return '[Ponder]'; } }
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/applications/ponder/editor/PonderQuestionEditEngine.php
src/applications/ponder/editor/PonderQuestionEditEngine.php
<?php final class PonderQuestionEditEngine extends PhabricatorEditEngine { const ENGINECONST = 'ponder.question'; public function getEngineName() { return pht('Ponder Question'); } public function getEngineApplicationClass() { return PhabricatorPonderApplication::class; } public function getS...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/applications/ponder/editor/PonderAnswerEditor.php
src/applications/ponder/editor/PonderAnswerEditor.php
<?php final class PonderAnswerEditor extends PonderEditor { public function getEditorObjectsDescription() { return pht('Ponder Answers'); } public function getCreateObjectTitle($author, $object) { return pht('%s added this answer.', $author); } public function getCreateObjectTitleForFeed($author, ...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/applications/ponder/xaction/PonderAnswerContentTransaction.php
src/applications/ponder/xaction/PonderAnswerContentTransaction.php
<?php final class PonderAnswerContentTransaction extends PonderAnswerTransactionType { const TRANSACTIONTYPE = 'ponder.answer:content'; public function generateOldValue($object) { return $object->getContent(); } public function applyInternalEffects($object, $value) { $object->setContent($value); ...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/applications/ponder/xaction/PonderQuestionTitleTransaction.php
src/applications/ponder/xaction/PonderQuestionTitleTransaction.php
<?php final class PonderQuestionTitleTransaction extends PonderQuestionTransactionType { const TRANSACTIONTYPE = 'ponder.question:question'; public function generateOldValue($object) { return $object->getTitle(); } public function applyInternalEffects($object, $value) { $object->setTitle($value); ...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/applications/ponder/xaction/PonderAnswerStatusTransaction.php
src/applications/ponder/xaction/PonderAnswerStatusTransaction.php
<?php final class PonderAnswerStatusTransaction extends PonderAnswerTransactionType { const TRANSACTIONTYPE = 'ponder.answer:status'; public function generateOldValue($object) { return $object->getStatus(); } public function applyInternalEffects($object, $value) { $object->setStatus($value); } ...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/applications/ponder/xaction/PonderAnswerQuestionIDTransaction.php
src/applications/ponder/xaction/PonderAnswerQuestionIDTransaction.php
<?php final class PonderAnswerQuestionIDTransaction extends PonderAnswerTransactionType { const TRANSACTIONTYPE = 'ponder.answer:question-id'; public function generateOldValue($object) { return $object->getQuestionID(); } public function applyInternalEffects($object, $value) { $object->setQuestion...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/applications/ponder/xaction/PonderQuestionAnswerWikiTransaction.php
src/applications/ponder/xaction/PonderQuestionAnswerWikiTransaction.php
<?php final class PonderQuestionAnswerWikiTransaction extends PonderQuestionTransactionType { const TRANSACTIONTYPE = 'ponder.question:wiki'; public function generateOldValue($object) { return $object->getAnswerWiki(); } public function applyInternalEffects($object, $value) { $object->setAnswerWik...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/applications/ponder/xaction/PonderQuestionAnswerTransaction.php
src/applications/ponder/xaction/PonderQuestionAnswerTransaction.php
<?php final class PonderQuestionAnswerTransaction extends PonderQuestionTransactionType { const TRANSACTIONTYPE = 'ponder.question:answer'; public function generateOldValue($object) { return $object->getAnswers(); } public function applyInternalEffects($object, $value) { $count = $object->getAnswe...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/applications/ponder/xaction/PonderQuestionTransactionType.php
src/applications/ponder/xaction/PonderQuestionTransactionType.php
<?php abstract class PonderQuestionTransactionType extends PhabricatorModularTransactionType {}
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/applications/ponder/xaction/PonderAnswerTransactionType.php
src/applications/ponder/xaction/PonderAnswerTransactionType.php
<?php abstract class PonderAnswerTransactionType extends PhabricatorModularTransactionType {}
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/applications/ponder/xaction/PonderQuestionContentTransaction.php
src/applications/ponder/xaction/PonderQuestionContentTransaction.php
<?php final class PonderQuestionContentTransaction extends PonderQuestionTransactionType { const TRANSACTIONTYPE = 'ponder.question:content'; public function generateOldValue($object) { return $object->getContent(); } public function applyInternalEffects($object, $value) { $object->setContent($val...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/applications/ponder/xaction/PonderQuestionStatusTransaction.php
src/applications/ponder/xaction/PonderQuestionStatusTransaction.php
<?php final class PonderQuestionStatusTransaction extends PonderQuestionTransactionType { const TRANSACTIONTYPE = 'ponder.question:status'; public function generateOldValue($object) { return $object->getStatus(); } public function applyInternalEffects($object, $value) { $object->setStatus($value);...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/applications/ponder/application/PhabricatorPonderApplication.php
src/applications/ponder/application/PhabricatorPonderApplication.php
<?php final class PhabricatorPonderApplication extends PhabricatorApplication { public function getBaseURI() { return '/ponder/'; } public function getName() { return pht('Ponder'); } public function getShortDescription() { return pht('Questions and Answers'); } public function getIcon() ...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/applications/ponder/view/PonderFooterView.php
src/applications/ponder/view/PonderFooterView.php
<?php final class PonderFooterView extends AphrontTagView { private $contentID; private $count; private $actions = array(); public function setContentID($content_id) { $this->contentID = $content_id; return $this; } public function setCount($count) { $this->count = $count; return $this; ...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/applications/ponder/view/PonderAddAnswerView.php
src/applications/ponder/view/PonderAddAnswerView.php
<?php final class PonderAddAnswerView extends AphrontView { private $question; private $actionURI; private $draft; public function setQuestion($question) { $this->question = $question; return $this; } public function setActionURI($uri) { $this->actionURI = $uri; return $this; } publ...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/applications/ponder/view/PonderAnswerView.php
src/applications/ponder/view/PonderAnswerView.php
<?php final class PonderAnswerView extends AphrontTagView { private $answer; private $transactions; private $timeline; private $handle; public function setAnswer($answer) { $this->answer = $answer; return $this; } public function setTransactions($transactions) { $this->transactions = $tran...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/applications/ponder/phid/PonderQuestionPHIDType.php
src/applications/ponder/phid/PonderQuestionPHIDType.php
<?php final class PonderQuestionPHIDType extends PhabricatorPHIDType { const TYPECONST = 'QUES'; public function getTypeName() { return pht('Ponder Question'); } public function newObject() { return new PonderQuestion(); } public function getPHIDTypeApplicationClass() { return PhabricatorPo...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/applications/ponder/phid/PonderAnswerPHIDType.php
src/applications/ponder/phid/PonderAnswerPHIDType.php
<?php final class PonderAnswerPHIDType extends PhabricatorPHIDType { const TYPECONST = 'ANSW'; public function getTypeName() { return pht('Ponder Answer'); } public function getPHIDTypeApplicationClass() { return PhabricatorPonderApplication::class; } public function newObject() { return ne...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/applications/ponder/herald/HeraldPonderQuestionAdapter.php
src/applications/ponder/herald/HeraldPonderQuestionAdapter.php
<?php final class HeraldPonderQuestionAdapter extends HeraldAdapter { private $question; protected function newObject() { return new PonderQuestion(); } public function getAdapterApplicationClass() { return PhabricatorPonderApplication::class; } public function getAdapterContentDescription() { ...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/applications/ponder/search/PonderQuestionFulltextEngine.php
src/applications/ponder/search/PonderQuestionFulltextEngine.php
<?php final class PonderQuestionFulltextEngine extends PhabricatorFulltextEngine { protected function buildAbstractDocument( PhabricatorSearchAbstractDocument $document, $object) { $question = $object; $document->setDocumentTitle($question->getTitle()); $document->addField( Phabricato...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/applications/ponder/search/PonderQuestionFerretEngine.php
src/applications/ponder/search/PonderQuestionFerretEngine.php
<?php final class PonderQuestionFerretEngine extends PhabricatorFerretEngine { public function getApplicationName() { return 'ponder'; } public function getScopeName() { return 'question'; } public function newSearchEngine() { return new PonderQuestionSearchEngine(); } }
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/applications/ponder/capability/PonderDefaultViewCapability.php
src/applications/ponder/capability/PonderDefaultViewCapability.php
<?php final class PonderDefaultViewCapability extends PhabricatorPolicyCapability { const CAPABILITY = 'ponder.default.view'; public function getCapabilityName() { return pht('Default View Policy'); } public function shouldAllowPublicPolicySetting() { return true; } }
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/applications/ponder/capability/PonderModerateCapability.php
src/applications/ponder/capability/PonderModerateCapability.php
<?php final class PonderModerateCapability extends PhabricatorPolicyCapability { const CAPABILITY = 'ponder.moderate'; public function getCapabilityName() { return pht('Moderate Policy'); } }
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/applications/ponder/remarkup/PonderRemarkupRule.php
src/applications/ponder/remarkup/PonderRemarkupRule.php
<?php final class PonderRemarkupRule extends PhabricatorObjectRemarkupRule { protected function getObjectNamePrefix() { return 'Q'; } protected function loadObjects(array $ids) { $viewer = $this->getEngine()->getConfig('viewer'); return id(new PonderQuestionQuery()) ->setViewer($viewer) ...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/applications/ponder/constants/PonderAnswerStatus.php
src/applications/ponder/constants/PonderAnswerStatus.php
<?php final class PonderAnswerStatus extends PonderConstants { const ANSWER_STATUS_VISIBLE = 'visible'; const ANSWER_STATUS_HIDDEN = 'hidden'; public static function getAnswerStatusMap() { return array( self::ANSWER_STATUS_VISIBLE => pht('Visible'), self::ANSWER_STATUS_HIDDEN => pht...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/applications/ponder/constants/PonderConstants.php
src/applications/ponder/constants/PonderConstants.php
<?php abstract class PonderConstants extends Phobject {}
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/applications/ponder/constants/PonderQuestionStatus.php
src/applications/ponder/constants/PonderQuestionStatus.php
<?php final class PonderQuestionStatus extends PonderConstants { const STATUS_OPEN = 'open'; const STATUS_CLOSED_RESOLVED = 'resolved'; const STATUS_CLOSED_OBSOLETE = 'obsolete'; const STATUS_CLOSED_INVALID = 'invalid'; public static function getQuestionStatusMap() { return arra...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/applications/drydock/controller/DrydockBlueprintDisableController.php
src/applications/drydock/controller/DrydockBlueprintDisableController.php
<?php final class DrydockBlueprintDisableController extends DrydockBlueprintController { public function handleRequest(AphrontRequest $request) { $viewer = $request->getViewer(); $id = $request->getURIData('id'); $blueprint = id(new DrydockBlueprintQuery()) ->setViewer($viewer) ->withIDs(...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/applications/drydock/controller/DrydockAuthorizationViewController.php
src/applications/drydock/controller/DrydockAuthorizationViewController.php
<?php final class DrydockAuthorizationViewController extends DrydockController { public function handleRequest(AphrontRequest $request) { $viewer = $request->getViewer(); $id = $request->getURIData('id'); $authorization = id(new DrydockAuthorizationQuery()) ->setViewer($viewer) ->withIDs(...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/applications/drydock/controller/DrydockRepositoryOperationStatusController.php
src/applications/drydock/controller/DrydockRepositoryOperationStatusController.php
<?php final class DrydockRepositoryOperationStatusController extends DrydockRepositoryOperationController { public function shouldAllowPublic() { return true; } public function handleRequest(AphrontRequest $request) { $viewer = $request->getViewer(); $id = $request->getURIData('id'); $operat...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/applications/drydock/controller/DrydockLeaseListController.php
src/applications/drydock/controller/DrydockLeaseListController.php
<?php final class DrydockLeaseListController extends DrydockLeaseController { public function shouldAllowPublic() { return true; } public function handleRequest(AphrontRequest $request) { $viewer = $request->getViewer(); $query_key = $request->getURIData('queryKey'); $engine = new DrydockLease...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/applications/drydock/controller/DrydockBlueprintEditController.php
src/applications/drydock/controller/DrydockBlueprintEditController.php
<?php final class DrydockBlueprintEditController extends DrydockBlueprintController { public function handleRequest(AphrontRequest $request) { $engine = id(new DrydockBlueprintEditEngine()) ->setController($this); $id = $request->getURIData('id'); if (!$id) { $this->requireApplicationCapabi...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/applications/drydock/controller/DrydockBlueprintViewController.php
src/applications/drydock/controller/DrydockBlueprintViewController.php
<?php final class DrydockBlueprintViewController extends DrydockBlueprintController { public function handleRequest(AphrontRequest $request) { $viewer = $request->getViewer(); $id = $request->getURIData('id'); $blueprint = id(new DrydockBlueprintQuery()) ->setViewer($viewer) ->withIDs(array...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/applications/drydock/controller/DrydockResourceViewController.php
src/applications/drydock/controller/DrydockResourceViewController.php
<?php final class DrydockResourceViewController extends DrydockResourceController { public function handleRequest(AphrontRequest $request) { $viewer = $request->getViewer(); $id = $request->getURIData('id'); $resource = id(new DrydockResourceQuery()) ->setViewer($viewer) ->withIDs(array($id...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/applications/drydock/controller/DrydockLeaseViewController.php
src/applications/drydock/controller/DrydockLeaseViewController.php
<?php final class DrydockLeaseViewController extends DrydockLeaseController { public function handleRequest(AphrontRequest $request) { $viewer = $request->getViewer(); $id = $request->getURIData('id'); $lease = id(new DrydockLeaseQuery()) ->setViewer($viewer) ->withIDs(array($id)) ->n...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/applications/drydock/controller/DrydockLeaseController.php
src/applications/drydock/controller/DrydockLeaseController.php
<?php abstract class DrydockLeaseController extends DrydockController { private $resource; public function setResource($resource) { $this->resource = $resource; return $this; } public function getResource() { return $this->resource; } public function buildSideNavView() { $nav = new Ap...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/applications/drydock/controller/DrydockLogController.php
src/applications/drydock/controller/DrydockLogController.php
<?php abstract class DrydockLogController extends DrydockController { private $blueprint; private $resource; private $lease; private $operation; public function setBlueprint(DrydockBlueprint $blueprint) { $this->blueprint = $blueprint; return $this; } public function getBlueprint() { ret...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/applications/drydock/controller/DrydockAuthorizationAuthorizeController.php
src/applications/drydock/controller/DrydockAuthorizationAuthorizeController.php
<?php final class DrydockAuthorizationAuthorizeController extends DrydockController { public function handleRequest(AphrontRequest $request) { $viewer = $request->getViewer(); $id = $request->getURIData('id'); $authorization = id(new DrydockAuthorizationQuery()) ->setViewer($viewer) ->wit...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/applications/drydock/controller/DrydockRepositoryOperationController.php
src/applications/drydock/controller/DrydockRepositoryOperationController.php
<?php abstract class DrydockRepositoryOperationController extends DrydockController { public function buildApplicationMenu() { return $this->newApplicationMenu() ->setSearchEngine(new DrydockRepositoryOperationSearchEngine()); } }
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/applications/drydock/controller/DrydockRepositoryOperationListController.php
src/applications/drydock/controller/DrydockRepositoryOperationListController.php
<?php final class DrydockRepositoryOperationListController extends DrydockRepositoryOperationController { public function shouldAllowPublic() { return true; } public function handleRequest(AphrontRequest $request) { return id(new DrydockRepositoryOperationSearchEngine()) ->setController($this) ...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/applications/drydock/controller/DrydockLeaseReleaseController.php
src/applications/drydock/controller/DrydockLeaseReleaseController.php
<?php final class DrydockLeaseReleaseController extends DrydockLeaseController { public function handleRequest(AphrontRequest $request) { $viewer = $request->getViewer(); $id = $request->getURIData('id'); $lease = id(new DrydockLeaseQuery()) ->setViewer($viewer) ->withIDs(array($id)) ...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/applications/drydock/controller/DrydockResourceController.php
src/applications/drydock/controller/DrydockResourceController.php
<?php abstract class DrydockResourceController extends DrydockController { private $blueprint; public function setBlueprint($blueprint) { $this->blueprint = $blueprint; return $this; } public function getBlueprint() { return $this->blueprint; } public function buildSideNavView() { $na...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/applications/drydock/controller/DrydockRepositoryOperationViewController.php
src/applications/drydock/controller/DrydockRepositoryOperationViewController.php
<?php final class DrydockRepositoryOperationViewController extends DrydockRepositoryOperationController { public function shouldAllowPublic() { return true; } public function handleRequest(AphrontRequest $request) { $viewer = $request->getViewer(); $id = $request->getURIData('id'); $operatio...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/applications/drydock/controller/DrydockResourceReleaseController.php
src/applications/drydock/controller/DrydockResourceReleaseController.php
<?php final class DrydockResourceReleaseController extends DrydockResourceController { public function handleRequest(AphrontRequest $request) { $viewer = $request->getViewer(); $id = $request->getURIData('id'); $resource = id(new DrydockResourceQuery()) ->setViewer($viewer) ->withIDs(array(...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/applications/drydock/controller/DrydockResourceListController.php
src/applications/drydock/controller/DrydockResourceListController.php
<?php final class DrydockResourceListController extends DrydockResourceController { public function shouldAllowPublic() { return true; } public function handleRequest(AphrontRequest $request) { $viewer = $this->getViewer(); $engine = new DrydockResourceSearchEngine(); $id = $request->getURIDa...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/applications/drydock/controller/DrydockBlueprintController.php
src/applications/drydock/controller/DrydockBlueprintController.php
<?php abstract class DrydockBlueprintController extends DrydockController { public function buildApplicationMenu() { return $this->newApplicationMenu() ->setSearchEngine(new DrydockBlueprintSearchEngine()); } protected function buildApplicationCrumbs() { $crumbs = parent::buildApplicationCrumbs...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/applications/drydock/controller/DrydockAuthorizationListController.php
src/applications/drydock/controller/DrydockAuthorizationListController.php
<?php final class DrydockAuthorizationListController extends DrydockController { private $blueprint; public function setBlueprint(DrydockBlueprint $blueprint) { $this->blueprint = $blueprint; return $this; } public function getBlueprint() { return $this->blueprint; } public function shoul...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/applications/drydock/controller/DrydockBlueprintListController.php
src/applications/drydock/controller/DrydockBlueprintListController.php
<?php final class DrydockBlueprintListController extends DrydockBlueprintController { public function shouldAllowPublic() { return true; } public function handleRequest(AphrontRequest $request) { return id(new DrydockBlueprintSearchEngine()) ->setController($this) ->buildResponse(); } ...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/applications/drydock/controller/DrydockLogListController.php
src/applications/drydock/controller/DrydockLogListController.php
<?php final class DrydockLogListController extends DrydockLogController { public function shouldAllowPublic() { return true; } public function handleRequest(AphrontRequest $request) { $viewer = $request->getViewer(); $engine = new DrydockLogSearchEngine(); $id = $request->getURIData('id'); ...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/applications/drydock/controller/DrydockConsoleController.php
src/applications/drydock/controller/DrydockConsoleController.php
<?php final class DrydockConsoleController extends DrydockController { public function shouldAllowPublic() { return true; } public function buildSideNavView() { $nav = new AphrontSideNavFilterView(); $nav->setBaseURI(new PhutilURI($this->getApplicationURI())); // These are only used on mobile....
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/applications/drydock/controller/DrydockRepositoryOperationDismissController.php
src/applications/drydock/controller/DrydockRepositoryOperationDismissController.php
<?php final class DrydockRepositoryOperationDismissController extends DrydockRepositoryOperationController { public function handleRequest(AphrontRequest $request) { $viewer = $request->getViewer(); $id = $request->getURIData('id'); $operation = id(new DrydockRepositoryOperationQuery()) ->setVi...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/applications/drydock/controller/DrydockController.php
src/applications/drydock/controller/DrydockController.php
<?php abstract class DrydockController extends PhabricatorController { protected function buildLocksTab($owner_phid) { $locks = DrydockSlotLock::loadLocks($owner_phid); $rows = array(); foreach ($locks as $lock) { $rows[] = array( $lock->getID(), $lock->getLockKey(), ); ...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/applications/drydock/storage/DrydockBlueprintTransaction.php
src/applications/drydock/storage/DrydockBlueprintTransaction.php
<?php final class DrydockBlueprintTransaction extends PhabricatorModularTransaction { const TYPE_NAME = 'drydock:blueprint:name'; const TYPE_DISABLED = 'drydock:blueprint:disabled'; public function getApplicationName() { return 'drydock'; } public function getApplicationTransactionType() { retur...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/applications/drydock/storage/DrydockLog.php
src/applications/drydock/storage/DrydockLog.php
<?php final class DrydockLog extends DrydockDAO implements PhabricatorPolicyInterface { protected $blueprintPHID; protected $resourcePHID; protected $leasePHID; protected $operationPHID; protected $epoch; protected $type; protected $data = array(); private $blueprint = self::ATTACHABLE; private $...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/applications/drydock/storage/DrydockResource.php
src/applications/drydock/storage/DrydockResource.php
<?php final class DrydockResource extends DrydockDAO implements PhabricatorPolicyInterface, PhabricatorConduitResultInterface { protected $id; protected $phid; protected $blueprintPHID; protected $status; protected $until; protected $type; protected $attributes = array(); protected $capabi...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/applications/drydock/storage/DrydockLease.php
src/applications/drydock/storage/DrydockLease.php
<?php final class DrydockLease extends DrydockDAO implements PhabricatorPolicyInterface, PhabricatorConduitResultInterface { protected $resourcePHID; protected $resourceType; protected $until; protected $ownerPHID; protected $authorizingPHID; protected $attributes = array(); protected $status ...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/applications/drydock/storage/DrydockBlueprintNameNgrams.php
src/applications/drydock/storage/DrydockBlueprintNameNgrams.php
<?php final class DrydockBlueprintNameNgrams extends PhabricatorSearchNgrams { public function getNgramKey() { return 'blueprintname'; } public function getColumnName() { return 'blueprintName'; } public function getApplicationName() { return 'drydock'; } }
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/applications/drydock/storage/DrydockDAO.php
src/applications/drydock/storage/DrydockDAO.php
<?php abstract class DrydockDAO extends PhabricatorLiskDAO { public function getApplicationName() { return 'drydock'; } }
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/applications/drydock/storage/DrydockSlotLock.php
src/applications/drydock/storage/DrydockSlotLock.php
<?php /** * Simple optimistic locks for Drydock resources and leases. * * Most blueprints only need very simple locks: for example, a host blueprint * might not want to create multiple resources representing the same physical * machine. These optimistic "slot locks" provide a flexible way to do this * sort of si...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/applications/drydock/storage/DrydockSchemaSpec.php
src/applications/drydock/storage/DrydockSchemaSpec.php
<?php final class DrydockSchemaSpec extends PhabricatorConfigSchemaSpec { public function buildSchemata() { $this->buildEdgeSchemata(new DrydockBlueprint()); } }
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/applications/drydock/storage/DrydockRepositoryOperation.php
src/applications/drydock/storage/DrydockRepositoryOperation.php
<?php /** * Represents a request to perform a repository operation like a merge or * cherry-pick. */ final class DrydockRepositoryOperation extends DrydockDAO implements PhabricatorPolicyInterface { const STATE_WAIT = 'wait'; const STATE_WORK = 'work'; const STATE_DONE = 'done'; const STATE_FAIL = 'f...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/applications/drydock/storage/DrydockCommand.php
src/applications/drydock/storage/DrydockCommand.php
<?php final class DrydockCommand extends DrydockDAO implements PhabricatorPolicyInterface { const COMMAND_RELEASE = 'release'; const COMMAND_RECLAIM = 'reclaim'; protected $authorPHID; protected $targetPHID; protected $command; protected $isConsumed; protected $properties = array(); private $com...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/applications/drydock/storage/DrydockBlueprint.php
src/applications/drydock/storage/DrydockBlueprint.php
<?php /** * @task resource Allocating Resources * @task lease Acquiring Leases */ final class DrydockBlueprint extends DrydockDAO implements PhabricatorApplicationTransactionInterface, PhabricatorPolicyInterface, PhabricatorCustomFieldInterface, PhabricatorNgramsInterface, PhabricatorProjectIn...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/applications/drydock/storage/DrydockAuthorization.php
src/applications/drydock/storage/DrydockAuthorization.php
<?php final class DrydockAuthorization extends DrydockDAO implements PhabricatorPolicyInterface, PhabricatorConduitResultInterface { const OBJECTAUTH_ACTIVE = 'active'; const OBJECTAUTH_INACTIVE = 'inactive'; const BLUEPRINTAUTH_REQUESTED = 'requested'; const BLUEPRINTAUTH_AUTHORIZED = 'authorized'...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/applications/drydock/management/DrydockManagementReleaseLeaseWorkflow.php
src/applications/drydock/management/DrydockManagementReleaseLeaseWorkflow.php
<?php final class DrydockManagementReleaseLeaseWorkflow extends DrydockManagementWorkflow { protected function didConstruct() { $this ->setName('release-lease') ->setSynopsis(pht('Release a lease.')) ->setArguments( array( array( 'name' => 'id', 'par...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/applications/drydock/management/DrydockManagementLeaseWorkflow.php
src/applications/drydock/management/DrydockManagementLeaseWorkflow.php
<?php final class DrydockManagementLeaseWorkflow extends DrydockManagementWorkflow { protected function didConstruct() { $this ->setName('lease') ->setSynopsis(pht('Lease a resource.')) ->setArguments( array( array( 'name' => 'type', 'param' ...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/applications/drydock/management/DrydockManagementWorkflow.php
src/applications/drydock/management/DrydockManagementWorkflow.php
<?php abstract class DrydockManagementWorkflow extends PhabricatorManagementWorkflow {}
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/applications/drydock/management/DrydockManagementReleaseResourceWorkflow.php
src/applications/drydock/management/DrydockManagementReleaseResourceWorkflow.php
<?php final class DrydockManagementReleaseResourceWorkflow extends DrydockManagementWorkflow { protected function didConstruct() { $this ->setName('release-resource') ->setSynopsis(pht('Release a resource.')) ->setArguments( array( array( 'name' => 'id', ...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/applications/drydock/management/DrydockManagementCommandWorkflow.php
src/applications/drydock/management/DrydockManagementCommandWorkflow.php
<?php final class DrydockManagementCommandWorkflow extends DrydockManagementWorkflow { protected function didConstruct() { $this ->setName('command') ->setSynopsis(pht('Run a command on a leased resource.')) ->setArguments( array( array( 'name' => 'lease', ...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/applications/drydock/management/DrydockManagementReclaimWorkflow.php
src/applications/drydock/management/DrydockManagementReclaimWorkflow.php
<?php final class DrydockManagementReclaimWorkflow extends DrydockManagementWorkflow { protected function didConstruct() { $this ->setName('reclaim') ->setSynopsis(pht('Reclaim unused resources.')) ->setArguments(array()); } public function execute(PhutilArgumentParser $args) { $vie...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/applications/drydock/management/DrydockManagementUpdateLeaseWorkflow.php
src/applications/drydock/management/DrydockManagementUpdateLeaseWorkflow.php
<?php final class DrydockManagementUpdateLeaseWorkflow extends DrydockManagementWorkflow { protected function didConstruct() { $this ->setName('update-lease') ->setSynopsis(pht('Update a lease.')) ->setArguments( array( array( 'name' => 'id', 'param'...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/applications/drydock/management/DrydockManagementUpdateResourceWorkflow.php
src/applications/drydock/management/DrydockManagementUpdateResourceWorkflow.php
<?php final class DrydockManagementUpdateResourceWorkflow extends DrydockManagementWorkflow { protected function didConstruct() { $this ->setName('update-resource') ->setSynopsis(pht('Update a resource.')) ->setArguments( array( array( 'name' => 'id', ...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/applications/drydock/worker/DrydockLeaseUpdateWorker.php
src/applications/drydock/worker/DrydockLeaseUpdateWorker.php
<?php /** * @task update Updating Leases * @task command Processing Commands * @task allocator Drydock Allocator * @task acquire Acquiring Leases * @task activate Activating Leases * @task release Releasing Leases * @task break Breaking Leases * @task destroy Destroying Leases */ final class DrydockLeaseUpdat...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
true
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/applications/drydock/worker/DrydockWorker.php
src/applications/drydock/worker/DrydockWorker.php
<?php abstract class DrydockWorker extends PhabricatorWorker { protected function getViewer() { return PhabricatorUser::getOmnipotentUser(); } protected function loadLease($lease_phid) { $viewer = $this->getViewer(); $lease = id(new DrydockLeaseQuery()) ->setViewer($viewer) ->withPHIDs...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/applications/drydock/worker/DrydockRepositoryOperationUpdateWorker.php
src/applications/drydock/worker/DrydockRepositoryOperationUpdateWorker.php
<?php final class DrydockRepositoryOperationUpdateWorker extends DrydockWorker { protected function doWork() { $operation_phid = $this->getTaskDataValue('operationPHID'); $hash = PhabricatorHash::digestForIndex($operation_phid); $lock_key = 'drydock.operation:'.$hash; $lock = PhabricatorGlobalLo...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/applications/drydock/worker/DrydockResourceUpdateWorker.php
src/applications/drydock/worker/DrydockResourceUpdateWorker.php
<?php /** * @task update Updating Resources * @task command Processing Commands * @task activate Activating Resources * @task release Releasing Resources * @task break Breaking Resources * @task destroy Destroying Resources */ final class DrydockResourceUpdateWorker extends DrydockWorker { protected function...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/applications/drydock/query/DrydockRepositoryOperationQuery.php
src/applications/drydock/query/DrydockRepositoryOperationQuery.php
<?php /** * @extends DrydockQuery<DrydockRepositoryOperation> */ final class DrydockRepositoryOperationQuery extends DrydockQuery { private $ids; private $phids; private $objectPHIDs; private $repositoryPHIDs; private $operationStates; private $operationTypes; private $isDismissed; private $authorPH...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/applications/drydock/query/DrydockAuthorizationSearchEngine.php
src/applications/drydock/query/DrydockAuthorizationSearchEngine.php
<?php final class DrydockAuthorizationSearchEngine extends PhabricatorApplicationSearchEngine { private $blueprint; public function setBlueprint(DrydockBlueprint $blueprint) { $this->blueprint = $blueprint; return $this; } public function getBlueprint() { return $this->blueprint; } public...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/applications/drydock/query/DrydockResourceSearchEngine.php
src/applications/drydock/query/DrydockResourceSearchEngine.php
<?php final class DrydockResourceSearchEngine extends PhabricatorApplicationSearchEngine { private $blueprint; public function setBlueprint(DrydockBlueprint $blueprint) { $this->blueprint = $blueprint; return $this; } public function getBlueprint() { return $this->blueprint; } public func...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/applications/drydock/query/DrydockLogSearchEngine.php
src/applications/drydock/query/DrydockLogSearchEngine.php
<?php final class DrydockLogSearchEngine extends PhabricatorApplicationSearchEngine { private $blueprint; private $resource; private $lease; private $operation; public function setBlueprint(DrydockBlueprint $blueprint) { $this->blueprint = $blueprint; return $this; } public function getBluepri...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/applications/drydock/query/DrydockAuthorizationQuery.php
src/applications/drydock/query/DrydockAuthorizationQuery.php
<?php /** * @extends DrydockQuery<DrydockAuthorization> */ final class DrydockAuthorizationQuery extends DrydockQuery { private $ids; private $phids; private $blueprintPHIDs; private $objectPHIDs; private $blueprintStates; private $objectStates; public static function isFullyAuthorized( $object_p...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/applications/drydock/query/DrydockRepositoryOperationSearchEngine.php
src/applications/drydock/query/DrydockRepositoryOperationSearchEngine.php
<?php final class DrydockRepositoryOperationSearchEngine extends PhabricatorApplicationSearchEngine { public function getResultTypeDescription() { return pht('Drydock Repository Operations'); } public function getApplicationClassName() { return PhabricatorDrydockApplication::class; } public func...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/applications/drydock/query/DrydockLogQuery.php
src/applications/drydock/query/DrydockLogQuery.php
<?php /** * @extends DrydockQuery<DrydockLog> */ final class DrydockLogQuery extends DrydockQuery { private $ids; private $blueprintPHIDs; private $resourcePHIDs; private $leasePHIDs; private $operationPHIDs; public function withIDs(array $ids) { $this->ids = $ids; return $this; } public f...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/applications/drydock/query/DrydockQuery.php
src/applications/drydock/query/DrydockQuery.php
<?php /** * @template R of PhabricatorPolicyInterface * @extends PhabricatorCursorPagedPolicyAwareQuery<R> */ abstract class DrydockQuery extends PhabricatorCursorPagedPolicyAwareQuery { public function getQueryApplicationClass() { return PhabricatorDrydockApplication::class; } }
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false
phorgeit/phorge
https://github.com/phorgeit/phorge/blob/aceebaa4305332265a371282a841609fe926b819/src/applications/drydock/query/DrydockCommandQuery.php
src/applications/drydock/query/DrydockCommandQuery.php
<?php /** * @extends DrydockQuery<DrydockCommand> */ final class DrydockCommandQuery extends DrydockQuery { private $ids; private $targetPHIDs; private $consumed; public function withIDs(array $ids) { $this->ids = $ids; return $this; } public function withTargetPHIDs(array $phids) { $this-...
php
Apache-2.0
aceebaa4305332265a371282a841609fe926b819
2026-01-05T04:21:50.722734Z
false