Login

API - Input Lists PDF Print E-mail
Tutorials - Community Builder
Tuesday, 23 June 2009 16:15
Community Builder has an assortment of API functions available for building a multitude of input lists. These are great for easy creation of lists and are considered a replacement for Joomlas list API.

Select List
moscomprofilerHTML::selectList( &$arr, $tag_name, $tag_attribs, $key, $text, $selected, $required = 0, $htmlspecialcharText = true )

1
return moscomprofilerHTML::selectList( $list, $name, '', 'value', 'text', $value, 0, true );

Radio List
moscomprofilerHTML::radioList( &$arr, $tag_name, $tag_attribs, $key, $text, $selected, $required = 0 )

1
return moscomprofilerHTML::radioList( $allValues, $name, '', 'value', 'text', $value, 0 );

Yes / No List
moscomprofilerHTML::yesnoSelectList( $tag_name, $tag_attribs, $selected, $yes = _UE_YES, $no = _UE_NO )

1
return moscomprofilerHTML::yesnoSelectList( $name, '', $value, 'Yup', 'Nope' );

Checkbox List
moscomprofilerHTML::checkboxList( &$arr, $tag_name, $tag_attribs, $key='value', $text='text',$selected=null, $required=0 )

1
return moscomprofilerHTML::checkboxList( $allValues, $name, '', 'value', 'text', $value, 0 );

List / Radio / Multi-Checkbox Option
moscomprofilerHTML::makeOption( $value, $text = '', $valueName = 'value', $textName = 'text' )

1
2
$list		=	array();
$list[] = moscomprofilerHTML::makeOption( '', '--- Select One ---' );
Last Updated on Friday, 17 July 2009 15:02
 

You are not authorized to comment on this content.