메소드 |
설명 |
|
__construct ( string $table_name = '', string $sql_file = '' ) : WPDKDBListTableModel |
Create an instance of WPDKDBListTableModel class |
|
count ( ) : integer | array |
Return the integer count of all rows when $distinct param is emmpty or an array of distinct count for $distinct column. |
|
delete ( integer | array $id ) : integer | boolean |
Delete one or more record from table. Return the number of rows affected/selected or false on error. |
|
insert ( ) : integer | boolean |
Insert a record by values. Return FALSE if error or id of record if successfully. |
|
status ( integer $id, string $status = WPDKDBTableRowStatuses::PUBLISH ) : mixed |
Set one or more record with a status. |
|
update ( ) : array | boolean |
Update a record by values. Return FALSE if error or the $where condiction if successfully. |
|