Functions | |
| build_simple_sorter ($room, &$item_obj) | |
| build_complexe_sorter () | |
| sorterBy (&$sortered, $my_sorters_with_key) | |
| 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.
| 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.
| sortered | <array{item}> the array sortered | |
| my_sorters_with_key | <array> the arrays sorting sortered |
1.5.9