PHP 클래스 _WPDKDBTable

## Overview Let's we say that is not easy design and coding a well done CRUD engine for WordPress. However we have try to do this in a simple first release.
사용 중단: Since 0.9
저자: =undo= ([email protected])
파일 보기 프로젝트 열기: wpxtreme/wpdk

공개 프로퍼티들

프로퍼티 타입 설명
$arrayStatuses array
$sdfArrayStatuses array
$tableName string
$wpdb wpdb

공개 메소드들

메소드 설명
__construct ( string $tableName, string $index_name = 'id' ) : _WPDKDBTable
arrayStatusesGroupBy ( ) : array
count ( ) : integer
delete ( array | integer $indexes ) : boolean | integer
query ( string $where = '1' ) : array | null
tableName ( string $tableName ) : string
update ( array | integer $indexes, array $fields ) : boolean | integer

보호된 메소드들

메소드 설명
arrayStatuses ( ) : array
sdfArrayStatuses ( ) : array
updateTable ( string $sql_filename, string $tableName )

메소드 상세

__construct() 공개 메소드

public __construct ( string $tableName, string $index_name = 'id' ) : _WPDKDBTable
$tableName string Table name without WordPress prefix
$index_name string Optional index name, default `id`
리턴 _WPDKDBTable

arrayStatuses() 보호된 메소드

protected arrayStatuses ( ) : array
리턴 array

arrayStatusesGroupBy() 공개 메소드

public arrayStatusesGroupBy ( ) : array
리턴 array

count() 공개 메소드

public count ( ) : integer
리턴 integer

delete() 공개 메소드

public delete ( array | integer $indexes ) : boolean | integer
$indexes array | integer List of index or single index
리턴 boolean | integer

query() 공개 메소드

public query ( string $where = '1' ) : array | null
$where string
리턴 array | null Array of object or NULL

sdfArrayStatuses() 보호된 메소드

protected sdfArrayStatuses ( ) : array
리턴 array

tableName() 정적인 공개 메소드

static public tableName ( string $tableName ) : string
$tableName string Simple table name
리턴 string Complete WordPress table name

update() 공개 메소드

public update ( array | integer $indexes, array $fields ) : boolean | integer
$indexes array | integer List of index or single index
$fields array Key value pairs array field => value
리턴 boolean | integer

updateTable() 보호된 정적인 메소드

protected static updateTable ( string $sql_filename, string $tableName )
$sql_filename string Complete path of sql file
$tableName string Simple table name without WordPress Prefix. The WordPress prefix is auto add by this method

프로퍼티 상세

$arrayStatuses 공개적으로 프로퍼티

public array $arrayStatuses
리턴 array

$sdfArrayStatuses 공개적으로 프로퍼티

public array $sdfArrayStatuses
리턴 array

$tableName 공개적으로 프로퍼티

public string $tableName
리턴 string

$wpdb 공개적으로 프로퍼티

public wpdb $wpdb
리턴 wpdb