AdminPageFramework_WPUtility_HTML::getAttributes PHP Метод

getAttributes() публичный статический Метод

public static getAttributes ( array $aAttributes )
$aAttributes array
    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);
    }