| Server IP : 54.36.91.62 / Your IP : 216.73.217.112 Web Server : Apache System : Linux webm013.cluster127.gra.hosting.ovh.net 5.15.206-ovh-vps-grsec-zfs-classid #1 SMP Fri May 15 02:41:25 UTC 2026 x86_64 User : coopiak ( 151928) PHP Version : 8.3.23 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/coopiak/amisdesseniors-fr/lemans/administrator/components/com_djcatalog2/models/ |
Upload File : |
<?php
/**
* @package DJ-Catalog2
* @copyright Copyright (C) DJ-Extensions.com, All rights reserved.
* @license http://www.gnu.org/licenses GNU/GPL
* @author url: http://dj-extensions.com
* @author email contact@dj-extensions.com
*/
defined('_JEXEC') or die('Restricted access');
use Joomla\CMS\MVC\Model\BaseDatabaseModel;
jimport( 'joomla.application.component.helper');
jimport( 'joomla.application.component.model');
class DJCatalog2ModelImport extends BaseDatabaseModel {
protected $_categories;
protected $_producers;
protected $_users;
protected $_fieldgroups;
protected $_acl;
function __construct()
{
parent::__construct();
}
public function getCategories(){
if(empty($this->_categories)) {
$query = "SELECT * FROM #__djc2_categories ORDER BY name";
$this->_categories = $this->_getList($query,0,0);
}
return $this->_categories;
}
public function getProducers(){
if(empty($this->_producers)) {
$query = "SELECT * FROM #__djc2_producers ORDER BY name";
$this->_producers = $this->_getList($query,0,0);
}
return $this->_producers;
}
public function getUsers() {
if(empty($this->_users)) {
$query = "SELECT * FROM #__users ORDER BY name";
$this->_users = $this->_getList($query,0,0);
}
return $this->_users;
}
public function getFieldgroups() {
if(empty($this->_fieldgroups)) {
$query = "SELECT * FROM #__djc2_items_extra_fields_groups ORDER BY name";
$this->_fieldgroups = $this->_getList($query,0,0);
}
return $this->_fieldgroups;
}
public function getUsergroups() {
if(empty($this->_usergroups)) {
$query = "SELECT * FROM #__djc2_customer_groups ORDER BY name";
$this->_usergroups = $this->_getList($query,0,0);
}
return $this->_usergroups;
}
public function getACL(){
if(empty($this->_acl)) {
$query = "SELECT id, title FROM #__viewlevels ORDER BY ordering ASC, id ASC";
$this->_acl = $this->_getList($query,0,0);
}
return $this->_acl;
}
}
?>