2013-01-25 02:23:05 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
final class ConpherenceTransactionComment
|
|
|
|
extends PhabricatorApplicationTransactionComment {
|
|
|
|
|
|
|
|
protected $conpherencePHID;
|
|
|
|
|
|
|
|
public function getApplicationTransactionObject() {
|
|
|
|
return new ConpherenceTransaction();
|
|
|
|
}
|
|
|
|
|
2015-01-13 20:47:05 +01:00
|
|
|
protected function getConfiguration() {
|
2014-09-18 20:15:38 +02:00
|
|
|
$config = parent::getConfiguration();
|
2014-10-01 16:53:50 +02:00
|
|
|
|
2014-09-18 20:15:38 +02:00
|
|
|
$config[self::CONFIG_COLUMN_SCHEMA] = array(
|
|
|
|
'conpherencePHID' => 'phid?',
|
|
|
|
) + $config[self::CONFIG_COLUMN_SCHEMA];
|
2014-10-01 16:53:50 +02:00
|
|
|
|
|
|
|
$config[self::CONFIG_KEY_SCHEMA] = array(
|
|
|
|
'key_draft' => array(
|
|
|
|
'columns' => array('authorPHID', 'conpherencePHID', 'transactionPHID'),
|
|
|
|
'unique' => true,
|
|
|
|
),
|
|
|
|
) + $config[self::CONFIG_KEY_SCHEMA];
|
|
|
|
|
2014-09-18 20:15:38 +02:00
|
|
|
return $config;
|
|
|
|
}
|
|
|
|
|
2013-01-25 02:23:05 +01:00
|
|
|
}
|