public static function updateZit($zitId, $zitName, $sourceId, $adminUrl, $minBuffer, $maxBuffer, $zitUrl) { $db = Zend_Registry::get('my_db'); $z = new ZisServer($db); $data = array(DBConvertor::convertCase('zit_name') => $zitName, DBConvertor::convertCase('source_id') => $sourceId, DBConvertor::convertCase('admin_url') => $adminUrl, DBConvertor::convertCase('min_buffer') => $minBuffer, DBConvertor::convertCase('max_buffer') => $maxBuffer, DBConvertor::convertCase('zit_url') => $zitUrl); $n = $z->update($data, DBConvertor::convertCase('zit_id') . ' = ' . $zitId); }
require_once '../CLASSES/' . $dbversion . '/AgentRegistered.php'; require_once '../CLASSES/' . $dbversion . '/AgentZoneContext.php'; require_once '../CLASSES/' . $dbversion . '/AgentProvisions.php'; require_once '../CLASSES/' . $dbversion . '/AgentSubscriptions.php'; require_once '../CLASSES/' . $dbversion . '/AgentRequester.php'; require_once '../CLASSES/' . $dbversion . '/AgentResponder.php'; require_once '../CLASSES/' . $dbversion . '/ProvisionDataObjectAgentVW.php'; require_once '../CLASSES/' . $dbversion . '/ProvisionDataObjectVW.php'; require_once '../CLASSES/' . $dbversion . '/AgentPermisionDataObjectVW.php'; require_once '../CLASSES/' . $dbversion . '/AgentResponderDataObjectAgentVW.php'; require_once '../CLASSES/' . $dbversion . '/MessageQueues.php'; require_once '../CLASSES/' . $dbversion . '/RequestAgentVW.php'; require_once '../CLASSES/' . $dbversion . '/GetFirstMessageVW.php'; require_once '../CLASSES/' . $dbversion . '/AgentProvisions.php'; try { $zisServer = new ZisServer($db); $result = $zisServer->fetchAll('zit_id = 1'); } catch (Zend_Exception $e) { ZitLog::writeToErrorLog("[ZISServer]", "Errors:{$e->getTraceAsString}()", "ZISServer", 0); GeneralError::systemError($xml); } switch (DB_TYPE) { case 'mysql': $_SESSION['ZIS_SOURCEID'] = $result[0]->source_id; $_SESSION['ASLEEP'] = $result[0]->asleep; $_SESSION['ADMIN_URL'] = $result[0]->admin_url; $_SESSION['ZIS_NAME'] = $result[0]->zit_name; $_SESSION['MIN_BUFFER'] = $result[0]->min_buffer; $_SESSION['MAX_BUFFER'] = $result[0]->max_buffer; $_SESSION['ZIT_URL'] = $result[0]->zit_url; break;