yf_shop__hidden_field user module

Fileplugins/shop/modules/shop/yf_shop__hidden_field.class.php
Usemodule('shop__hidden_field'), URL ?object=shop__hidden_field

Public properties

PropertyDefaultDescription
None declared in this class.

Public methods 1

None without a leading underscore.

Methods starting with _ hooks and helpers; not routable as page actions

_hidden_field

public function _hidden_field($name = '', $value = '')
    public function _hidden_field($name = '', $value = '')
    {
        if (is_array($name)) {
            $result = '';
            $func_name = __FUNCTION__;
            foreach ((array) $name as $k => $v) {
                $result .= module('shop')->$func_name($k, $v);
            }
            return $result;
        }
        if (empty($name)) {
            return '';
        }
        return '<input type="hidden" name="' . _prepare_html($name) . '" value="' . _prepare_html($value) . "\" />\n";
    }