X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Dev Questions (X-Cart 5) (https://forum.x-cart.com/forumdisplay.php?f=56)
-   -   Another custom module question (https://forum.x-cart.com/showthread.php?t=76892)

welly 03-27-2019 08:31 AM

Another custom module question
 
Hi

I want to change two methods in the GiftCerts class which is part of the gift certificate module.

The original GiftCerts.php file in question is:
classes/XLite/Module/RedSqui/GiftCertificates/Model/GiftCerts.php

The namespace is: namespace XLite\Module\RedSqui\GiftCertificates\Model;

The class declaration is: class GiftCerts extends \XLite\Model\AEntity implements \XLite\Model\Base\IOrderItem


I have created a module and my copy of the GiftCerts.php file is:
classes/XLite/Module/TLines/GiftCertificates/Module/RedSqui/GiftCertificates/Model/GiftCerts.php

My namespace is: namespace XLite\Module\TLines\GiftCertificates\Module\RedSqu i\GiftCertificates\Model;

But that's where I get stuck. I'm not sure what my class declaration should look like. The 'implements \XLite\Model\Base\IOrderItem' element of the original is confusing me, and I'm not sure how that affects the declaration I make as the other modules I have played with don't have this.

Can anyone give me a hint? The logic is still a bit alien to me.

Many thanks

Welly


All times are GMT -8. The time now is 08:49 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.