Hej,
wstyd się przyznać ale zapomniałem jak się odwołuje do klasy

Mam taką klasę i chciałbym się do niej odwołać z innego pliku aby tylko pobrać tablicę z wynikami...
class LoadDate{
private $showLoadDate;
public function loadDate(){
$query = '
SELECT
ads.idAds, ads.firmName, ads.category, ads.voivodeship, ads.city, ads.postCode, ads.street, ads.text, ads.phone, ads.phone2, ads.webSite, ads.mail, ads.pricing, ads.priceDown, ads.priceUp, ads.map, ads.keywords, ads.active,
city.idCity, city.city,
category.idCategory, category.category,
voivodeship.idVoivodeship, voivodeship.voivodeship
FROM ads
INNER JOIN city on ads.city = city.idCity
INNER JOIN category on ads.category = category.idCategory
INNER JOIN voivodeship on ads.voivodeship = voivodeship.idVoivodeship
WHERE ads.active = 1 AND ads.idAds = "15"
';
$this->so->doit($query);
while($this->so->next_record()){
$this->backString = $this->config->generator($firmName,$file);
$this->showLoadDate = array ( 'firmName' => $this->so->f('firmName'),
'city' => $this->so->f('city'),
'category' => $this->so->f('category'),
'voivodeship' => $this->so->f('voivodeship'),
'postCode' => $this->so->f('postCode'),
'street' => $this->so->f('street'),
'mail' => $this->so->f('mail'),
'phone' => $this->so->f('phone'),
'phone2' => $this->so->f('phone2'),
'webSite' => $this->so->f('webSite'),
'priceDown' => $this->so->f('priceDown'),
'priceUp' => $this->so->f('priceUp'),
'pricing' => $this->so->f('pricing'),
'text' => $this->so->f('text')
);
}
return $this->showLoadDate;
}
}
pomoże ktoś ?