Hi Mathias,
thanks, that's correct. I've solved it as follows:
---------------------------------------------------------------
<?php
/**
* Add custom functions here.
*/
loadDsbBiCommons();
function loadDsbBiCommons() {
$sDsbCommonsPhpPath = getShopBasePath().
'core/ext/dsb-bi-commons-php-1.0.0/util/';
require_once $sDsbCommonsPhpPath .
'wsi/client/service/commons/ServiceInfoClient.php';
require_once $sDsbCommonsPhpPath .
'wsi/client/template/commons/ServiceInfoTemplate.php';
require_once $sDsbCommonsPhpPath .
'wsi/client/transport/util/TransportConfiguration.php';
// ...
}
---------------------------------------------------------------
But is there any "cleaner" way to solve it?
Because if I got it right, the function loadDsbBiCommons() will be
called at every call inside the shop, won't it?
Regards
Jens
Mit freundlichen Grüßen/Kind regards
dsb AG
Jens Geissler
Business Integration EntwicklerKonrad-Zuse-Str. 16
D-74172 Neckarsulm
Tel.: +49 7132-385-6363
Fax: +49 7132-385-6243
http://www.dsb.net
------------------------------------------
Sitz der Gesellschaft: Neckarsulm
Registergericht Heilbronn: HRB 7729
Vorsitzender des Aufsichtsrats: Ulrich Beck
Vorstand: Michael Metken
------------------------------------------
Registered office: Neckarsulm
Register court Heilbronn: HRB 7729
Chairman of the supervisory board: Ulrich Beck
CEO: Michael Metken
------------------------------------------
Diese E-Mail kann vertrauliche Informationen enthalten.
Wenn Sie nicht der Adressat sind, sind Sie nicht zur
Verwendung der in dieser E-Mail enthaltenen Informationen befugt.
Bitte benachrichtigen Sie uns sofort über den irrtümlichen Empfang.
-----------------------------------------------------------------------------
This e-mail may contain confidential information. If you are not the
addressee you are not authorized to make use of the information
contained in this e-mail. Please inform us immediately that you
have received it by mistake.
------------------------------------------
>>> Mathias Fiedler <[email protected]> 2010-01-22 14:44 >>>
Hi Jens,
you cloud require / include them in the "function.php" file. This file
is loaded at the beginning of the shop.
Regards
Mathias
Am 20.01.2010 um 17:35 schrieb Jens Geissler:
> Hi all,
>
> I want to add a library of own different util classes (e.g.
> Transport & Client-Classes for Webservices calls and so on...),
> which are in "<shop>/core/ext/dsb-bi-commons-php-1.0.0/util/...".
>
> Actually I add all of them in the function "__autoload" of
> "oxfunctions.php" so they are automatically added to "require_once"
> if I need them.
> But I don't want do this anymore, because here I have to change root
> classes/functions of the OXID shop.
> Is there any other solution?
>
> Many thanks in advance!
>
> Regards
> Jens
> _______________________________________________
> 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