src/UI/HTML/Exception/View.php
protected static function getMeaningOfSQLSTATE( $SQLSTATE )
	{
		$class1	= substr( $SQLSTATE, 0, 2 );
		$class2	= substr( $SQLSTATE, 2, 3 );
		$root	= XML_ElementReader::readFile( dirname( __FILE__ ).'/SQLSTATE.xml' );

		$query	= 'class[@id="'.$class1.'"]/subclass[@id="000"]';
		$result	= $root->xpath( $query );
		$class	= array_pop( $result );
		if( $class ){
			$query		= 'class[@id="'.$class1.'"]/subclass[@id="'.$class2.'"]';
			$result		= $root->xpath( $query );
			$subclass	= array_pop( $result );
			if( $subclass )
				return $class->getAttribute( 'meaning' ).' - '.$subclass->getAttribute( 'meaning' );
			return $class->getAttribute( 'meaning' );
		}
		return '';
	}
protected static function getMeaningOfSQLSTATE( $SQLSTATE )
	{
		$class1	= substr( $SQLSTATE, 0, 2 );
		$class2	= substr( $SQLSTATE, 2, 3 );
		$root	= XML_ElementReader::readFile( dirname( __FILE__ ).'/SQLSTATE.xml' );

		$query	= 'class[@id="'.$class1.'"]/subclass[@id="000"]';
		$result	= $root->xpath( $query );
		$class	= array_pop( $result );
		if( $class ){
			$query		= 'class[@id="'.$class1.'"]/subclass[@id="'.$class2.'"]';
			$result		= $root->xpath( $query );
			$subclass	= array_pop( $result );
			if( $subclass )
				return $class->getAttribute( 'meaning' ).' - '.$subclass->getAttribute( 'meaning' );
			return $class->getAttribute( 'meaning' );
		}
		return '';
	}
protected static function getMeaningOfSQLSTATE ( $ SQLSTATE ) { $ class1 = substr ( $ SQLSTATE , 0 , 2 ) ; $ class2 = substr ( $ SQLSTATE , 2 , 3 ) ; $ root = XML_ElementReader :: readFile ( dirname ( __FILE__ ) . '/SQLSTATE.xml' ) ; $ query = 'class[@id="' . $ class1 . '"]/subclass[@id="000"]' ; $ result = $ root -> xpath ( $ query ) ; $ class = array_pop ( $ result ) ; if ( $ class ) { $ query = 'class[@id="' . $ class1 . '"]/subclass[@id="' . $ class2 . '"]' ; $ result = $ root -> xpath ( $ query ) ; $ subclass = array_pop ( $ result ) ; if ( $ subclass ) return $ class -> getAttribute ( 'meaning' ) . ' - ' . $ subclass -> getAttribute ( 'meaning' ) ; return $ class -> getAttribute ( 'meaning' ) ; } return '' ; }
Resolves SQLSTATE Code and returns its Meaning.
@access		protected
@static
@return		string
@see		http://developer.mimer.com/documentation/html_92/Mimer_SQL_Mobile_DocSet/App_Return_Codes2.html
@see		http://publib.boulder.ibm.com/infocenter/idshelp/v10/index.jsp?topic=/com.ibm.sqls.doc/sqls520.htm
Resolves SQLSTATE Code and returns its Meaning .