Thanks for the response Alex.
I did use the Decorator interface but I initially was extending the abstract class "ACustomer.php" instead of "Search.php". If I extend the Search.php view my class seems to take precedence. However, if I extend the abstract class ACustomer.php view, my class does not appear to take precedence.
Code:
namespace XLite\Module\MyDev\MyModule\View\ItemsList\Product\Customer;
class Search extends \XLite\View\ItemsList\Product\Customer\ACustomer implements \XLite\Base\IDecorator
{
protected function getData(\XLite\Core\CommonCell $cnd, $countOnly = false)
{
return false;
}
}
What I expect from the above is that all searches will return no results due to me overriding the getData() call. The behaviour is that it has no effect (searches work normally). If I change the extends directive to instead use Search.php, it does what I expect and returns no data.
Why does the ACustomer version get ignored?