wordpress/wp-content/plugins/sqlite-integration/pdoengine.class.php
/**
	 * Call back function to replace field data with PDO parameter.
	 *
	 * @param string $matches
	 * @return string
	 */
Call back function to replace field data with PDO parameter.
@param string $matches
@return string
Call back function to replace field data with PDO parameter . @param string $matches @return string
private function replace_variables_with_placeholders($matches) {
		$param = stripslashes($matches[0]);
		$param = trim($param);
		if (in_array($param{strlen($param)-1}, array("'",'"'))) {
			$param = substr($param,0,-1) ;
		}
		if (in_array($param{0}, array("'",'"'))) {
			$param = substr($param, 1); 
		}
		$key = ':param_'.$this->param_num++;
		$this->extracted_variables[] = $param;
		return ' '.$key.' ';
	}
private function replace_variables_with_placeholders ( $ matches ) { $ param = stripslashes ( $ matches [ 0 ] ) ; $ param = trim ( $ param ) ; if ( in_array ( $ param { strlen ( $ param ) - 1 } , array ( " ' " , '"' ) ) ) { $ param = substr ( $ param , 0 , - 1 ) ; } if ( in_array ( $ param { 0 } , array ( " ' " , '"' ) ) ) { $ param = substr ( $ param , 1 ) ; } $ key = ':param_' . $ this -> param_num ++ ; $ this -> extracted_variables [ ] = $ param ; return ' ' . $ key . ' ' ; }
Call back function to replace field data with PDO parameter.
Call back function to replace field data with PDO parameter .
//remove the wordpress escaping mechanism //remove trailing spaces //remove the quotes at the end and the beginning //end //start //$this->extracted_variables[] = $param; //return the placeholder //return ' ? ';