Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/phabricator
Path: blob/master/src/applications/conduit/storage/PhabricatorConduitMethodCallLog.php
12256 views
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
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?',
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
}
56
57