API15

JElementRadio/fetchElement: Difference between revisions

From Joomla! Documentation

Doxiki (talk | contribs)
New page: <span class="editsection" style="font-size:76%;"> <nowiki>[</nowiki>Edit Descripton<nowiki>]</nowiki> </span> {{Description:JElementRadio...
 
m preparing for archive only
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<span class="editsection" style="font-size:76%;">
<span class="editsection" style="font-size:76%;">
<nowiki>[</nowiki>[[Description:JElementRadio/fetchElement|Edit Descripton]]<nowiki>]</nowiki>
<nowiki>[<! removed edit link to red link >]</nowiki>
</span>
</span>


{{Description:JElementRadio/fetchElement}}
<! removed transcluded page call, red link never existed >


===Syntax===
===Syntax===
Line 23: Line 22:
|   
|   
|-
|-
|  
| &$node
|  
|  
|   
|   
Line 54: Line 53:


<span class="editsection" style="font-size:76%;">
<span class="editsection" style="font-size:76%;">
<nowiki>[</nowiki>[[SeeAlso:JElementRadio/fetchElement|Edit See Also]]<nowiki>]</nowiki>
<nowiki>[<! removed edit link to red link >]</nowiki>
</span>
</span>
{{SeeAlso:JElementRadio/fetchElement}}
<! removed transcluded page call, red link never existed >


===Examples===
===Examples===
<CodeExamplesForm />
=== Code Examples ===
<dpl>
<dpl>
  noresultsheader=\n
  noresultsheader=\n
  category=fetchElement
  category=fetchElement
  category=JElementRadio
  category=JElementRadio
  category=CodeExample
  namespace=CodeExample
  category=MethodExample
  category=MethodExample
  include=*
  include=*
  format= ,,,
  format= ,,,
</dpl>
</dpl>
[[Category:Archived pages API15]]

Latest revision as of 00:34, 25 March 2017

[<! removed edit link to red link >]

<! removed transcluded page call, red link never existed >

Syntax

fetchElement($name, $value, &$node, $control_name)
Parameter Name Default Value Description
$name
$value
&$node
$control_name

Defined in

libraries/joomla/html/parameter/element/radio.php

Importing

jimport( 'joomla.html.parameter.element.radio' );

Source Body

function fetchElement($name, $value, &$node, $control_name)
{
        $options = array ();
        foreach ($node->children() as $option)
        {
                $val    = $option->attributes('value');
                $text   = $option->data();
                $options[] = JHTML::_('select.option', $val, JText::_($text));
        }

        return JHTML::_('select.radiolist', $options, ''.$control_name.'['.$name.']', '', 'value', 'text', $value, $control_name.$name );
}

[<! removed edit link to red link >] <! removed transcluded page call, red link never existed >

Examples

Code Examples