public static function getAttributes(array $aAttributes)
{
$_sQuoteCharactor = "'";
$_aOutput = array();
foreach ($aAttributes as $_sAttribute => $_mProperty) {
if (is_scalar($_mProperty)) {
$_aOutput[] = "{$_sAttribute}={$_sQuoteCharactor}" . esc_attr($_mProperty) . "{$_sQuoteCharactor}";
}
}
return implode(' ', $_aOutput);
}