| @@ 72-82 (lines=11) @@ | ||
| 69 | * |
|
| 70 | * @return void |
|
| 71 | */ |
|
| 72 | public function __construct($debtor, $id = 0) |
|
| 73 | { |
|
| 74 | $this->debtor = $debtor; |
|
| 75 | $this->db = new DB_Sql; |
|
| 76 | $this->error = new Intraface_Error; |
|
| 77 | $this->id = (int)$id; |
|
| 78 | ||
| 79 | if ($this->id > 0) { |
|
| 80 | $this->load(); |
|
| 81 | } |
|
| 82 | } |
|
| 83 | ||
| 84 | /** |
|
| 85 | * Loads data |
|
| @@ 16-27 (lines=12) @@ | ||
| 13 | public $error; |
|
| 14 | public $dbquery; |
|
| 15 | ||
| 16 | function __construct($kernel, $id = 0) |
|
| 17 | { |
|
| 18 | $this->id = intval($id); |
|
| 19 | $this->kernel = $kernel; |
|
| 20 | ||
| 21 | $this->db = new DB_Sql; |
|
| 22 | $this->error = new Intraface_Error; |
|
| 23 | ||
| 24 | if ($this->id) { |
|
| 25 | $this->load(); |
|
| 26 | } |
|
| 27 | } |
|
| 28 | ||
| 29 | function getDBQuery() |
|
| 30 | { |
|