functions_parse.php File Reference


Enumerations

enum  PATTERN_REFUGEE
enum  PATTERN_AMPLI
enum  PATTERN_WEAPON
enum  PATTERN_RANGE
enum  PATTERN_ARMOR
enum  PATTERN_ARMOR_CP
enum  PATTERN_SHIELD
enum  PATTERN_JEWEL
enum  PATTERN_MATERIAL_LOOT
enum  PATTERN_MATERIAL_HARVEST
enum  PATTERN_ELSE

Functions

 parse_guild (&$xml)
 parse_character (&$xml)
 parse_item (&$xml, $xml_path, $chest)
 parse_an_item (&$item, $chest)
 creat1 (&$item, $chest, $matches, &$item_obj)
 creat2 (&$item, $chest, $matches, &$item_obj)
 creat3 (&$item, $chest, $matches, &$item_obj)
 creat4 (&$item, $chest, $matches, &$item_obj)
 creat5 (&$item, $chest, $matches, &$item_obj)
 creat6 (&$item, $chest, $matches, &$item_obj)
 creat7 (&$item, $chest, $matches, &$item_obj)
 creat8 (&$item, $chest, $matches, &$item_obj)
 creat9 (&$item, $chest, $matches, &$item_obj)
 creat10 (&$item, $chest, $matches, &$item_obj)
 creat11 (&$item, $chest, $matches, &$item_obj)

Variables

 $pattern_list
 $room_list
 $pfonc_list

Enumeration Type Documentation


Function Documentation

creat1 ( &$  item,
chest,
matches,
&$  item_obj 
)

creat10 ( &$  item,
chest,
matches,
&$  item_obj 
)

creat11 ( &$  item,
chest,
matches,
&$  item_obj 
)

creat2 ( &$  item,
chest,
matches,
&$  item_obj 
)

creat3 ( &$  item,
chest,
matches,
&$  item_obj 
)

creat4 ( &$  item,
chest,
matches,
&$  item_obj 
)

creat5 ( &$  item,
chest,
matches,
&$  item_obj 
)

creat6 ( &$  item,
chest,
matches,
&$  item_obj 
)

creat7 ( &$  item,
chest,
matches,
&$  item_obj 
)

creat8 ( &$  item,
chest,
matches,
&$  item_obj 
)

creat9 ( &$  item,
chest,
matches,
&$  item_obj 
)

parse_an_item ( &$  item,
chest 
)

Use global variables : items, sorter_items.

< <array{item]> Where items are stoked

< <array{item]> Will use for sorting the array items

parse_character ( &$  xml  ) 

For one character, parses its xml file and builds its object which are in his apartment.

Parameters:
xml <simplexml> the xml file

parse_guild ( &$  xml  ) 

For one guild, parses its xml file and builds its object which are in its hall.

Parameters:
xml <simplexml> the xml file

parse_item ( &$  xml,
xml_path,
chest 
)

For one chest, parses its xml file and builds tab filter used by Filter and Item. And give to the chest the nb items found.

Parameters:
xml <simplexml> the xml file
xml_path <string> the xpath for finding item tag
chest <apartment> the apartment or guild object where item are


Variable Documentation

$pattern_list

Initial value:

 array (
    PATTERN_REFUGEE     =>  '/^icr(.*)?\.sitem/',
    PATTERN_AMPLI           =>  '/^ic(.|(oka[rm]))m2ms([lbwe]|_[123])?\.sitem/',
    PATTERN_WEAPON          =>  '/^ic(.|(oka[rm]))m(1|2)(.{2})([lbwe]|_[123])?\.sitem/',
    PATTERN_RANGE           =>  '/^ic(.|(oka[rm]))r(1|2)(.)([lbwe]|_[123])?\.sitem/',
    PATTERN_ARMOR           =>  '/^ic(.)a([h|l|m])([bghpsv])(_[23b])?\.sitem/',
    PATTERN_ARMOR_CP        =>  '/^ic(.)a(cp)(_[23])?\.sitem/',
    PATTERN_SHIELD          =>  '/^ic(.)s[sb]([lbwe]|_[23])?\.sitem/',
    PATTERN_JEWEL           =>  '/^ic(.)j([abdepr])(_[23b])?\.sitem/',
    PATTERN_MATERIAL_LOOT   =>  '/^m([0-9]{4})c(.)(.)(.)(.)01\.sitem/',
    PATTERN_MATERIAL_HARVEST    =>  '/^m([0-9]{4})dxa(.)(.)01\.sitem/'
)

$pfonc_list

Initial value:

 array (
    PATTERN_REFUGEE     =>  "creat1",
    PATTERN_AMPLI           =>  "creat2",
    PATTERN_WEAPON          =>  "creat3",
    PATTERN_RANGE           =>  "creat4",
    PATTERN_ARMOR           =>  "creat5",
    PATTERN_ARMOR_CP        =>  "creat6",
    PATTERN_SHIELD          =>  "creat7",
    PATTERN_JEWEL           =>  "creat8",
    PATTERN_MATERIAL_LOOT   =>  "creat9",
    PATTERN_MATERIAL_HARVEST    =>  "creat10",
    PATTERN_ELSE            =>  "creat11"
)

$room_list


Generated on Wed Sep 30 22:21:24 2009 for Flunker by  doxygen 1.5.9