__construct() публичный Метод

Constructor
public __construct ( )
Пример #1
0
 function __construct($id, $type)
 {
     parent::__construct($id);
     $this->payment = RegistrationPayment::load(array('order_id' => $id, 'payment_type' => $type));
     if (!$this->payment) {
         error_exit("No such payment for this registration");
     }
 }
Пример #2
0
 function __construct($id)
 {
     parent::__construct($id);
     $this->form_load(true);
 }