Ejemplo n.º 1
0
 /**
  * Returns a string with HTML code to display the virtual ShopCategory
  * selection checkboxes.
  * @param   string      $strFlags       The Product Flags
  * @return  string                      The HTML checkboxes string
  * @static
  * @author  Reto Kohli <*****@*****.**>
  */
 static function getVirtualCategoriesSelectionForFlags($strFlags)
 {
     $arrName = self::getVirtualCategoryIdNameArray();
     $arrChecked = array();
     foreach ($arrName as $id => $name) {
         if (ShopCategory::testFlag2($name, $strFlags)) {
             $arrChecked[] = $id;
         }
     }
     return \Html::getCheckboxGroup('shopFlags', $arrName, $arrName, $arrChecked, false, '', '<br />');
 }