function getAttributes($csr = null)
    {
        if (empty($csr)) {
            $csr = $this->currentCert;
        }

        $attributes = $this->_subArray($csr, 'certificationRequestInfo/attributes');
        $attrs = array();

        if (is_array($attributes)) {
            foreach ($attributes as $attribute) {
                $attrs[] = $attribute['type'];
            }
        }

        return $attrs;
    }
function getAttributes($csr = null)
    {
        if (empty($csr)) {
            $csr = $this->currentCert;
        }

        $attributes = $this->_subArray($csr, 'certificationRequestInfo/attributes');
        $attrs = array();

        if (is_array($attributes)) {
            foreach ($attributes as $attribute) {
                $attrs[] = $attribute['type'];
            }
        }

        return $attrs;
    }
function getAttributes ( $ csr = null ) { if ( empty ( $ csr ) ) { $ csr = $ this -> currentCert ; } $ attributes = $ this -> _subArray ( $ csr , 'certificationRequestInfo/attributes' ) ; $ attrs = array ( ) ; if ( is_array ( $ attributes ) ) { foreach ( $ attributes as $ attribute ) { $ attrs [ ] = $ attribute [ 'type' ] ; } } return $ attrs ; }
Returns a list of all CSR attributes in use

@param array $csr optional
@access public
@return array
Returns a list of all CSR attributes in use