View Single Post
  #1  
Old 03-27-2019, 08:31 AM
 
welly welly is offline
 

eXpert
  
Join Date: Mar 2011
Location: UK
Posts: 209
 

Default 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
__________________
X-Cart Business 5.3.6
Various add-ons

www.traininglines.co.uk
Reply With Quote