function updateDB() { $ret = parent::updateDB(); $this->loadLinkedFromDB(); if (is_array($this->Tours)) { foreach ($this->Tours as $t) { $t->loadFromHTML(); $t->updateDB(); } } return $ret; }
function updateDB() { $this->loadLinkedFromDB(); $usersCnt = 0; $usersWLCnt = 0; if (is_array($this->Users)) { foreach ($this->Users as $u) { if ($u->tourUserType == 'apply') { $usersCnt++; } if ($u->tourUserType == 'WL') { $usersWLCnt++; } } } $this->tourAvPlaces = $this->tourPlaces - $usersCnt; $this->tourUsersApply = $usersCnt; $this->tourUsersWL = $usersWLCnt; $ret = parent::updateDB(); return $ret; }
function updateDB() { $this->customerHistory = serialize($this->History); return parent::updateDB(); }