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

« back to all changes in this revision

Viewing changes to phabricator/src/applications/dashboard/storage/PhabricatorDashboardPanel.php

  • Committer: Package Import Robot
  • Author(s): Richard Sellam
  • Date: 2015-08-03 23:28:35 UTC
  • mfrom: (0.39.1) (0.38.1) (0.27.3) (2.1.10 sid)
  • Revision ID: package-import@ubuntu.com-20150803232835-qnomusa964oxnywb
Tags: 0~git20150803-1
* New snapshot release (closes: #789760)
* renamed arcanist bash-completion file (closes: #791632)
* depends on same version for libphutil (closes: #794462)
* added php5-mysqlnd alternative depends (closes: #792136)

Show diffs side-by-side

added added

removed removed

Lines of Context:
9
9
    PhabricatorApplicationTransactionInterface,
10
10
    PhabricatorPolicyInterface,
11
11
    PhabricatorCustomFieldInterface,
 
12
    PhabricatorFlaggableInterface,
 
13
    PhabricatorProjectInterface,
12
14
    PhabricatorDestructibleInterface {
13
15
 
14
16
  protected $name;
70
72
    return 'W'.$this->getID();
71
73
  }
72
74
 
 
75
  public function getPanelTypes() {
 
76
    $panel_types = PhabricatorDashboardPanelType::getAllPanelTypes();
 
77
    $panel_types = mpull($panel_types, 'getPanelTypeName', 'getPanelTypeKey');
 
78
    asort($panel_types);
 
79
    $panel_types = (array('' => pht('(All Types)')) + $panel_types);
 
80
    return $panel_types;
 
81
  }
 
82
 
 
83
  public function getStatuses() {
 
84
    $statuses =
 
85
      array(
 
86
        '' => pht('(All Panels)'),
 
87
        'active' => pht('Active Panels'),
 
88
        'archived' => pht('Archived Panels'),
 
89
      );
 
90
    return $statuses;
 
91
  }
 
92
 
73
93
  public function getImplementation() {
74
94
    return idx(
75
95
      PhabricatorDashboardPanelType::getAllPanelTypes(),