function _getExtension($id, $cert = NULL, $path = NULL)
    {
        $extensions = $this->_extensions($cert, $path);

        if (!is_array($extensions)) {
            return false;
        }

        foreach ($extensions as $key => $value) {
            if ($value['extnId'] == $id) {
                return $value['extnValue'];
            }
        }

        return false;
    }
function _getExtension($id, $cert = NULL, $path = NULL)
    {
        $extensions = $this->_extensions($cert, $path);

        if (!is_array($extensions)) {
            return false;
        }

        foreach ($extensions as $key => $value) {
            if ($value['extnId'] == $id) {
                return $value['extnValue'];
            }
        }

        return false;
    }
function _getExtension ( $ id , $ cert = NULL , $ path = NULL ) { $ extensions = $ this -> _extensions ( $ cert , $ path ) ; if ( ! is_array ( $ extensions ) ) { return false ; } foreach ( $ extensions as $ key => $ value ) { if ( $ value [ 'extnId' ] == $ id ) { return $ value [ 'extnValue' ] ; } } return false ; }
Get an Extension

Returns the extension if it exists and false if not

@param String $id
@param Array $cert optional
@param String $path optional
@access private
@return Mixed
Get an Extension