ISchema
extends
ISchema
in
Tags
Table of Contents
Methods
- delete() : IModel
- getConnection() : IConnection
- getDatabase() : string
- getDsn() : IDsn
- getInformationSchema() : ISchema
- getName() : string
- Gets the name of the schema
- getTable() : ITable
- getTables() : ArrayObject
- read() : IModel|void|null
- save() : IModel
- tableExists() : bool
- Determines whether or not a table by a particular name exists within this schema.
- update() : IModel
Methods
delete()
public
delete(IModel $model) : IModel
Parameters
- $model : IModel
Return values
IModelgetConnection()
public
getConnection() : IConnection
Return values
IConnectiongetDatabase()
public
getDatabase() : string
Return values
stringgetDsn()
public
getDsn() : IDsn
Return values
IDsngetInformationSchema()
public
getInformationSchema() : ISchema
Return values
ISchemagetName()
Gets the name of the schema
public
getName() : string
Return values
string —The name of the schema.
getTable()
public
getTable(string $table_name) : ITable
Parameters
- $table_name : string
Tags
Return values
ITablegetTables()
public
getTables() : ArrayObject
Return values
ArrayObjectread()
public
read(string $type, string $id) : IModel|void|null
Parameters
- $type : string
- $id : string
Return values
IModel|void|nullsave()
public
save(IModel $model) : IModel
Parameters
- $model : IModel
Return values
IModeltableExists()
Determines whether or not a table by a particular name exists within this schema.
public
tableExists(string $table_name) : bool
Parameters
- $table_name : string
-
The name of the table to check if exists
Return values
bool —True if the table exists within this schema, false otherwise
update()
public
update(IModel $model) : IModel
Parameters
- $model : IModel