src/Neuron/GameServer/LogSerializer.php
private static function getClassId ($object)
	{
		$name = get_class ($object);
		
		$classes = self::getClasses ();
		
		$classnames = $classes['names'];
		
		// Check if isset!
		if (!isset ($classnames[$name]))
		{
			// Insert a new ID
			$db = Neuron_DB_Database::__getInstance ();
			
			$db->query
			("
				INSERT INTO
					n_logables
				SET
					l_name = '".$name."'
			");
			
			/*
			$id = $db->getInsertId ();
			
			$classes['names'][$name] = $id;
			$classes['ids'][$id] = $name;
			*/
			
			$classes = self::getClasses (true);
		}
		
		return $classes['names'][$name];
	}
private static function getClassId ($object)
	{
		$name = get_class ($object);
		
		$classes = self::getClasses ();
		
		$classnames = $classes['names'];
		
		// Check if isset!
		if (!isset ($classnames[$name]))
		{
			// Insert a new ID
			$db = Neuron_DB_Database::__getInstance ();
			
			$db->query
			("
				INSERT INTO
					n_logables
				SET
					l_name = '".$name."'
			");
			
			/*
			$id = $db->getInsertId ();
			
			$classes['names'][$name] = $id;
			$classes['ids'][$id] = $name;
			*/
			
			$classes = self::getClasses (true);
		}
		
		return $classes['names'][$name];
	}
private static function getClassId ( $ object ) { $ name = get_class ( $ object ) ; $ classes = self :: getClasses ( ) ; $ classnames = $ classes [ 'names' ] ; // Check if isset! if ( ! isset ( $ classnames [ $ name ] ) ) { // Insert a new ID $ db = Neuron_DB_Database :: __getInstance ( ) ; $ db -> query ( "
				INSERT INTO
					n_logables
				SET
					l_name = '" . $ name . "'
			" ) ; /*
			$id = $db->getInsertId ();
			
			$classes['names'][$name] = $id;
			$classes['ids'][$id] = $name;
			*/ $ classes = self :: getClasses ( true ) ; } return $ classes [ 'names' ] [ $ name ] ; }
/*
Get classname ID
/ * Get classname ID