/** * creates new staff member * * @access public */ function addStaff($uid, $email) { $notify = new xhelpNotificationService(); $staff =& $this->create(); $staff->setVar('uid', $uid); $staff->setVar('email', $email); $numNotify = $notify->getNumDeptNotifications(); $staff->setVar('notify', pow(2, $numNotify) - 1); $staff->setVar('permTimestamp', time()); return $this->insert($staff); }