- Extends
- Implements
Countable
Methods |
public PHPFUI\ORM\Table::__construct() |
public PHPFUI\ORM\Table::addFind(array $parameters) : PHPFUI
|
public PHPFUI\ORM\Table::addGroupBy(string $field, bool $rollup = false) : static Add a valid group field
|
public PHPFUI\ORM\Table::addJoin(string $table, PHPFUI Add a join with another table
|
public PHPFUI\ORM\Table::addOrderBy(string $field, string $ascending = 'ASC') : static |
public PHPFUI\ORM\Table::addSelect(object|string $field, string $as = '') : static Add a field the the select, must be a valid field |
public PHPFUI\ORM\Table::addUnion(PHPFUI Add table for union.
|
public static PHPFUI\ORM\Table::capitalSplit(string $key) : string Split a string into words based on capital letters. Successive capital letters are considered an appreviation and grouped together. |
public PHPFUI\ORM\Table::cleanField(string $fieldName) : string |
public PHPFUI\ORM\Table::count() : int Returns the count for the limited query. |
public PHPFUI\ORM\Table::delete(bool $allowDeleteAll = false) : static Delete record matching the requested parameters |
public PHPFUI\ORM\Table::displayTransform(string $field, ?mixed $value = NULL) : ?mixed transform any field or table.field from join |
public PHPFUI\ORM\Table::find(array $parameters) : PHPFUI
|
public static PHPFUI\ORM\Table::getAllTables(array $skipTables = []) : array Get all tables in the application
|
public PHPFUI\ORM\Table::getArrayCursor() : PHPFUI Return a array collection matching the requested parameters |
public PHPFUI\ORM\Table::getDataObjectCursor() : PHPFUI Return a object collection matching the requested parameters |
public PHPFUI\ORM\Table::getExplainRows() : array Return an array of the explain query
|
public PHPFUI\ORM\Table::getFields() : array
|
public PHPFUI\ORM\Table::getGroupBy() : string
|
public PHPFUI\ORM\Table::getHaving(array $input) : string Return the string starting with "having" for the query
|
public PHPFUI\ORM\Table::getHavingCondition() : PHPFUI |
public getHighest() : PHPFUI |
public PHPFUI\ORM\Table::getLastInput() : array
|
public PHPFUI\ORM\Table::getLastSql() : string |
public PHPFUI\ORM\Table::getLimit() : ?int
|
public PHPFUI\ORM\Table::getLimitClause() : string
|
public PHPFUI\ORM\Table::getOffset() : ?int |
public PHPFUI\ORM\Table::getOrderBy() : string
|
public PHPFUI\ORM\Table::getPage() : int |
public PHPFUI\ORM\Table::getPrimaryKeys() : array
|
public PHPFUI\ORM\Table::getRecord() : PHPFUI |
public PHPFUI\ORM\Table::getRecordCursor() : PHPFUI Return a Record collection matching the requested parameters |
public PHPFUI\ORM\Table::getRows() : array
|
public PHPFUI\ORM\Table::getSelectFields() : string
|
public PHPFUI\ORM\Table::getSelectSQL(array $input, bool $limited = true) : string
|
public PHPFUI\ORM\Table::getTableName() : string |
public PHPFUI\ORM\Table::getWhere(array $input) : string Return the string starting with "where" for the query
|
public PHPFUI\ORM\Table::getWhereCondition() : PHPFUI |
public PHPFUI\ORM\Table::insert(array $records, string $ignore = '') : bool Mass insertion. Does not use a transaction, so surround by a transaction if needed
|
public PHPFUI\ORM\Table::insertOrIgnore(array $records) : bool Inserts current data into table or ignores duplicate key if found
|
public paginate(int $page, int $perPage) : PHPFUI |
public PHPFUI\ORM\Table::setDistinct(string $distinct = 'DISTINCT') : static |
public PHPFUI\ORM\Table::setFullJoinSelects(bool $fullSelects = true) : static |
public PHPFUI\ORM\Table::setGroupBy(string $field, bool $rollup = false) : static Reset to this group by field
|
public PHPFUI\ORM\Table::setHaving(?PHPFUI |
public PHPFUI\ORM\Table::setLimit(int $limit = 20, ?int $page = NULL) : static
|
public PHPFUI\ORM\Table::setOffset(int $offset) : static |
public PHPFUI\ORM\Table::setOrderBy(string $field, string $ascending = 'ASC') : static |
public PHPFUI\ORM\Table::setSelectFields(string $clause) : static Set user defined select fields. |
public static PHPFUI\ORM\Table::setTranslationCallback(callable $callback) : void |
public PHPFUI\ORM\Table::setWhere(?PHPFUI |
public PHPFUI\ORM\Table::total() : int Returns the total count for the unlimited query. |
public PHPFUI\ORM\Table::translate(string $field = '') : string Translate any valid field. $field must be a valid field, or empty to return the translated table name. Joined fields should be specified as table.field. |
public PHPFUI\ORM\Table::update(array $variables) : static Update all record matching the requested parameters with the variables passed
|
public PHPFUI\ORM\Table::updateFromTable(array $request) : bool
|
public PHPFUI\ORM\Table::validateFromTable(array $request) : array
|
Properties |
protected static string $className = '\PHPFUI\ORM\Record\Migration' |
protected string PHPFUI\ORM\Table::$distinct = '' |
protected array PHPFUI\ORM\Table::$groupBys = []
|
protected ?PHPFUI |
protected PHPFUI |
protected array PHPFUI\ORM\Table::$joins = []
|
protected array PHPFUI\ORM\Table::$lastInput = []
|
protected string PHPFUI\ORM\Table::$lastSql = '' |
protected ?int PHPFUI\ORM\Table::$limit = NULL |
protected ?int PHPFUI\ORM\Table::$offset = NULL |
protected array PHPFUI\ORM\Table::$orderBys = []
|
protected ?int PHPFUI\ORM\Table::$page = NULL |
protected array PHPFUI\ORM\Table::$selects = []
|
protected array PHPFUI\ORM\Table::$unions = []
|
protected ?PHPFUI |
Properties |
protected static string $className = '\PHPFUI\ORM\Record\Migration' |
Methods |
public static PHPFUI\ORM\Table::capitalSplit(string $key) : string Split a string into words based on capital letters. Successive capital letters are considered an appreviation and grouped together. |
public static PHPFUI\ORM\Table::getAllTables(array $skipTables = []) : array Get all tables in the application
|
public static PHPFUI\ORM\Table::setTranslationCallback(callable $callback) : void |