Changeset View
Changeset View
Standalone View
Standalone View
src/applications/paste/storage/PhabricatorPaste.php
Show First 20 Lines • Show All 258 Lines • ▼ Show 20 Lines | return array( | ||||
->setDescription(pht('User PHID of the author.')), | ->setDescription(pht('User PHID of the author.')), | ||||
id(new PhabricatorConduitSearchFieldSpecification()) | id(new PhabricatorConduitSearchFieldSpecification()) | ||||
->setKey('language') | ->setKey('language') | ||||
->setType('string?') | ->setType('string?') | ||||
->setDescription(pht('Language to use for syntax highlighting.')), | ->setDescription(pht('Language to use for syntax highlighting.')), | ||||
id(new PhabricatorConduitSearchFieldSpecification()) | id(new PhabricatorConduitSearchFieldSpecification()) | ||||
->setKey('status') | ->setKey('status') | ||||
->setType('string') | ->setType('string') | ||||
->setDescription(pht('Active or arhived status of the paste.')), | ->setDescription(pht('Active or archived status of the paste.')), | ||||
); | ); | ||||
} | } | ||||
public function getFieldValuesForConduit() { | public function getFieldValuesForConduit() { | ||||
return array( | return array( | ||||
'title' => $this->getTitle(), | 'title' => $this->getTitle(), | ||||
'authorPHID' => $this->getAuthorPHID(), | 'authorPHID' => $this->getAuthorPHID(), | ||||
'language' => nonempty($this->getLanguage(), null), | 'language' => nonempty($this->getLanguage(), null), | ||||
Show All 12 Lines |