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

« back to all changes in this revision

Viewing changes to phabricator/src/applications/pholio/storage/PholioMock.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:
9
9
    PhabricatorFlaggableInterface,
10
10
    PhabricatorApplicationTransactionInterface,
11
11
    PhabricatorProjectInterface,
12
 
    PhabricatorDestructibleInterface {
 
12
    PhabricatorDestructibleInterface,
 
13
    PhabricatorSpacesInterface {
13
14
 
14
15
  const MARKUP_FIELD_DESCRIPTION  = 'markup:description';
15
16
 
 
17
  const STATUS_OPEN = 'open';
 
18
  const STATUS_CLOSED = 'closed';
 
19
 
16
20
  protected $authorPHID;
17
21
  protected $viewPolicy;
18
22
  protected $editPolicy;
23
27
  protected $coverPHID;
24
28
  protected $mailKey;
25
29
  protected $status;
 
30
  protected $spacePHID;
26
31
 
27
32
  private $images = self::ATTACHABLE;
28
33
  private $allImages = self::ATTACHABLE;
41
46
    return id(new PholioMock())
42
47
      ->setAuthorPHID($actor->getPHID())
43
48
      ->attachImages(array())
44
 
      ->setStatus('open')
 
49
      ->setStatus(self::STATUS_OPEN)
45
50
      ->setViewPolicy($view_policy)
46
 
      ->setEditPolicy($edit_policy);
 
51
      ->setEditPolicy($edit_policy)
 
52
      ->setSpacePHID($actor->getDefaultSpacePHID());
47
53
  }
48
54
 
49
55
  public function getMonogram() {
159
165
 
160
166
  public function getStatuses() {
161
167
    $options = array();
162
 
    $options['open'] = pht('Open');
163
 
    $options['closed'] = pht('Closed');
 
168
    $options[self::STATUS_OPEN] = pht('Open');
 
169
    $options[self::STATUS_CLOSED] = pht('Closed');
164
170
    return $options;
165
171
  }
166
172
 
305
311
    $this->saveTransaction();
306
312
  }
307
313
 
 
314
 
 
315
/* -(  PhabricatorSpacesInterface  )----------------------------------------- */
 
316
 
 
317
 
 
318
  public function getSpacePHID() {
 
319
    return $this->spacePHID;
 
320
  }
 
321
 
 
322
 
308
323
}