Changeset View
Changeset View
Standalone View
Standalone View
src/applications/pholio/storage/PholioTransactionComment.php
<?php | <?php | ||||
final class PholioTransactionComment | final class PholioTransactionComment | ||||
extends PhabricatorApplicationTransactionComment { | extends PhabricatorApplicationTransactionComment { | ||||
protected $imageID; | protected $imageID; | ||||
protected $x; | protected $x; | ||||
protected $y; | protected $y; | ||||
protected $width; | protected $width; | ||||
protected $height; | protected $height; | ||||
protected $content; | protected $content; | ||||
public function getApplicationTransactionObject() { | public function getApplicationTransactionObject() { | ||||
return new PholioTransaction(); | return new PholioTransaction(); | ||||
} | } | ||||
public function getConfiguration() { | |||||
$config = parent::getConfiguration(); | |||||
$config[self::CONFIG_COLUMN_SCHEMA] = array( | |||||
'imageID' => 'id?', | |||||
'x' => 'uint32?', | |||||
'y' => 'uint32?', | |||||
'width' => 'uint32?', | |||||
'height' => 'uint32?', | |||||
) + $config[self::CONFIG_COLUMN_SCHEMA]; | |||||
$config[self::CONFIG_KEY_SCHEMA] = array( | |||||
'key_draft' => array( | |||||
'columns' => array('authorPHID', 'imageID', 'transactionPHID'), | |||||
), | |||||
) + $config[self::CONFIG_KEY_SCHEMA]; | |||||
return $config; | |||||
} | |||||
public function toDictionary() { | public function toDictionary() { | ||||
return array( | return array( | ||||
'id' => $this->getID(), | 'id' => $this->getID(), | ||||
'phid' => $this->getPHID(), | 'phid' => $this->getPHID(), | ||||
'transactionPHID' => $this->getTransactionPHID(), | 'transactionPHID' => $this->getTransactionPHID(), | ||||
'x' => $this->getX(), | 'x' => $this->getX(), | ||||
'y' => $this->getY(), | 'y' => $this->getY(), | ||||
'width' => $this->getWidth(), | 'width' => $this->getWidth(), | ||||
Show All 10 Lines |