PHP 클래스 WPDKDB

1. Export
부터: 1.7.0
저자: =undo= ([email protected])
상속: extends wpdb
파일 보기 프로젝트 열기: wpxtreme/wpdk 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$mysqli boolean Whether to use mysqli over mysql.

공개 메소드들

메소드 설명
__construct ( ) : WPDKDB Create an instance of WPDKDB class
addslashes ( string $value = '', boolean $is_like = false ) : mixed Better addslashes for SQL queries.
backquote ( string | array $value ) : array | string Add backquotes to string or array group. Return a string if input param is a string, otherwise return an array if the input params is an array.
dumpWithTable ( string $table, string $filename = '' ) : string Reads the Database table in $table and creates SQL Statements for recreating structure and data then return the DUMP SQL. If you set the $filename params then the dump is store on filesystem too.
executeQuery ( string $query ) : boolean | mysqli_result | resource Utility to execute a pure query in MySQL or MySQLi extension.
importWithFilename ( string $filename ) : boolean | mysqli_result | resource | WPDKError Utility method to import a SQL (pure) file usually an export.
init ( ) : WPDKDB Return a singleton instance of WPDKDB class
removeComments ( string $query ) : string Return a SQL statement without comments.

메소드 상세

__construct() 공개 메소드

Create an instance of WPDKDB class
public __construct ( ) : WPDKDB
리턴 WPDKDB

addslashes() 공개 정적인 메소드

Taken from phpMyAdmin.
public static addslashes ( string $value = '', boolean $is_like = false ) : mixed
$value string Optional. Default empty.
$is_like boolean Optional. Default FALSE.
리턴 mixed

backquote() 공개 정적인 메소드

Add backquotes to string or array group. Return a string if input param is a string, otherwise return an array if the input params is an array.
public static backquote ( string | array $value ) : array | string
$value string | array Table or list of table.
리턴 array | string

dumpWithTable() 공개 메소드

Taken partially from phpMyAdmin and partially from Alain Wolf, Zurich - Switzerland Website: http://restkultur.ch/personal/wolf/scripts/db_backup/
public dumpWithTable ( string $table, string $filename = '' ) : string
$table string Table name.
$filename string Optional. Complete path of a filename where store the dump.
리턴 string

executeQuery() 공개 메소드

Utility to execute a pure query in MySQL or MySQLi extension.
public executeQuery ( string $query ) : boolean | mysqli_result | resource
$query string SQL statement.
리턴 boolean | mysqli_result | resource

importWithFilename() 공개 메소드

Utility method to import a SQL (pure) file usually an export.
public importWithFilename ( string $filename ) : boolean | mysqli_result | resource | WPDKError
$filename string Path of file.
리턴 boolean | mysqli_result | resource | WPDKError

init() 공개 정적인 메소드

Return a singleton instance of WPDKDB class
public static init ( ) : WPDKDB
리턴 WPDKDB

removeComments() 공개 정적인 메소드

Return a SQL statement without comments.
public static removeComments ( string $query ) : string
$query string SQL statement.
리턴 string

프로퍼티 상세

$mysqli 공개적으로 프로퍼티

Whether to use mysqli over mysql.
public bool $mysqli
리턴 boolean