Hi,

there is a situation for overwriting one class with multiple files in
one module.
If you have one class which overwrites the price calculation. And
another which overwrites the product (article) picture lookup. For a
strict separation of the two functions, it's good to place them in
separate files and classes. This is a part of "Separation of Concerns".


Best regards from Würzburg

Stefan Krenz


Am 26.06.2012 17:08, schrieb Kai Gazmaga:
>
> Hi Joachim,
>
> why would you want to extend ONE class in ONE module via multiple
> files? I can not imagine a situation where you can not put all your
> changes into one file. The only thing that comes to my mind is the
> include-files for the drag-and-drop dialogs but they can not be easily
> overloaded as far as I could find out - I had that problem months ago.
>
> Regards, Kai
>
> *Vektor*Design- Online-Shops und Programmierung
>
> Kai Gazmaga
> Katharinenstraße 57
> 73 728 Esslingen
>
> Tel.: +49 711 - 25516226 <tel:%2B49%20711%20-%2025516226>
> Fax: +49 711 - 25518078 <tel:%2B49%20711%20-%2025518078>
>
> Mail: i...@vektordesign.de <mailto:i...@vektordesign.de>
> Web: www.vektordesign.de <http://www.vektordesign.de/>
>
> *Von:*dev-general-boun...@lists.oxidforge.org
> [mailto:dev-general-boun...@lists.oxidforge.org] *Im Auftrag von
> *Joachim Barthel
> *Gesendet:* Dienstag, 26. Juni 2012 15:50
> *An:* dev-general@lists.oxidforge.org
> *Betreff:* Re: [oxid-dev-general] Metadata: Problems on registering
> multiple entries for one class
>
> Hi Jaroslav,
>
> thank you, I have defined these classes. The module runs well for OXID
> 4.3 to 4.5. Just the new registration in 4.6 and the definitions in
> the metadata.php are making trouble.
>
> Joachim
>
> 2012/6/26 Jaroslav Herber <jaroslav.her...@loesdau.de
> <mailto:jaroslav.her...@loesdau.de>>
>
> Hi,
>
> try this in your classes:
>
> |class oxprobs_articles extends oxprobs_articles_parent {…}|
>
> ||
>
> |class oxprobs_delivery extends oxprobs_delivery_parent {…}|
>
> ||
>
> |class oxprobs_groups extends oxprobs_groups_parent {…}|
>
> ||
>
> Mit freundlichen Grüßen aus Bisingen
>
> JaroslavHerber
>
> E-Commerce Developer
>
>
> *Pferdesporthaus Loesdau GmbH & Co. KG
> *Hechinger Str. 58
> 72406 Bisingen
>
>
> Tel.: +49 (0) 74 76 - 94 99 236
> <tel:%2B49%20%280%29%2074%2076%20-%2094%2099%20236>
> FAX: +49 (0) 74 76 - 94 99 336
> <tel:%2B49%20%280%29%2074%2076%20-%2094%2099%20336>
>
> Mail: jaroslav.her...@loesdau.de <mailto:jaroslav.her...@loesdau.de>
>
> www.loesdau.de <http://www.loesdau.de>
>
> Loesdau auf Facebook <http://www.facebook.com/loesdau.de>
>
> Persönlich haftende Gesellschafterin:
> Pferdesporthaus Loesdau Verwaltungs-GmbH vertreten durch
> Jürgen Loesdau und Dr. Björn Schützenauer
> HRB Nr. 420710 Amtsgericht Stuttgart
> HRA Nr. 420802 Amtsgericht Stuttgart
> USt.-Id Nr. DE191763260
> St.-Nr. 53089/04888
> ____________________________________________
>
> *Von:*dev-general-boun...@lists.oxidforge.org
> <mailto:dev-general-boun...@lists.oxidforge.org>
> [mailto:dev-general-boun...@lists.oxidforge.org
> <mailto:dev-general-boun...@lists.oxidforge.org>] *Im Auftrag von
> *Joachim Barthel
> *Gesendet:* Dienstag, 26. Juni 2012 15:42
> *An:* dev-general@lists.oxidforge.org
> <mailto:dev-general@lists.oxidforge.org>
> *Betreff:* [oxid-dev-general] Metadata: Problems on registering
> multiple entries for one class
>
> Hi,
>
> I have some problems to prepare the metadata.php for a module which
> needs multiple entries for one class. All trials are failed.
>
> *Try 1*
>
> PHP-Code:
>
> |||'extend' ||=> array( |
> |||'oxadmindetails' ||=> array(||'oxprobs/oxprobs_articles'||,
> ||'oxprobs/oxprobs_delivery'||, ||'oxprobs/oxprobs_groups'||) |
> |), |
>
> Result: All entries are registered, but the module isn't activated
> (Button still displays "Activate")
>
> *Try 2*
>
> PHP-Code:
>
> |||'extend' ||=> array( |
> |||'oxadmindetails' ||=>
> ||'oxprobs/oxprobs_articles&oxprobs/oxprobs_delivery&oxprobs/oxprobs_groups'
> |
> |||), |
>
> Result: All entries are registered, but the module isn't activated
> (Button still displays "Activate")
>
> *Try 3*
>
> PHP-Code:
>
> |||'extend' ||=> array( |
> |||'oxadmindetails' ||=> ||'oxprobs/oxprobs_articles'||, |
> |||'oxadmindetails' ||=> ||'oxprobs/oxprobs_delivery'||, |
> |||'oxadmindetails' ||=> ||'oxprobs/oxprobs_groups' |
> |||), |
>
> Result: The module will be activated (button text changes to
> "Deactivate"), but only one of the entries or sometimes two are
> getting registererd.
>
> Any idea? Thanks!
>
> Joachim
> __________________
> Piwik-Plugin <http://code.google.com/p/piwik-oxid-plugin/>-- OxAds
> <http://code.google.com/p/oxads/>-- OxProbs
> <http://code.google.com/p/oxprobs/wiki/Beschreibung>
>
>
> _______________________________________________
> dev-general mailing list
> dev-general@lists.oxidforge.org <mailto:dev-general@lists.oxidforge.org>
> http://dir.gmane.org/gmane.comp.php.oxid.general
>
>
>
> _______________________________________________
> dev-general mailing list
> dev-general@lists.oxidforge.org
> http://dir.gmane.org/gmane.comp.php.oxid.general


-- 
Stefan Krenz                        Mayflower GmbH                  
Gneisenaustr. 10/11                 Tel.: +49 931 359 65 11 63
D-97074 Würzburg                    Fax : +49 931 359 65 28
stefan.kr...@mayflower.de           http://www.mayflower.de

Mayflower GmbH, Standort Würzburg
Firmensitz: Mannhardtstraße 6, 80538 München
Registergericht: Amtsgericht München, HRB 142039
Geschäftsführer: Gregor Streng, Björn Schotte,
Albrecht Günther, Johann-Peter Hartmann

_______________________________________________
dev-general mailing list
dev-general@lists.oxidforge.org
http://dir.gmane.org/gmane.comp.php.oxid.general

Reply via email to