VirtueMart
3.2.14.9808
|
Static Public Member Functions | |
static | ensureUniqueId ($id) |
static | shopMakeHtmlSafe ($string, $quote_style='ENT_QUOTES', $use_entities=false) |
static | vmGetCharset () |
static | row ($func, $label) |
static | value ($value) |
static | raw ($value) |
static | checkbox ($name, $value, $checkedValue=1, $uncheckedValue=0, $extraAttribs= '', $id=null) |
static | select ($name, $options, $default= '0', $attrib="onchange='submit();'", $key='value', $text='text', $zero=true, $chosenDropDowns=true, $tranlsate=true) |
static | genericlist ($data, $name, $attribs=null, $optKey= 'value', $optText= 'text', $selected=null, $idtag=false, $translate=false) |
static | options ($arr, $optKey= 'value', $optText= 'text', $selected=null, $translate=false) |
static | selectList ($name, $value, $arrIn, $size=1, $multiple="", $extra="", $data_placeholder='') |
static | color ($name, $value) |
static | radioList ($name, $value, &$arr, $extra="", $separator='< br/>') |
static | radio ($name, $radios, $default, $key='value', $text='text') |
static | booleanlist ($name, $value, $class='class="inputbox"') |
static | input ($name, $value, $class='class="inputbox"', $readonly='', $size='37', $maxlength='255', $more='') |
static | textarea ($name, $value, $class='class="inputbox"', $cols='100', $rows="4") |
static | editor ($name, $value, $size='100%', $height='300', $hide=array('pagebreak', 'readmore')) |
static | inputHidden ($values) |
static | validate ($type='', $required=true, $min=null, $max=null, $match=null) |
Static Protected Attributes | |
static | $_optionDefaults |
static | $_usedId = array() |
|
static |
Creating rows with boolean list
string | $label | |
string | $name | |
string | $value |
|
static |
Generate HTML code for a checkbox
string | Name for the checkbox |
mixed | Current value of the checkbox |
mixed | Value to assign when checkbox is checked |
mixed | Value to assign when checkbox is not checked |
|
static |
|
static |
render editor code
string | $text | |
string | $name | |
string | $value |
|
static |
|
static |
Generates an HTML selection list.
array | $data | An array of objects, arrays, or scalars. |
string | $name | The value of the HTML name attribute. |
mixed | $attribs | Additional HTML attributes for the <select> tag. This can be an array of attributes, or an array of options. Treated as options if it is the last argument passed. Valid options are: Format options, see { |
string | $optKey | The name of the object variable for the option value. If set to null, the index of the value array is used. |
string | $optText | The name of the object variable for the option text. |
mixed | $selected | The key that is selected (accepts an array or a string). |
mixed | $idtag | Value of the field id or null by default |
boolean | $translate | True to translate |
|
static |
Creating rows with input fields
string | $text | |
string | $name | |
string | $value |
|
static |
renders the hidden input
|
static |
Generates the option tags for an HTML select list (with no select tag surrounding the options).
array | $arr | An array of objects, arrays, or values. |
mixed | $optKey | If a string, this is the name of the object variable for the option value. If null, the index of the array of objects is used. If an array, this is a set of options, as key/value pairs. Valid options are: -Format options, { |
string | $optText | The name of the object variable for the option text. |
mixed | $selected | The key that is selected (accepts an array or a string) |
boolean | $translate | Translate the option values. |
|
static |
Creates radio List
array | $radios | |
string | $name | |
string | $default |
|
static |
Creates a Radio Input List
string | $name | |
string | $value | default value |
string | $arr | |
string | $extra |
|
static |
|
static |
Generate HTML code for a row using VmHTML function works also with shopfunctions, for example $html .= VmHTML::row (array('ShopFunctions', 'renderShopperGroupList'), 'VMCUSTOM_BUYER_GROUP_SHOPPER', $field->shopper_groups, TRUE, 'custom_param['.$row.'][shopper_groups][]', ' ');
string : function to call string : Text Label array : arguments
|
static |
array | $options,( | value & text) |
string | $name | option name |
string | $defaut | defaut value |
string | $key | option value |
string | $text | option text |
boolean | $zero | add a '0' value in the option return a select list |
|
static |
Prints an HTML dropdown box named $name using $arr to load the drop down. If $value is in $arr, then $value will be the selected option in the dropdown.
string | $name | The name of the select element |
string | $value | The pre-selected value |
array | $arr | The array containing $key and $val |
int | $size | The size of the select element |
string | $multiple | use "multiple=\"multiple" to have a multiple choice select list |
string | $extra | More attributes when needed |
|
static |
Converts all special chars to html entities
string | $string | |
string | $quote_style | |
boolean | $only_special_chars | Only Convert Some Special Chars ? ( <, >, &, ... ) |
|
static |
Creating rows with input fields
string | $text | |
string | $name | |
string | $value |
|
static |
$type can be I integer, F Float, A date, M, time, T text, L link, U url, P phone $required field is required $min minimum of char $max max of char
|
static |
|
static |
Returns the charset string from the global _ISO constant
|
staticprotected |
|
staticprotected |