mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-29 02:02:41 +01:00
40 lines
794 B
PHP
40 lines
794 B
PHP
|
<?php
|
||
|
|
||
|
final class PhortuneAdHocCart extends PhortuneCartImplementation {
|
||
|
|
||
|
public function loadImplementationsForCarts(
|
||
|
PhabricatorUser $viewer,
|
||
|
array $carts) {
|
||
|
|
||
|
$results = array();
|
||
|
foreach ($carts as $key => $cart) {
|
||
|
$results[$key] = new PhortuneAdHocCart();
|
||
|
}
|
||
|
|
||
|
return $results;
|
||
|
}
|
||
|
|
||
|
public function getName(PhortuneCart $cart) {
|
||
|
return $cart->getMetadataValue('adhoc.title');
|
||
|
}
|
||
|
|
||
|
public function getDescription(PhortuneCart $cart) {
|
||
|
return $cart->getMetadataValue('adhoc.description');
|
||
|
}
|
||
|
|
||
|
public function getCancelURI(PhortuneCart $cart) {
|
||
|
return null;
|
||
|
}
|
||
|
|
||
|
public function getDoneURI(PhortuneCart $cart) {
|
||
|
return null;
|
||
|
}
|
||
|
|
||
|
public function willCreateCart(
|
||
|
PhabricatorUser $viewer,
|
||
|
PhortuneCart $cart) {
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
}
|