wordpress/wp-content/plugins/sqlite-integration/query_alter.class.php
/**
	 * Function to split multiple commands into an array and return it.
	 *
	 * This function is deprecated.
	 *
	 * @access private
	 * @param unknown $command
	 * @return multitype:string unknown Ambigous <string, unknown>
	 */
Function to split multiple commands into an array and return it.
This function is deprecated.

@access private
@param unknown $command
@return multitype:string unknown Ambigous 
Function to split multiple commands into an array and return it . This function is deprecated . @access private @param unknown $command @return multitype : string unknown Ambigous
private function split_multiple($command) {
		$out            = true;
		$command_array  = array();
		$command_string = '';
		$tokens         = preg_split('/\b/s', $command, -1, PREG_SPLIT_DELIM_CAPTURE);
		foreach ($tokens as $token) {
			switch (trim($token)) {
				case ';':
					break;
				case '(':
					$command_string .= $token;
					$out = false;
					break;
				case ')':
					$command_string .= $token;
					$out = true;
					break;
				case '),':
					$command_array[] = $command_string;
					$command_string  = '';
					$out = true;
					break;
				case ',':
					if ($out) {
						$command_array[] = $command_string;
						$command_string  = '';
					} else {
						$command_string .= $token;
					}
					break;
				default:
					$command_string .= $token;
					break;
			}
		}
		if (!empty($command_string)) {
			$command_array[] = $command_string;
		}
		return $command_array;
	}
private function split_multiple ( $ command ) { $ out = true ; $ command_array = array ( ) ; $ command_string = '' ; $ tokens = preg_split ( '/\b/s' , $ command , - 1 , PREG_SPLIT_DELIM_CAPTURE ) ; foreach ( $ tokens as $ token ) { switch ( trim ( $ token ) ) { case ';' : break ; case '(' : $ command_string .= $ token ; $ out = false ; break ; case ')' : $ command_string .= $ token ; $ out = true ; break ; case '),' : $ command_array [ ] = $ command_string ; $ command_string = '' ; $ out = true ; break ; case ',' : if ( $ out ) { $ command_array [ ] = $ command_string ; $ command_string = '' ; } else { $ command_string .= $ token ; } break ; default : $ command_string .= $ token ; break ; } } if ( ! empty ( $ command_string ) ) { $ command_array [ ] = $ command_string ; } return $ command_array ; }
Function to split multiple commands into an array and return it.
Function to split multiple commands into an array and return it .