Open new tab for editing items
[infodrom.org/service.infodrom.org] / class / sales.class.php
1 <?php
2
3 class Sales extends DatabaseTable {
4
5   public function __construct($id)
6   {
7     $this->idcolumn = 'nr';
8     parent::__construct('sales', $id);
9   }
10
11   public function setPaid()
12   {
13     return $this->modify('paid', 1);
14   }
15
16   public function unsetPaid()
17   {
18     return $this->modify('paid', 0);
19   }
20
21   public function setDescription($text)
22   {
23     return $this->modify('description', $text);
24   }
25
26 }
27
28 ?>