[ Index ]

PHP Cross Reference of Phabricator

title

Body

[close]

/src/applications/conduit/storage/ -> PhabricatorConduitMethodCallLog.php (source)

   1  <?php
   2  
   3  final class PhabricatorConduitMethodCallLog
   4    extends PhabricatorConduitDAO
   5    implements PhabricatorPolicyInterface {
   6  
   7    protected $callerPHID;
   8    protected $connectionID;
   9    protected $method;
  10    protected $error;
  11    protected $duration;
  12  
  13    public 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?',
  22        ),
  23        self::CONFIG_KEY_SCHEMA => array(
  24          'key_date' => array(
  25            'columns' => array('dateCreated'),
  26          ),
  27          'key_method' => array(
  28            'columns' => array('method'),
  29          ),
  30          'key_callermethod' => array(
  31            'columns' => array('callerPHID', 'method'),
  32          ),
  33        ),
  34      ) + parent::getConfiguration();
  35    }
  36  
  37  
  38  /* -(  PhabricatorPolicyInterface  )----------------------------------------- */
  39  
  40  
  41    public function getCapabilities() {
  42      return array(
  43        PhabricatorPolicyCapability::CAN_VIEW,
  44      );
  45    }
  46  
  47    public function getPolicy($capability) {
  48      return PhabricatorPolicies::POLICY_USER;
  49    }
  50  
  51    public function hasAutomaticCapability($capability, PhabricatorUser $viewer) {
  52      return false;
  53    }
  54  
  55    public function describeAutomaticCapability($capability) {
  56      return null;
  57    }
  58  
  59  }


Generated: Sun Nov 30 09:20:46 2014 Cross-referenced by PHPXref 0.7.1