Example #1
0
 /**
  * channelsMultiRadio.
  *
  * @param   string  $selected  The key that is selected
  * @param   string  $name      The name for the field
  * @param   array   $attribs   Additional HTML attributes for the <select> tag
  * @param   string  $idTag     Param
  *
  * @return  string  HTML
  */
 public static function channelsMultiRadio($selected = null, $name = 'channel', $attribs = array(), $idTag = null)
 {
     $channelsModel = F0FModel::getTmpInstance('Channels', 'AutoTweetModel');
     $channelsModel->set('published', 1);
     $channelsModel->set('scope', 'N');
     $items = $channelsModel->getItemList(true);
     $options = array();
     if (count($items)) {
         foreach ($items as $item) {
             $options[] = JHTML::_('select.option', $item->id, $item->name);
         }
     }
     return EHtmlSelect::checkboxList($options, $name, $attribs, 'value', 'text', $selected, $idTag);
 }