/** * Get XML content * @access private **/ function _get_textxml($config_webserver_ip, $content) { $login_data = $this->steam->get_login_data(); $login_data = $login_data->get_arguments(); $modulXslt = $login_data[8]["libxslt"]; $module = steam_factory::get_object($this->steam->get_id(), $modulXslt->get_id(), $modulXslt->get_type()); $result = steam_connection::get_instance($this->steam->get_id())->predefined_command($module, "run", array($content, $this->object->get_attribute("xsl:public"), array(1 => "1")), "objarg", 0); return $result; }
public function read_socket($pLength) { return steam_connection::get_instance($this->get_id())->read_socket($pLength); }
public static function prefetch($pSteamConnectorID, $pObject, $pIventory = false, $pDepanding = false, $pBuffer = 0) { $clientSupport = steam_connection::get_instance($pSteamConnectorID)->get_module("package:clientsupport"); if (is_object($clientSupport)) { $objectData = $GLOBALS['STEAM']->predefined_command($clientSupport, "query_object_data", array($pObject, $pIventory, $pDepanding), $pBuffer); $objects = $objectData["objects"]; foreach ($objects as $id => $object) { !API_DEBUG or error_log("prefetched: " . $id); $steam_object = self::get_object($pSteamConnectorID, $id, $object["object_class"]); $steam_object->set_values($object["attributes"]); $steam_object->set_prefetched(); !API_DEBUG or error_log(count($steam_object->get_values(), true)); if ($steam_object instanceof steam_user) { self::setUserCache($object["attributes"]["OBJ_NAME"], $steam_object); } else { if ($steam_object instanceof steam_group) { self::setGroupCache($object["attributes"]["OBJ_NAME"], $steam_object); } } } } }
public static function init($server_ip, $server_port, $login_name, $login_pw) { $id = $login_name . "@" . $server_ip; if (isset(self::$instances[$id])) { self::$instances[$id]->connect($server_ip, $server_port, $login_name, $login_pw); return self::$instances[$id]; } else { $steam_connection = new steam_connection($server_ip, $server_port, $login_name, $login_pw); self::$instances[$id] = $steam_connection; $steam_connection->connect($server_ip, $server_port, $login_name, $login_pw); return $steam_connection; } }