Hi Robert,

I've tried that before but I've delteted the module entry in the Shopadmin, too.

It works now like a charm! :) Thanks for the hint.


Bei Fragen stehe ich Ihnen gerne zur Verfügung.

Mit freundlichen Grüßen

Tim Aniol
Junior Softwareentwickler

*************************************
shoptimax GmbH
Guntherstraße 45a
90461 Nürnberg
Tel    (09 11) 2 55 66 - 25
Fax    (09 11) 2 55 66 - 29
eMail  [email protected]
Web    www.shoptimax.de
*************************************
Geschäftsführung: Friedrich Schreieck
Ust.-IdNr.: DE 814340642
Amtsgericht Nürnberg HRB 21703

-----Ursprüngliche Nachricht-----
Von: [email protected] 
[mailto:[email protected]] Im Auftrag von Robert Rosendahl
Gesendet: Mittwoch, 20. Juli 2011 17:10
An: [email protected]
Betreff: Re: [oxid-dev-general] Override oxutils

Hi,

there was a discussion a while ago in this mailing list about shop classes that 
cannot be overloaded through the modules list you enter in the admin settings.
The reason some modules cannot be overloaded that way is that some classes are 
loaded before the database connection is established and the modules list is 
read from the database.

You can, however, overload those classes in the config.inc.php file:

$this->_aConfigParams['aModules'] = array('oxutils' => 'myoxutils');

This way the module will be applied even before the modules list is read from 
the database.
You should add your module to the modules list in the admin settings, too, 
however, because the aModules config param will be overwritten when the modules 
list is loaded from the database.

I'm not sure if this applies to the oxUtils class, but if I remember correctly 
then modules for classes like oxUtilsFile need to be pre-defined this way.

Regards,
  Robert


Am 20.07.2011 um 08:02 schrieb Max Böhme | top concepts GmbH:

> 
> oxUtils is a singleton, so you should also check if it's instantiated 
> bevor(!) your modules-array is available in oxUtilsObject::oxNew
> 
> Regards,
> Max
> 
> -----Ursprüngliche Nachricht-----
> Von: "Shaun Purvis" <[email protected]>
> Gesendet: Wednesday, 20 July, 2011 03:20
> An: [email protected]
> Betreff: Re: [oxid-dev-general] Override oxutils
> 
> I've extended methods in oxutils without issues.  Double check for
> typos...  Maybe, try moving around the module definition line under
> admin.  For example, if you use the line
> 
> oxutils => myoxutils
> 
> try moving that line up or simply make it the the first line under
> Admin>Core Settings>Modules.  I've had some strange behaviour with
> modules and this has sometimes fixed it.
> 
> As far as what classes can be extended, I've been using the following
> list for reference (taken from
> http://www.oxid-esales.com/forum/showthread.php?t=6604#post39644):
> 
> oxutilsobject
> oxutils
> oxexceptionhandler
> oxshopcontrol
> start
> oxshop
> oxlang
> oxstr
> oxstrregular
> oxseoencoder
> oxcmp_user
> oxuser
> oxcmp_lang
> oxcmp_cur
> oxbasketitem
> oxbasket
> oxutilsurl
> oxcmp_shop
> oxcmp_categories
> oxmanufacturerlist
> oxmanufacturer
> oxseoencodermanufacturer
> oxcategorylist
> oxcategory
> oxutilsdate
> oxutilscount
> oxcontentlist
> oxcontent
> oxcmp_utils
> oxcmp_news
> oxcmp_basket
> oxviewconfig
> oxutilsview
> oxutilsview
> oxarticlelist
> oxarticle
> oxactions
> oxprice
> oxlist
> oxbase
> oxvatselector
> oxdiscountlist
> oxdiscount
> oxtagcloud
> oxrssfeed
> oxnewslist
> oxnews
> oxpricelist
> oxutilsstring
> oxoutput
> oxseoencodercontent
> 
> Regards,
> Shaun.
> 
> On Tue, Jul 19, 2011 at 11:12 AM, Tim Aniol <[email protected]> wrote:
>> Hi List,
>> 
>> 
>> 
>> I've tried to override some oxutils methods in Oxid 4.5.
>> 
>> 
>> 
>> e.g.
>> 
>> 
>> 
>> class myoxutils extends myoxutils_parent
>> 
>> {
>> 
>>                 protected function _fillExplodeArray( $aName, $dVat = null)
>> 
>>                 {
>> 
>>                                die("test");
>> 
>>                 }
>> 
>> }
>> 
>> 
>> 
>> .. but nothing happend. Is it possible to override oxutils or is there
>> something special I have to consider first?
>> 
>> 
>> 
>> 
>> 
>> Bei Fragen stehe ich Ihnen gerne zur Verfügung.
>> 
>> Mit freundlichen Grüßen
>> 
>> Tim Aniol
>> Junior Softwareentwickler
>> 
>> *************************************
>> shoptimax GmbH
>> Guntherstraße 45a
>> 90461 Nürnberg
>> Tel    (09 11) 2 55 66 - 25
>> Fax    (09 11) 2 55 66 - 29
>> eMail  [email protected]
>> Web    www.shoptimax.de
>> *************************************
>> Geschäftsführung: Friedrich Schreieck
>> Ust.-IdNr.: DE 814340642
>> Amtsgericht Nürnberg HRB 21703
>> 
>> 
>> 
>> _______________________________________________
>> dev-general mailing list
>> [email protected]
>> http://dir.gmane.org/gmane.comp.php.oxid.general
>> 
> _______________________________________________
> dev-general mailing list
> [email protected]
> http://dir.gmane.org/gmane.comp.php.oxid.general
> 
> 
> 
> 
> 
> _______________________________________________
> dev-general mailing list
> [email protected]
> http://dir.gmane.org/gmane.comp.php.oxid.general

_______________________________________________
dev-general mailing list
[email protected]
http://dir.gmane.org/gmane.comp.php.oxid.general


_______________________________________________
dev-general mailing list
[email protected]
http://dir.gmane.org/gmane.comp.php.oxid.general

Reply via email to