Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/phabricator
Path: blob/master/src/applications/conpherence/storage/ConpherenceTransactionComment.php
12256 views
1
<?php
2
3
final class ConpherenceTransactionComment
4
extends PhabricatorApplicationTransactionComment {
5
6
protected $conpherencePHID;
7
8
public function getApplicationTransactionObject() {
9
return new ConpherenceTransaction();
10
}
11
12
protected function getConfiguration() {
13
$config = parent::getConfiguration();
14
15
$config[self::CONFIG_COLUMN_SCHEMA] = array(
16
'conpherencePHID' => 'phid?',
17
) + $config[self::CONFIG_COLUMN_SCHEMA];
18
19
$config[self::CONFIG_KEY_SCHEMA] = array(
20
'key_draft' => array(
21
'columns' => array('authorPHID', 'conpherencePHID', 'transactionPHID'),
22
'unique' => true,
23
),
24
) + $config[self::CONFIG_KEY_SCHEMA];
25
26
return $config;
27
}
28
29
}
30
31