Exemplo n.º 1
0
 function __construct($data = null)
 {
     if (!$data) {
         $data = new Page();
         $data->Title = "Unsubscribe";
     }
     parent::__construct($data);
 }
Exemplo n.º 2
0
 public function __construct($controller, $name, DataObjectInterface $payable, $amount)
 {
     if (!is_numeric($amount)) {
         throw new InvalidArgumentException("Amount must be numeric");
     }
     $record = new Page(array('ID' => -1, 'Title' => $controller->Title, 'ParentID' => $controller->ID, 'URLSegment' => $name));
     parent::__construct($record);
     $this->payable = $payable;
     $this->amount = $amount;
     //get currency from defaults
     $defaults = Payment::config()->defaults;
     if (isset($defaults['MoneyCurrency'])) {
         $this->currency = $defaults['MoneyCurrency'];
     }
     $this->successurl = $controller->Link();
 }
Exemplo n.º 3
0
 public function __construct()
 {
     parent::__construct();
     $this->news_repository = new SapphireNewsRepository();
 }
 function __construct($data = null)
 {
     parent::__construct($data);
 }
 public function __construct()
 {
     parent::__construct();
     $this->news_repository = new SapphireNewsRepository();
     $this->manager = new NewsRequestManager(new SapphireNewsRepository(), new SapphireSubmitterRepository(), new NewsFactory(), new NewsValidationFactory(), new SapphireFileUploadService(), SapphireTransactionManager::getInstance());
 }
 /**
  * Constructs a new controller for creating a registration.
  *
  * @param Controller $parent
  * @param RegisterableDateTime $datetime
  */
 public function __construct($parent, $datetime)
 {
     $this->parent = $parent;
     $this->datetime = $datetime;
     parent::__construct($parent->data());
 }
Exemplo n.º 7
0
 /**
  * SummitVideoApp_Controller constructor.
  * @param null $dataRecord
  */
 public function __construct($dataRecord = null)
 {
     parent::__construct($dataRecord);
     $this->backend = Injector::inst()->get('SummitVideoAppBackend');
 }
 /**
  * @param RequestHandler $parent
  * @param string $name
  */
 public function __construct($parent, $name)
 {
     $this->parent = $parent;
     $this->name = $name;
     parent::__construct();
 }
 public function __construct($parent, $time)
 {
     $this->parent = $parent;
     $this->time = $time;
     parent::__construct($parent->data()->customise(array('Title' => $this->Title())));
 }
 public function __construct($parent, $registration)
 {
     $this->parent = $parent;
     $this->registration = $registration;
     parent::__construct($parent->data()->customise(array('Title' => $this->Title())));
 }