Your IP : 216.73.216.11


Current Path : /home/digilove/www/110/plugins/system/nrframework/fields/
Upload File :
Current File : /home/digilove/www/110/plugins/system/nrframework/fields/rulevaluehint.php

<?php

/**
 * @author          Tassos Marinos <info@tassos.gr>
 * @link            https://www.tassos.gr
 * @copyright       Copyright © 2024 Tassos All Rights Reserved
 * @license         GNU GPLv3 <http://www.gnu.org/licenses/gpl.html> or later
*/

// No direct access to this file
defined('_JEXEC') or die;

use Joomla\CMS\Form\FormField;

class JFormFieldRuleValueHint extends FormField
{
    protected function getLabel()
    {
        return;
    }

    /**
     *  Method to render the input field
     *
     *  @return  string
     */
    protected function getInput()
    {
        $ruleName = (string) $this->element['ruleName'];
        $rule = \NRFramework\Factory::getCondition($ruleName);

        return '<div class="ruleValueHint">' . $rule->getValueHint() . '</div>';
    }
}