Static acces to the ORM
| Properties |
| public static string $idSuffix = 'Id' |
| public static string $migrationNamespace = 'App\Migration' |
| public static string $namespaceRoot = '/homepages/18/d179646520/htdocs/PHPFUIWebsite/PHPFUI/..' |
| public static string $recordNamespace = 'App\Record' |
| public static string $tableNamespace = 'App\Table' |
| Methods |
| public static addConnection(PHPFUI Add a PDO instance and return the index for future reference. Use the return value to switch bethin |
| public static beginTransaction() : bool Clears an existing errors and begins a transaction |
| public static commit() : bool Commits the current transaction |
public static describeTable(string $table) : array
|
| public static execute(string $sql, array $input = []) : bool Executes the SQL string using the matching $input array
|
| public static executeStatement(PDOStatement $statement, array $input = []) : ?PDOStatement Executes the query and catches any errors
|
public static expandResources(array $data) : array
|
public static getArrayCursor(string $sql = 'select 0 limit 0', array $input = []) : PHPFUI
|
| public static getBaseClassName(string $table) : string Get the correct class name from the table name |
| public static getConnection() : string|int|?null Gets the current connection id in use |
public static getDataObjectCursor(string $sql = 'select 0 limit 0', array $input = []) : PHPFUI
|
public static getForeignKeys(string $table) : array
|
public static getIndexes(string $table) : array
|
| public static getInstance() : PHPFUI |
public static getLastError() : string
|
public static getLastErrorCode() : int
|
public static getLastErrors() : array
|
public static getLastParameters() : array
|
public static getLastSql() : string
|
| public static getMigrationNamespacePath() : string |
public static getRecordCursor(PHPFUI
|
| public static getRecordNamespacePath() : string |
public static getRow(string $sql, array $input = []) : array
|
| public static getRows(string $sql, array $input = [], int $fetchType = 2PDO::FETCH_ASSOC) : array Similar to getArrayCursor except returns a fully populated array It is recommended to use getArrayCursor if you don't need array functionality
|
| public static getTableNamespacePath() : string |
public static getTables() : array
|
public static getValue(string $sql, array $input = []) : string
|
public static getValueArray(string $sql, array $input = []) : array
|
public static lastInsertId(string $name = '', string $table = '') : string
|
| public static log(string $type, string $message, array $context = []) : void Logs array of errors via error_log
|
public static pdo() : ?PHPFUI
|
| public static reportErrors() : void Logs errors and clears error log |
| public static rollBack() : bool Rolls back the current transaction |
| public static setLogger(Psr\Log\AbstractLogger $logger) : void |
public static setTranslationCallback( $callback) : void
|
| public static trans(string $text, array $variables = []) : string Translate a field. See PHPFUI\Translation |
| public static useConnection(string|int $connection) : string|int|?null Use a specific connection
|
| Properties |
| private static string|int|?null $currentInstance = NULL |
private static array $instances = []
|
| private static ?Psr\Log\AbstractLogger $logger = NULL |
private static $translationCallback = NULL
|
| Methods |
| private static filePath(string $namespace) : string |
| Properties |
| private static string|int|?null $currentInstance = NULL |
| public static string $idSuffix = 'Id' |
private static array $instances = []
|
| private static ?Psr\Log\AbstractLogger $logger = NULL |
| public static string $migrationNamespace = 'App\Migration' |
| public static string $namespaceRoot = '/homepages/18/d179646520/htdocs/PHPFUIWebsite/PHPFUI/..' |
| public static string $recordNamespace = 'App\Record' |
| public static string $tableNamespace = 'App\Table' |
private static $translationCallback = NULL
|
| Methods |
| public static addConnection(PHPFUI Add a PDO instance and return the index for future reference. Use the return value to switch bethin |
| public static beginTransaction() : bool Clears an existing errors and begins a transaction |
| public static commit() : bool Commits the current transaction |
public static describeTable(string $table) : array
|
| public static execute(string $sql, array $input = []) : bool Executes the SQL string using the matching $input array
|
| public static executeStatement(PDOStatement $statement, array $input = []) : ?PDOStatement Executes the query and catches any errors
|
public static expandResources(array $data) : array
|
| private static filePath(string $namespace) : string |
public static getArrayCursor(string $sql = 'select 0 limit 0', array $input = []) : PHPFUI
|
| public static getBaseClassName(string $table) : string Get the correct class name from the table name |
| public static getConnection() : string|int|?null Gets the current connection id in use |
public static getDataObjectCursor(string $sql = 'select 0 limit 0', array $input = []) : PHPFUI
|
public static getForeignKeys(string $table) : array
|
public static getIndexes(string $table) : array
|
| public static getInstance() : PHPFUI |
public static getLastError() : string
|
public static getLastErrorCode() : int
|
public static getLastErrors() : array
|
public static getLastParameters() : array
|
public static getLastSql() : string
|
| public static getMigrationNamespacePath() : string |
public static getRecordCursor(PHPFUI
|
| public static getRecordNamespacePath() : string |
public static getRow(string $sql, array $input = []) : array
|
| public static getRows(string $sql, array $input = [], int $fetchType = 2PDO::FETCH_ASSOC) : array Similar to getArrayCursor except returns a fully populated array It is recommended to use getArrayCursor if you don't need array functionality
|
| public static getTableNamespacePath() : string |
public static getTables() : array
|
public static getValue(string $sql, array $input = []) : string
|
public static getValueArray(string $sql, array $input = []) : array
|
public static lastInsertId(string $name = '', string $table = '') : string
|
| public static log(string $type, string $message, array $context = []) : void Logs array of errors via error_log
|
public static pdo() : ?PHPFUI
|
| public static reportErrors() : void Logs errors and clears error log |
| public static rollBack() : bool Rolls back the current transaction |
| public static setLogger(Psr\Log\AbstractLogger $logger) : void |
public static setTranslationCallback( $callback) : void
|
| public static trans(string $text, array $variables = []) : string Translate a field. See PHPFUI\Translation |
| public static useConnection(string|int $connection) : string|int|?null Use a specific connection
|