PHP Class Queries, Nameless

Show file Open project: NamelessMC/Nameless Class Usage Examples

Public Methods

Method Description
__construct ( )
alterTable ( $table, $column, $attributes )
convertQuestionType ( $type )
create ( $table, $fields = [] )
createTable ( $table, $columns, $other )
dbInitialise ( )
decrement ( $table, $id, $field )
delete ( $table, $where )
getAll ( $table, $where = [] )
getLastId ( )
getLike ( $table, $where, $like )
getWhere ( $table, $where )
increment ( $table, $id, $field )
modifyColumn ( $table, $column, $attributes )
orderAll ( $table, $order, $sort = null )
orderWhere ( $table, $where, $order, $sort = null )
removeColumn ( $table, $column )
tableExists ( $table )
update ( $table, $id, $fields = [] )

Method Details

__construct() public method

public __construct ( )

alterTable() public method

public alterTable ( $table, $column, $attributes )

convertQuestionType() public method

public convertQuestionType ( $type )

create() public method

public create ( $table, $fields = [] )

createTable() public method

public createTable ( $table, $columns, $other )

dbInitialise() public method

public dbInitialise ( )

decrement() public method

public decrement ( $table, $id, $field )

delete() public method

public delete ( $table, $where )

getAll() public method

public getAll ( $table, $where = [] )

getLastId() public method

public getLastId ( )

getLike() public method

public getLike ( $table, $where, $like )

getWhere() public method

public getWhere ( $table, $where )

increment() public method

public increment ( $table, $id, $field )

modifyColumn() public method

public modifyColumn ( $table, $column, $attributes )

orderAll() public method

public orderAll ( $table, $order, $sort = null )

orderWhere() public method

public orderWhere ( $table, $where, $order, $sort = null )

removeColumn() public method

public removeColumn ( $table, $column )

tableExists() public method

public tableExists ( $table )

update() public method

public update ( $table, $id, $fields = [] )