private function _extractParams( array $strings )
	{
		$params = array();

		foreach( $strings as $string )
		{
			if( isset( $string[0] ) && $string[0] == '[' )
			{
				$items = array();
				$pattern = '/("[^"]*"|[0-9]+\.[0-9]+|[0-9]+),?/';

				if( preg_match_all( $pattern, $string, $items ) === false ) {
					throw new MW_Common_Exception( 'Unable to extract function parameters' );
				}

				if( isset( $items[1] ) )
				{
					$list = array();

					foreach( $items[1] as $item ) {
						$list[] = $this->_escape( '==', $this->_getParamType( $item ), $item );
					}

					$params[] = implode( ',', $list );
				}
			}
			else
			{
				$params[] = $this->_escape( '==', $this->_getParamType( $string ), $string );
			}
		}

		return $params;
	}
private function _extractParams( array $strings )
	{
		$params = array();

		foreach( $strings as $string )
		{
			if( isset( $string[0] ) && $string[0] == '[' )
			{
				$items = array();
				$pattern = '/("[^"]*"|[0-9]+\.[0-9]+|[0-9]+),?/';

				if( preg_match_all( $pattern, $string, $items ) === false ) {
					throw new MW_Common_Exception( 'Unable to extract function parameters' );
				}

				if( isset( $items[1] ) )
				{
					$list = array();

					foreach( $items[1] as $item ) {
						$list[] = $this->_escape( '==', $this->_getParamType( $item ), $item );
					}

					$params[] = implode( ',', $list );
				}
			}
			else
			{
				$params[] = $this->_escape( '==', $this->_getParamType( $string ), $string );
			}
		}

		return $params;
	}
private function _extractParams ( array $ strings ) { $ params = array ( ) ; foreach ( $ strings as $ string ) { if ( isset ( $ string [ 0 ] ) && $ string [ 0 ] == '[' ) { $ items = array ( ) ; $ pattern = '/("[^"]*"|[0-9]+\.[0-9]+|[0-9]+),?/' ; if ( preg_match_all ( $ pattern , $ string , $ items ) === false ) { throw new MW_Common_Exception ( 'Unable to extract function parameters' ) ; } if ( isset ( $ items [ 1 ] ) ) { $ list = array ( ) ; foreach ( $ items [ 1 ] as $ item ) { $ list [ ] = $ this -> _escape ( '==' , $ this -> _getParamType ( $ item ) , $ item ) ; } $ params [ ] = implode ( ',' , $ list ) ; } } else { $ params [ ] = $ this -> _escape ( '==' , $ this -> _getParamType ( $ string ) , $ string ) ; } } return $ params ; }
Extracts the function parameters from the parameter strings.

@param string[] $strings List of matched strings
@return array List of found parameters
Extracts the function parameters from the parameter strings .