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

« back to all changes in this revision

Viewing changes to phabricator/src/applications/phortune/cart/PhortuneAdHocCart.php

  • Committer: Package Import Robot
  • Author(s): Richard Sellam
  • Date: 2015-04-28 03:01:19 UTC
  • mfrom: (0.22.1) (0.21.1) (0.17.2) (2.1.7 sid)
  • Revision ID: package-import@ubuntu.com-20150428030119-36t1maxz1gh3ojyg
Tags: 0~git20150428-1
* New snapshot release
* fixed nginx configuration (closes: #779705)
* start mysql before phd daemons, if available (closes: #780260, #780265)
* fixed log files permissions (closes: #781825)
* added spanish translation (closes: #783566)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?php
 
2
 
 
3
final class PhortuneAdHocCart extends PhortuneCartImplementation {
 
4
 
 
5
  public function loadImplementationsForCarts(
 
6
    PhabricatorUser $viewer,
 
7
    array $carts) {
 
8
 
 
9
    $results = array();
 
10
    foreach ($carts as $key => $cart) {
 
11
      $results[$key] = new PhortuneAdHocCart();
 
12
    }
 
13
 
 
14
    return $results;
 
15
  }
 
16
 
 
17
  public function getName(PhortuneCart $cart) {
 
18
    return $cart->getMetadataValue('adhoc.title');
 
19
  }
 
20
 
 
21
  public function getDescription(PhortuneCart $cart) {
 
22
    return $cart->getMetadataValue('adhoc.description');
 
23
  }
 
24
 
 
25
  public function getCancelURI(PhortuneCart $cart) {
 
26
    return null;
 
27
  }
 
28
 
 
29
  public function getDoneURI(PhortuneCart $cart) {
 
30
    return null;
 
31
  }
 
32
 
 
33
  public function willCreateCart(
 
34
    PhabricatorUser $viewer,
 
35
    PhortuneCart $cart) {
 
36
    return;
 
37
  }
 
38
 
 
39
}