A bench of utils functions.
All classes here should be designed to be extendable the most as possible.
Full doc is planned like hemmmm you know... Later... Sorry!
- Check if array is sequential (numerical keys ordered)
- Check if array has homogeneous elements in it (with inheritance support)
- Flatten array (nested field brought up to first level, concatenating keys)
- Sort array by (sub)field
- Get classes and subdir from namespace
- Generate objects from json, with each json field converted to attribute
- JsonObject could include another one (or a list).
- JsonObject could be generated from a parent with additional Json data.
- Functions to sort or search in a list of objects.
- Generate simple curl request, with configurable headers, cookies, curl options
- Isolate target HTML non-empty element by id or class (if only this class for this element)
- Retrieve list of similar first child tags from HTML source
(typically all
<li>
from<ul>
) - Get tag content if not nesting a similar tag.
- Get attribute from isolated html tag
- Convert some data from a unit to another (typically from fahrenheit degree to celsius degree, using kelvin International System unit)
- Filter incoming string
- Defines a frame to build a grid composed of box. Moving from a box in some direction will get the neighbor box.
- Includes tetragon (rectangular) format, with diagonal option
- Includes hexagon format, vertical or horizontal
- Setup ELO system and configuration
- Manage duels
- Extends to multiplayer: races and brawls