Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pridat triedu na nacitavanie zo suboru #1

Open
martin-sucha opened this issue Feb 23, 2013 · 1 comment
Open

Pridat triedu na nacitavanie zo suboru #1

martin-sucha opened this issue Feb 23, 2013 · 1 comment

Comments

@martin-sucha
Copy link
Member

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
@mrshu
Copy link
Contributor

mrshu commented Oct 17, 2013

Az neskoro som sa pozrel sem.

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants