Exemplo n.º 1
0
 /**
  * Category listings module
  * 
  */
 protected function cat_listings($path = null)
 {
     $table =& JTable::GetInstance('listings', 'Table');
     $listings = $table->getListingsOfCatId($this->cat_key);
     //reasons to fail
     if (!is_array($listings)) {
         return false;
     }
     foreach ($listings as $id => $listing) {
         require $path;
     }
     return true;
 }