Advertisement
Guest User

Untitled

a guest
Aug 18th, 2017
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.35 KB | None | 0 0
  1. <?php
  2.  
  3. // No direct access to this file
  4. defined('_JEXEC') or die('Restricted access');
  5.  
  6.  
  7. class ShopModelCategories extends JModelItem
  8. {
  9.     /**
  10.      * @var object item
  11.      */
  12.     protected $items;
  13.  
  14.    
  15.     public function getItems()
  16.     {
  17.         if (!isset($this->items))
  18.         {
  19.             $this->items = ShopHelper::getCategory();
  20.         }
  21.        
  22.         return $this->items;
  23.     }
  24.    
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement