コード例 #1
0
ファイル: Calculator.php プロジェクト: nanawel/webhomebank
 public function __construct(Xhb $xhb, $account = null, array $data = array())
 {
     parent::__construct($data);
     $this->setXhb($xhb);
     if (is_numeric($account)) {
         $account = $xhb->getAccount($account);
     }
     $this->_account = $account;
 }
コード例 #2
0
ファイル: Xhb.php プロジェクト: nanawel/webhomebank
 public function __construct($data = array())
 {
     parent::__construct($data);
     if (isset($data['resource_config']['type']) && $data['resource_config']['type']) {
         $this->_resourceType = ucfirst($data['resource_config']['type']);
     } else {
         throw new \Exception('Missing resource configuration');
     }
     $this->setXhb($this);
     // Init own resource instance
     $this->getResource(true, $data);
 }
コード例 #3
0
ファイル: VehicleCost.php プロジェクト: nanawel/webhomebank
 public function __construct(Xhb $xhb, $data = array())
 {
     parent::__construct($data);
     $this->setXhb($xhb);
 }
コード例 #4
0
ファイル: Account.php プロジェクト: nanawel/webhomebank
 public function __construct($data)
 {
     parent::__construct($data);
 }