コード例 #1
0
 static function radioListTable(&$arr, $tag_name, $tag_attribs, $key, $text, $selected, $cols = 0, $rows = 1, $size = 0, $required = 0, $classes = null)
 {
     $cellsHtml = moscomprofilerHTML::radioListArr($arr, $tag_name, $tag_attribs, $key, $text, $selected, $required, $classes);
     return moscomprofilerHTML::list2Table($cellsHtml, $cols, $rows, $size);
 }
コード例 #2
0
 /**
  * Returns a radio input list formatted as a table
  *
  * @param  array        $arr
  * @param  string       $tagName
  * @param  null|string  $tagAttributes
  * @param  int|string   $key
  * @param  string       $text
  * @param  string       $selected
  * @param  int          $cols
  * @param  int          $rows
  * @param  int          $size
  * @param  int          $required
  * @param  null|array   $classes
  * @param  null|string  $cellAttributes
  * @param  boolean      $translate
  * @return string
  */
 public static function radioListTable($arr, $tagName, $tagAttributes = null, $key = 'value', $text = 'text', $selected = null, $cols = 0, $rows = 1, $size = 0, $required = 0, $classes = null, $cellAttributes = null, $translate = true)
 {
     $cellsHtml = moscomprofilerHTML::radioListArr($arr, $tagName, $tagAttributes, $key, $text, $selected, $required, $classes, $translate);
     return moscomprofilerHTML::list2Table($cellsHtml, $cols, $rows, $size, $cellAttributes);
 }