Remove product literal strings in "pht()", part 6
[phabricator.git] / src / applications / conduit / storage / PhabricatorConduitMethodCallLog.php
blob7387b64e539eda91e245a1849f3f185671332bff
1 <?php
3 final class PhabricatorConduitMethodCallLog
4 extends PhabricatorConduitDAO
5 implements PhabricatorPolicyInterface {
7 protected $callerPHID;
8 protected $connectionID;
9 protected $method;
10 protected $error;
11 protected $duration;
13 protected function getConfiguration() {
14 return array(
15 self::CONFIG_COLUMN_SCHEMA => array(
16 'id' => 'auto64',
17 'connectionID' => 'id64?',
18 'method' => 'text64',
19 'error' => 'text255',
20 'duration' => 'uint64',
21 'callerPHID' => 'phid?',
23 self::CONFIG_KEY_SCHEMA => array(
24 'key_date' => array(
25 'columns' => array('dateCreated'),
27 'key_method' => array(
28 'columns' => array('method'),
30 'key_callermethod' => array(
31 'columns' => array('callerPHID', 'method'),
34 ) + parent::getConfiguration();
38 /* -( PhabricatorPolicyInterface )----------------------------------------- */
41 public function getCapabilities() {
42 return array(
43 PhabricatorPolicyCapability::CAN_VIEW,
47 public function getPolicy($capability) {
48 return PhabricatorPolicies::POLICY_USER;
51 public function hasAutomaticCapability($capability, PhabricatorUser $viewer) {
52 return false;