AnonSec Shell
Server IP : 46.105.57.169  /  Your IP : 216.73.216.144
Web Server : Apache
System : Linux webd003.cluster120.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 : maitricfuz ( 93378)
PHP Version : 8.4.10
Disable Function : _dyuweyrj4,_dyuweyrj4r,dl
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/maitricfuz/www/saint-martin-lg/plugins/maximenuck/hikashop/elements/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     

Current File : /home/maitricfuz/www/saint-martin-lg/plugins/maximenuck/hikashop/elements/ckhikashopcategory.php
<?php

/**
 * @copyright	Copyright (C) 2011 Cedric KEIFLIN alias ced1870
 * http://www.joomlack.fr
 * Module Maximenu CK
 * @license		GNU/GPL
 * */
defined('JPATH_BASE') or die;
jimport('joomla.filesystem.file');
jimport('joomla.form.formfield');
\Joomla\CMS\Form\FormHelper::loadFieldClass('list');

class JFormFieldCkhikashopcategory extends \Joomla\CMS\Form\Field\ListField {

    protected $type = 'ckhikashopcategory';

    protected function getOptions() {
        // if the component is not installed
        if (!is_dir(JPATH_ROOT . '/administrator/components/com_hikashop')
                OR !is_file(JPATH_ROOT . '/modules/mod_maximenuck/helper_hikashop.php')) {
            // add the root item
            $option = new stdClass();
            $option->text = \Maximenuck\CKText::_('MOD_MAXIMENUCK_HIKASHOP_NOTFOUND');
            $option->value = '0';
            $options[] = $option;
            // Merge any additional options in the XML definition.
            $options = array_merge(parent::getOptions(), $options);

            return $options;
        }

        // get the categories form the helper
        $params = new \Maximenuck\CKRegistry();
        require_once JPATH_ROOT . '/modules/mod_maximenuck/helper_hikashop.php';
        $cats = modMaximenuckhikashopHelper::getItems($params);

        // add the root item
        $option = new stdClass();
        $option->text = \Maximenuck\CKText::_('MOD_MAXIMENUCK_HIKASHOP_ROOTNODE');
        $option->value = '0';
        $options[] = $option;
        foreach ($cats as $cat) {
            $option = new stdClass();
            $option->text = str_repeat(" - ", $cat->level - 1) . $cat->name;
            $option->value = $cat->id;
            $options[] = $option;
        }
        // Merge any additional options in the XML definition.
        $options = array_merge(parent::getOptions(), $options);

        return $options;
    }

}

Anon7 - 2022
AnonSec Team