You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Momentalne tu su iba triedy, ktore spracovavaju samotne data.
Hodilo by sa mat aj spolocnu triedu, ktora dostane cestu k suboru / stream a poradi si s tym, nech to nemusi byt v kazdom projekte pouzivajucom tuto kniznicu riesene samostatne.
Mohla by tu byt trieda, ktora by vedela nacitat:
plain XML
zazipovane XML
PHP stream
The text was updated successfully, but these errors were encountered:
Myslim, ze vsetky tri body by sme mohli zjednotit do jedneho. Niesom si tymto uplne isty, ale vyzera to tak, ze ak je v PHP pritomne rozsirenie zip (i.e. bolo kompilovane s --with-zip), tak potom existuje stream zip://, ktoremu sa len da cesta k zazipovanemu suboru (vid http://php.net/manual/en/ziparchive.getstream.php).
Tym padom by classa fungovala tak, ako s plain XML a menil by sa len stream na zaklade mime typu/pripony suboru, ktory by dostala.
Velmi odborne by toto bol asi priklad cohosi presne opacneho ako dependency injection.
Momentalne tu su iba triedy, ktore spracovavaju samotne data.
Hodilo by sa mat aj spolocnu triedu, ktora dostane cestu k suboru / stream a poradi si s tym, nech to nemusi byt v kazdom projekte pouzivajucom tuto kniznicu riesene samostatne.
Mohla by tu byt trieda, ktora by vedela nacitat:
The text was updated successfully, but these errors were encountered: