You could set the pagination as a field of the products object and retrieve it with a get method or by defining it as public and reading it directly In products: class Products { ... private $pagination; public function getProducts(...) { ... $this->pagination = new Pagination(); ... } public function getPagination() { return $this->pagination; } } Then later: $product->getPagination()->htmlPagination() to retrieve the html pagination.
You could set the pagination as a field of the products object and retrieve it with a get method or by defining it as public and reading it directly. In products: class Products { ... private $pagination; public function getProducts(...) { ... $this->pagination = new Pagination(); ... } public function getPagination() { return $this->pagination; } } Then later: $product->getPagination()->htmlPagination(); to retrieve the html pagination.
The problem is that I use the Pagination methods for other classes too – Sandro Antonucci Aug 2 at 19:15 each of them could implement such a method. – Dan Aug 2 at 19:35.
I created this class called Site that is extended but many other classes with common queries and excutions. This particular class "Pagination" , I need its methods to be accessed from other instances and access to data sent to it "internally". It's probably bad written but I'd like some help.
Once I did this, how do I access htmlPagination with the data processed in the Products instance?
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.