Joomla CMS
3.10.11 (avec JPlatform 13.1 inclus)
Documentation des API du CMS Joomla en version 3.10.11 et du framework Joomla Platform intégré
|
Espaces de nommage | |
Joomla\Site | |
Variables | |
$format = '<input type="checkbox" id="%1$s" name="%2$s" value="%3$s" %4$s />' | |
$alt = preg_replace('/[^a-zA-Z0-9_\-]/', '_', $name) | |
foreach( $options as $i=> $option)((string) $option->value, $checkedOptions, true) ? 'checked' | $checked = (!$hasValue && $option->checked) ? 'checked' : $checked |
$optionClass = !empty($option->class) ? 'class="' . $option->class . '"' : '' | |
$optionDisabled = !empty($option->disable) || $disabled ? 'disabled' : '' | |
$onclick = !empty($option->onclick) ? 'onclick="' . $option->onclick . '"' : '' | |
$onchange = !empty($option->onchange) ? 'onchange="' . $option->onchange . '"' : '' | |
$oid = $id . $i | |
$value = htmlspecialchars($option->value, ENT_COMPAT, 'UTF-8') | |
$attributes = array_filter(array($checked, $optionClass, $optionDisabled, $onchange, $onclick)) | |
endforeach | |
$alt = preg_replace('/[^a-zA-Z0-9_\-]/', '_', $name) |
Référencé par ToolbarHelper\addNew(), JTextWrapper\alt(), Text\alt(), ToolbarHelper\apply(), ToolbarHelper\archiveList(), ToolbarHelper\assign(), ToolbarHelper\back(), ToolbarHelper\cancel(), ToolbarHelper\checkin(), ToolbarHelper\custom(), ToolbarHelper\deleteList(), ToolbarHelper\editCss(), ToolbarHelper\editHtml(), ToolbarHelper\editList(), SimplePie_Enclosure\embed(), JGoogleDataPlusActivities\getActivity(), FormField\getLayoutData(), FOFFormFieldImagelist\getStatic(), FOFFormFieldMedia\getStatic(), HTMLHelper\image(), JGoogleDataPlusActivities\listActivities(), JGoogleDataPlusComments\listComments(), FOFForm\loadCSSFiles(), ToolbarHelper\makeDefault(), ToolbarHelper\media_manager(), ToolbarHelper\modal(), Pagination\orderDownIcon(), Pagination\orderUpIcon(), ToolbarHelper\preferences(), ToolbarHelper\publish(), JHtmlGrid\published(), ToolbarHelper\publishList(), FOFToolbar\renderToolbarElement(), ToolbarHelper\save(), ToolbarHelper\save2copy(), ToolbarHelper\save2new(), HTMLHelper\tooltip(), ToolbarHelper\trash(), ToolbarHelper\unarchiveList(), ToolbarHelper\unpublish(), ToolbarHelper\unpublishList(), et ToolbarHelper\versions().
$attributes = array_filter(array($checked, $optionClass, $optionDisabled, $onchange, $onclick)) |
$format = '<input type="checkbox" id="%1$s" name="%2$s" value="%3$s" %4$s />' |
The format of the input tag to be filled in using sprintf. %1 - id %2 - name %3 - value %4 = any other attributes
$oid = $id . $i |
$onchange = !empty($option->onchange) ? 'onchange="' . $option->onchange . '"' : '' |
$optionClass = !empty($option->class) ? 'class="' . $option->class . '"' : '' |
$optionDisabled = !empty($option->disable) || $disabled ? 'disabled' : '' |
$value = htmlspecialchars($option->value, ENT_COMPAT, 'UTF-8') |
endforeach |