2013-01-24 17:23:05 -08:00
|
|
|
<?php
|
|
|
|
|
|
|
|
final class ConpherenceTransactionComment
|
|
|
|
extends PhabricatorApplicationTransactionComment {
|
|
|
|
|
|
|
|
protected $conpherencePHID;
|
|
|
|
|
|
|
|
public function getApplicationTransactionObject() {
|
|
|
|
return new ConpherenceTransaction();
|
|
|
|
}
|
|
|
|
|
2015-01-14 06:47:05 +11:00
|
|
|
protected function getConfiguration() {
|
2014-09-18 11:15:38 -07:00
|
|
|
$config = parent::getConfiguration();
|
2014-10-01 07:53:50 -07:00
|
|
|
|
2014-09-18 11:15:38 -07:00
|
|
|
$config[self::CONFIG_COLUMN_SCHEMA] = array(
|
|
|
|
'conpherencePHID' => 'phid?',
|
|
|
|
) + $config[self::CONFIG_COLUMN_SCHEMA];
|
2014-10-01 07:53:50 -07: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 11:15:38 -07:00
|
|
|
return $config;
|
|
|
|
}
|
|
|
|
|
2013-01-24 17:23:05 -08:00
|
|
|
}
|