Bluz\Auth\AbstractRow
Abstract class for Auth\Row
- Author: Anton Shevchuk
Synopsis
- // Inherited members from Row
- protected Table $table;
- protected $tableClass;
- protected array $clean;
- protected array $relations;
- // Inherited methods from Row
- public void __construct()
- public array __sleep()
- public string __toString()
- public array __debugInfo()
- public bool validate()
- public void assert()
- public mixed save()
- protected mixed doInsert()
- protected integer doUpdate()
- public integer delete()
- protected array getPrimaryKey()
- public void refresh()
- protected void afterRead()
- protected void beforeSave()
- protected void afterSave()
- protected void beforeInsert()
- protected void afterInsert()
- protected void beforeUpdate()
- protected void afterUpdate()
- protected void beforeDelete()
- protected void afterDelete()
- public Row setTable()
- public Table getTable()
- protected void initTable()
- public Row setRelation()
- public Row|false getRelation()
- public array getRelations()
- // Inherited methods from Container
- protected void doSetContainer()
- protected mixed doGetContainer()
- protected bool doContainsContainer()
- protected void doDeleteContainer()
- public Container setFromArray()
- public array toArray()
- public Container resetArray()
- // Inherited methods from ArrayAccess
- public void offsetSet()
- public string offsetGet()
- public bool offsetExists()
- public void offsetUnset()
- // Inherited methods from JsonSerialize
- public array jsonSerialize()
- // Inherited methods from MagicAccess
- public void __set()
- public mixed __get()
- public bool __isset()
- public void __unset()
Hierarchy
Extends
Members
protected
- $clean
—
array
This is set to a copy of $data when the data is fetched from a database, specified as a new tuple in the constructor, or when dirty data is posted to the database with save(). - $container — array
- $relations — array
- $table — Bluz\Db\Table
- $tableClass — string
Methods
Inherited from Bluz\Db\Row
protected
- afterDelete() — Allows post-delete logic to be applied to row.
- afterInsert() — Allows post-insert logic to be applied to row.
- afterRead() — After read data from Db
- afterSave() — Allows post-insert and post-update logic to be applied to row.
- afterUpdate() — Allows post-update logic to be applied to row.
- beforeDelete() — Allows pre-delete logic to be applied to row.
- beforeInsert() — Allows pre-insert logic to be applied to row.
- beforeSave() — Allows pre-insert and pre-update logic to be applied to row.
- beforeUpdate() — Allows pre-update logic to be applied to row.
- doInsert() — Insert row to Db
- doUpdate() — Update row
- getPrimaryKey() — Retrieves an associative array of primary keys, if it exists
- initTable() — initTable
public
- __debugInfo() — Magic method for var_dump()
- __sleep() — List of required for serialization properties
- __toString() — Cast to string as class name
- assert() — Assert input data
- delete() — Delete existing row
- getRelation() — Get relation by model name
- getRelations() — Get relations by model name
- getTable() — Returns the table object, or null if this is disconnected row
- refresh() — Refreshes properties from the database
- save() — Saves the properties to the database.
- setRelation() — Set relation
- setTable() — Setup Table instance
- validate() — Validate input data
Inherited from Bluz\Common\Container\Container
protected
- doContainsContainer() — Check contains key in container
- doDeleteContainer() — Delete value by key
- doGetContainer() — Get value by key
- doSetContainer() — Set key/value pair
public
- resetArray() — Reset container array
- setFromArray() — Sets all data in the row from an array
- toArray() — Returns the column/value data as an array
Inherited from Bluz\Common\Container\ArrayAccess
public
- offsetExists() — Whether a offset exists
- offsetGet() — Offset to retrieve
- offsetSet() — Offset to set
- offsetUnset() — Offset to unset
Inherited from Bluz\Common\Container\JsonSerialize
public
- jsonSerialize() — Specify data which should be serialized to JSON
Inherited from Bluz\Common\Container\MagicAccess
public
History
-
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-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`