Bluz\Crud\Table
Crud Table
- Author: AntonShevchuk
Synopsis
- // members
- protected Table $table;
- // Inherited members from AbstractCrud
- protected array $fields;
- // methods
- public void setTable()
- public Table getTable()
- protected void initTable()
- public array getPrimaryKey()
- public Row readOne()
- public array readSet()
- public mixed createOne()
- public integer updateOne()
- public integer deleteOne()
- // Inherited methods from AbstractCrud
- public abstract array getPrimaryKey()
- public static Table getInstance()
- public void readOne()
- public void readSet()
- public void createOne()
- public void createSet()
- public void updateOne()
- public void updateSet()
- public void deleteOne()
- public void deleteSet()
- public array getFields()
- public void setFields()
- protected array filterData()
- protected Row filterRow()
Hierarchy
Extends
Tasks
Line | Task |
---|---|
+ | should be different for Create, Read and Update |
Constants
Name | Value |
---|---|
DEFAULT_LIMIT | 10 |
Members
protected
- $fields — array
- $table — \Bluz\Db\Table
Methods
protected
- initTable() — Init table instance for manipulation
public
- createOne() — Create item
- deleteOne() — Delete item
- getPrimaryKey() — Get primary key
- getTable() — Return table instance for manipulation
- readOne() — Get record from Db or create new object
- readSet() — Get set of records
- setTable() — Setup Table instance
- updateOne() — Update item
Inherited from Bluz\Crud\AbstractCrud
protected
- filterData() — Filter input Fields
- filterRow() — Filter output Row
public
- createOne()
- createSet()
- deleteOne()
- deleteSet()
- getFields()
- getInstance() — Get CRUD Instance
- getPrimaryKey() — Return primary key signature
- readOne()
- readSet()
- setFields()
- updateOne()
- updateSet()
History
-
2017-08-30T13:22:17+00:00 (commit #004bb5b)
Author: Anton Shevchuk (AntonShevchuk@gmail.com) / Commiter: Anton Shevchuk (AntonShevchuk@gmail.com)
Create CrudInterface
-
2017-08-22T15:09:27+00:00 (commit #38fd8e8)
Author: Anton Shevchuk (AntonShevchuk@gmail.com) / Commiter: Anton Shevchuk (AntonShevchuk@gmail.com)
Added fields filter for `Crud` and `Mapper\Link`
-
2017-08-03T14:11:40+00:00 (commit #15278f6)
Author: Anton Shevchuk (AntonShevchuk@gmail.com) / Commiter: Anton Shevchuk (AntonShevchuk@gmail.com)
Renamed `Line` to `Str` Added `class_namespace` function
-
2017-07-19T15:33:23+00:00 (commit #2a51418)
Author: Anton Shevchuk (AntonShevchuk@gmail.com) / Commiter: Anton Shevchuk (AntonShevchuk@gmail.com)
Refactoring of Controller mappers Changed signature of constructor
-
2017-06-30T08:36:40+00:00 (commit #2259ecf)
Author: Anton Shevchuk (AntonShevchuk@gmail.com) / Commiter: Anton Shevchuk (AntonShevchuk@gmail.com)
Fixed comments style
-
2017-04-27T07:41:15+00:00 (commit #3880ffe)
Author: Anton Shevchuk (AntonShevchuk@gmail.com) / Commiter: Anton Shevchuk (AntonShevchuk@gmail.com)
Small refactoring
-
2017-04-21T13:24:35+00:00 (commit #3b25a3d)
Author: Anton Shevchuk (AntonShevchuk@gmail.com) / Commiter: Anton Shevchuk (AntonShevchuk@gmail.com)
Small update for codestyle
-
2017-02-15T16:09:44+00:00 (commit #0fc0c8b)
Author: Anton Shevchuk (AntonShevchuk@gmail.com) / Commiter: Anton Shevchuk (AntonShevchuk@gmail.com)
Updated coveralls config
-
2017-02-13T10:14:18+00:00 (commit #43dbf55)
Author: Anton Shevchuk (AntonShevchuk@gmail.com) / Commiter: Anton Shevchuk (AntonShevchuk@gmail.com)
Rollback to `getCount()` method
-
2017-01-30T13:15:49+00:00 (commit #fd5d943)
Author: Anton (AntonShevchuk@gmail.com) / Commiter: GitHub (AntonShevchuk@gmail.com)
Merge pull request #395 from AntonShevchuk/master Added `AttachmentResponse`
-
2017-01-30T12:38:53+00:00 (commit #0ab8691)
Author: Anton Shevchuk (AntonShevchuk@gmail.com) / Commiter: Anton Shevchuk (AntonShevchuk@gmail.com)
Added `AttachmentResponse` Added `attachment($file)` helper for `Controller`