[ Index ]

PHP Cross Reference of Phabricator

title

Body

[close]

/src/applications/repository/storage/ -> PhabricatorRepositoryStatusMessage.php (source)

   1  <?php
   2  
   3  final class PhabricatorRepositoryStatusMessage
   4    extends PhabricatorRepositoryDAO {
   5  
   6    const TYPE_INIT = 'init';
   7    const TYPE_FETCH = 'fetch';
   8    const TYPE_NEEDS_UPDATE = 'needs-update';
   9  
  10    const CODE_ERROR = 'error';
  11    const CODE_WORKING = 'working';
  12    const CODE_OKAY = 'okay';
  13  
  14    protected $repositoryID;
  15    protected $statusType;
  16    protected $statusCode;
  17    protected $parameters = array();
  18    protected $epoch;
  19  
  20    public function getConfiguration() {
  21      return array(
  22        self::CONFIG_TIMESTAMPS => false,
  23        self::CONFIG_SERIALIZATION => array(
  24          'parameters' => self::SERIALIZATION_JSON,
  25        ),
  26        self::CONFIG_COLUMN_SCHEMA => array(
  27          'statusType' => 'text32',
  28          'statusCode' => 'text32',
  29        ),
  30        self::CONFIG_KEY_SCHEMA => array(
  31          'repositoryID' => array(
  32            'columns' => array('repositoryID', 'statusType'),
  33            'unique' => true,
  34          ),
  35        ),
  36      ) + parent::getConfiguration();
  37    }
  38  
  39    public function getParameter($key, $default = null) {
  40      return idx($this->parameters, $key, $default);
  41    }
  42  
  43  }


Generated: Sun Nov 30 09:20:46 2014 Cross-referenced by PHPXref 0.7.1