10 defined(
'JPATH_PLATFORM') or die;
30 public static function parseAttributes($string)
36 preg_match_all(
'/([\w:-]+)[\s]?=[\s]?"([^"]*)"/i', $string, $attr);
40 $numPairs = count($attr[1]);
42 for ($i = 0; $i < $numPairs; $i++)
44 $retarray[$attr[1][$i]] = $attr[2][$i];