Hello,
in case if your module does not extend an OXID class but adds a custom class,
you can extend your custom class to get menu.xml workin.
like this:
metadata.php -------------------------------------------------
….
'files' => array(
'myClass' => 'myModule/myClass.php',
),
'extend' => array(
myClass' => 'myModule/myClass-ext',
),
myClass-ext.php -----------------------------------------------
class myClass-ext extends myClass-ext_parent
{
public function takeOverTheWorld()
{
parent::takeOverTheWorld();
}
}
Regards,
Marat
Von: [email protected]
[mailto:[email protected]] Im Auftrag von Björn Lange
Gesendet: Donnerstag, 28. Juni 2012 12:02
An: [email protected]
Betreff: Re: [oxid-dev-general] Metadata: Problems on registering multiple
entries for one class
Hi Kai,
2012/6/28 Kai Gazmaga
<[email protected]<mailto:[email protected]>>
this is interesting because I wrote (some) modules that extend the menue
without having extended classes setup in modules-array - the only file in
modules-dir is menu.xml.
Maybe this is a kind of bug - or simply new handling in 4.6. But I would like
to see all module-dirs scanned for menue.xml without unnecessarily setting up
files in the metadata.php.
Erik Kort said at the Unconference something like, that a module is only a
module, if the extend array in the metadata.php is existing. And the module
system only adds module navigations, if the module is enabled ... i would say,
merge your module to OXID 4.6. I understand your point, but i like the way to
"soft force" a clean api.
Regards,
Björn
________________________________
Der Inhalt dieser Nachricht ist ausschließlich für den bezeichneten Adressaten
bestimmt. Wenn Sie nicht der vorgesehene Adressat dieser Nachricht oder dessen
Vertreter sein sollten, so beachten Sie bitte, dass jede Form der
Veröffentlichung, Vervielfältigung oder Weitergabe des Inhalts dieser Nachricht
unzulässig ist. Wir bitten Sie, sich in diesem Fall mit dem Absender der
Nachricht in Verbindung zu setzen. Diese Nachricht wurde durch einen
Virenscanner auf Viren und sonstigen schädlichen Inhalt geprüft, jedoch wird
keinerlei Haftung für Schäden wegen Viren übernommen. Auch wird keine Haftung
für Schäden übernommen, die aus einer Veränderung des Inhalts dieser Nachricht
durch Dritte entstehen können. Wenn Sie auf diese Nachricht antworten, beachten
Sie bitte, dass durch innerbetriebliche Regelungen Ihre E-Mail eventuell auch
durch einen anderen als den bezeichneten Adressaten gelesen werden kann.
This message is confidential and intended solely for the use of the individual
or organization to whom it is addressed. Should you not be the intended
addressee of this message or his or her representative, please note that
publication, replication of the contents by any means or further communication
of the content is not permissible. Should you have received this message in
error, please notify the sender. This message was scanned by a virus and
content filter but liability for any viruses transmitted will not be accepted.
Furthermore we are not liable for damages arising from alteration of the
contents of this message by a third party. If you reply to this message please
keep in mind that due to innerorganizational regulations your message could
probably be read by someone else than the intended addressee.
_______________________________________________
dev-general mailing list
[email protected]
http://dir.gmane.org/gmane.comp.php.oxid.general