Differential D10581 Diff 25458 src/applications/project/storage/PhabricatorProjectColumnPosition.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/project/storage/PhabricatorProjectColumnPosition.php
<?php | <?php | ||||
final class PhabricatorProjectColumnPosition extends PhabricatorProjectDAO | final class PhabricatorProjectColumnPosition extends PhabricatorProjectDAO | ||||
implements PhabricatorPolicyInterface { | implements PhabricatorPolicyInterface { | ||||
protected $boardPHID; | protected $boardPHID; | ||||
protected $columnPHID; | protected $columnPHID; | ||||
protected $objectPHID; | protected $objectPHID; | ||||
protected $sequence; | protected $sequence; | ||||
private $column = self::ATTACHABLE; | private $column = self::ATTACHABLE; | ||||
public function getConfiguration() { | public function getConfiguration() { | ||||
return array( | return array( | ||||
self::CONFIG_TIMESTAMPS => false, | self::CONFIG_TIMESTAMPS => false, | ||||
self::CONFIG_COLUMN_SCHEMA => array( | |||||
'sequence' => 'uint32', | |||||
), | |||||
self::CONFIG_KEY_SCHEMA => array( | |||||
'boardPHID' => array( | |||||
'columns' => array('boardPHID', 'columnPHID', 'objectPHID'), | |||||
'unique' => true, | |||||
), | |||||
'objectPHID' => array( | |||||
'columns' => array('objectPHID', 'boardPHID'), | |||||
), | |||||
'boardPHID_2' => array( | |||||
'columns' => array('boardPHID', 'columnPHID', 'sequence'), | |||||
), | |||||
), | |||||
) + parent::getConfiguration(); | ) + parent::getConfiguration(); | ||||
} | } | ||||
public function getColumn() { | public function getColumn() { | ||||
return $this->assertAttached($this->column); | return $this->assertAttached($this->column); | ||||
} | } | ||||
public function attachColumn(PhabricatorProjectColumn $column) { | public function attachColumn(PhabricatorProjectColumn $column) { | ||||
Show All 39 Lines |