Esempio n. 1
0
 function __construct($args = null)
 {
     parent::__construct($args);
     //Connect tables 'orders' and ('order_time', 'order_cost', 'order_prev_info', 'order_users') as one-to-one
     $this->order_time = dataBase::getElement('order_time', array('order_id' => $this->rowid));
     $this->order_cost = dataBase::getElement('order_cost', array('order_id' => $this->rowid));
     $this->order_prev_info = dataBase::getElement('order_prev_info', array('order_id' => $this->rowid));
     $this->order_users = dataBase::getElement('order_users', array('order_id' => $this->rowid));
 }
Esempio n. 2
0
 function __construct($args = null)
 {
     parent::__construct($args);
     //Connect tables 'partners' and 'partner_info' as one-to-many
     $this->partner_info = dataBase::getElement('partner_info', array('partner_id' => $this->rowid));
 }
Esempio n. 3
0
 function __construct($args = null)
 {
     parent::__construct($args);
     //Connect tables 'clients' and 'partner_info' as one-to-one
     $this->client = dataBase::getElement('clients', array('rowid' => $this->client_id));
 }
Esempio n. 4
0
 function __construct($args = null)
 {
     parent::__construct($args);
     //Connect tables 'order_users' and 'users' as one-to-one
     $this->user = dataBase::getElement('users', array('rowid' => $this->user_id));
 }