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

« back to all changes in this revision

Viewing changes to phabricator/src/applications/phortune/storage/PhortuneCart.php

  • Committer: Package Import Robot
  • Author(s): Richard Sellam
  • Date: 2015-01-29 00:15:58 UTC
  • mfrom: (0.14.1) (0.13.1) (0.10.2) (2.1.4 sid)
  • Revision ID: package-import@ubuntu.com-20150129001558-7qklhtcc043y9mog
Tags: 0~git20150129-1
* New snapshot release
* restricted access to local config file (closes: #775479)
* moved local config file to /var/lib/phabricator (closes: #775478)
* switched mysql-server dependency to recommends (closes: #773536)
* use /run instead of /var/run (closes: #775803)
* prevent package reinstall from overwritting local changes (closes: #776288)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
<?php
2
2
 
3
3
final class PhortuneCart extends PhortuneDAO
4
 
  implements PhabricatorPolicyInterface {
 
4
  implements
 
5
    PhabricatorApplicationTransactionInterface,
 
6
    PhabricatorPolicyInterface {
5
7
 
6
8
  const STATUS_BUILDING = 'cart:building';
7
9
  const STATUS_READY = 'cart:ready';
506
508
    return $this->getImplementation()->assertCanRefundOrder($this);
507
509
  }
508
510
 
509
 
  public function getConfiguration() {
 
511
  protected function getConfiguration() {
510
512
    return array(
511
513
      self::CONFIG_AUX_PHID => true,
512
514
      self::CONFIG_SERIALIZATION => array(
597
599
  }
598
600
 
599
601
 
 
602
/* -(  PhabricatorApplicationTransactionInterface  )------------------------- */
 
603
 
 
604
 
 
605
  public function getApplicationTransactionEditor() {
 
606
    return new PhortuneCartEditor();
 
607
  }
 
608
 
 
609
  public function getApplicationTransactionObject() {
 
610
    return $this;
 
611
  }
 
612
 
 
613
  public function getApplicationTransactionTemplate() {
 
614
    return new PhortuneCartTransaction();
 
615
  }
 
616
 
 
617
  public function willRenderTimeline(
 
618
    PhabricatorApplicationTransactionView $timeline,
 
619
    AphrontRequest $request) {
 
620
 
 
621
    return $timeline;
 
622
  }
 
623
 
 
624
 
600
625
/* -(  PhabricatorPolicyInterface  )----------------------------------------- */
601
626
 
602
627