~ubuntu-branches/ubuntu/wily/phabricator/wily

« back to all changes in this revision

Viewing changes to phabricator/src/applications/nuance/storage/NuanceItem.php

  • Committer: Package Import Robot
  • Author(s): Richard Sellam
  • Date: 2015-06-13 10:52:10 UTC
  • mfrom: (0.30.1) (0.29.1) (0.17.4) (2.1.9 sid)
  • Revision ID: package-import@ubuntu.com-20150613105210-5uirr7tvnk0n6e6y
Tags: 0~git20150613-1
* New snapshot release (closes: #787805)
* fixed typo in logrotate script (closes: #787645)

Show diffs side-by-side

added added

removed removed

Lines of Context:
13
13
  protected $requestorPHID;
14
14
  protected $sourcePHID;
15
15
  protected $sourceLabel;
16
 
  protected $data;
 
16
  protected $data = array();
17
17
  protected $mailKey;
18
18
  protected $dateNuanced;
19
19
 
20
 
  public static function initializeNewItem(PhabricatorUser $user) {
 
20
  public static function initializeNewItem() {
21
21
    return id(new NuanceItem())
22
22
      ->setDateNuanced(time())
23
23
      ->setStatus(self::STATUS_OPEN);
94
94
    $this->source = $source;
95
95
  }
96
96
 
 
97
  public function getNuanceProperty($key, $default = null) {
 
98
    return idx($this->data, $key, $default);
 
99
  }
 
100
 
 
101
  public function setNuanceProperty($key, $value) {
 
102
    $this->data[$key] = $value;
 
103
    return $this;
 
104
  }
 
105
 
97
106
  public function getCapabilities() {
98
107
    return array(
99
108
      PhabricatorPolicyCapability::CAN_VIEW,