PHP 클래스 WPDKDBTableRow

## Overview This class is a map of a single record on database. When a record is loaded the column are mapped as properties of this class. For this reason exist the internal private property _excludeProperties. It is used to avoid get the class properties. ### Property naming To avoid property override, all protected, private or public property of this class **must** start with a underscore prefix.
사용 중단: since 1.5.1
저자: =undo= ([email protected])
파일 보기 프로젝트 열기: wpxtreme/wpdk

공개 프로퍼티들

프로퍼티 타입 설명
$table __WPDKDBTable An instance of table of record

공개 메소드들

메소드 설명
__construct ( __WPDKDBTable $dbtable, integer | array | object $pk = null ) : WPDKDBTableRow Create an instance of WPDKDBTableRow class
defaults ( ) Override this method to return a filtered key pairs array with column name and default value
desc ( ) : mixed Return the DESC table
getInstance ( __WPDKDBTable $dbtable, integer | array | object $pk = null ) : WPDKDBTableRow Return an instance of WPDKDBTableRow class
get_sql ( integer $pk, string $sql ) : string You can override this method to change the SQL used to retrive te single record information

비공개 메소드들

메소드 설명
initByID ( integer $pk ) : boolean | array Return the array row and init this instance of WPDKDBTableRow from record ID. Return false if an error occour.

메소드 상세

__construct() 공개 메소드

Create an instance of WPDKDBTableRow class
public __construct ( __WPDKDBTable $dbtable, integer | array | object $pk = null ) : WPDKDBTableRow
$dbtable __WPDKDBTable Object of database class
$pk integer | array | object Optional. Any id, array or object
리턴 WPDKDBTableRow

defaults() 공개 메소드

Override this method to return a filtered key pairs array with column name and default value
public defaults ( )

desc() 공개 메소드

Return the DESC table
public desc ( ) : mixed
리턴 mixed

getInstance() 공개 정적인 메소드

Return an instance of WPDKDBTableRow class
public static getInstance ( __WPDKDBTable $dbtable, integer | array | object $pk = null ) : WPDKDBTableRow
$dbtable __WPDKDBTable An instance of __WPDKDBTable class
$pk integer | array | object Optional. Any id, array or object
리턴 WPDKDBTableRow

get_sql() 공개 메소드

You can override this method to change the SQL used to retrive te single record information
public get_sql ( integer $pk, string $sql ) : string
$pk integer The primary id of record
$sql string The SQL select used to retrive the single record information
리턴 string

프로퍼티 상세

$table 공개적으로 프로퍼티

An instance of table of record
public __WPDKDBTable $table
리턴 __WPDKDBTable