functions_sorter.php File Reference


Functions

 build_simple_sorter ($room, &$item_obj)
 build_complexe_sorter ()
 sorterBy (&$sortered, $my_sorters_with_key)

Detailed Description

The php sorter need colum arrays. These functions build the arrays and use them. See the php documentation about array_multisort.

Function Documentation

build_complexe_sorter (  ) 

Buid sorter which needs global information. Use global variables : items, sorter_items, total_stack, material_by_code.

< <array{item]> Where items are stoked

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

< <array{int]> Will use for writins the total amount of material, give the total for each material

< <array{int]> Will use for writins the total amount of material, give the material object

build_simple_sorter ( room,
&$  item_obj 
)

Buid sorter which needs item information and start to build sorter which needs global information. Use global variables : items, sorter_items, total_stack, material_by_code.

Parameters:
room <string> the room where the item is put
item_obj <item> the item added to sorter_items and item

< <array{item}> Where items are stoked

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

< <array{int}> Will use for writins the total amount of material, give the total for each material

< <array{int}> Will use for writins the total amount of material, give the material object

sorterBy ( &$  sortered,
my_sorters_with_key 
)

Sort the items.

Parameters:
sortered <array{item}> the array sortered
my_sorters_with_key <array> the arrays sorting sortered


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