english/libraries/joomla/installer/installer.php
/**
	 * Backward compatible method to parse through a queries element of the
	 * installation manifest file and take appropriate action.
	 *
	 * @param   JXMLElement	$element The XML node to process
	 *
	 * @return  mixed  Number of queries processed or False on error
	 * @since   11.1
	 */
Backward compatible method to parse through a queries element of the
installation manifest file and take appropriate action.

@param   JXMLElement $element The XML node to process

@return  mixed  Number of queries processed or False on error
@since   11.1
Backward compatible method to parse through a queries element of the installation manifest file and take appropriate action . @param JXMLElement $element The XML node to process @return mixed Number of queries processed or False on error @since 11 . 1
public function parseQueries($element)
	{
		$db = & $this->_db;
		if ( ! $element || ! count($element->children())) {
			return 0;
		}
		$queries = $element->children();
		if (count($queries) == 0) {
			return 0;
		}
		foreach ($queries as $query)
		{
			$db->setQuery($query->data());
			if (!$db->query()) {
				JError::raiseWarning(1, JText::sprintf('JLIB_INSTALLER_ERROR_SQL_ERROR', $db->stderr(true)));
				return false;
			}
		}
		return (int) count($queries);
	}
public function parseQueries ( $ element ) { $ db = & $ this -> _db ; if ( ! $ element || ! count ( $ element -> children ( ) ) ) { return 0 ; } $ queries = $ element -> children ( ) ; if ( count ( $ queries ) == 0 ) { return 0 ; } foreach ( $ queries as $ query ) { $ db -> setQuery ( $ query -> data ( ) ) ; if ( ! $ db -> query ( ) ) { JError :: raiseWarning ( 1 , JText :: sprintf ( 'JLIB_INSTALLER_ERROR_SQL_ERROR' , $ db -> stderr ( true ) ) ) ; return false ; } } return ( int ) count ( $ queries ) ; }
Backward compatible method to parse through a queries element of the
 installation manifest file and take appropriate action.
Backward compatible method to parse through a queries element of the installation manifest file and take appropriate action .
// Get the database connector object // Either the tag does not exist or has no children therefore we return zero files processed. // Get the array of query nodes to process // No queries to process // Process each query in the $queries array (children of $tagName).