What Is The Difference Between A Stack And A Queue? Explain With Examples
Asked2 months ago
Answer1
Viewed53
0
In the sector of computer technological know-how, data systems play a critical function in organizing and storing statistics correctly. Two of the maximum usually used statistics structures are stacks and queues. While each are used to manage collections of information, they operate on special principles and are perfect for specific duties. Understanding the differences among them assist you to pick the proper records structure primarily based at the specific necessities of your software.
What is a Stack?
A stack is a linear records shape that follows the Last In, First Out (LIFO) precept. In simpler terms, it manner that the most these days introduced item is the primary one to be eliminated. Imagine a stack of plates at a buffet: the remaining plate you location on pinnacle is the first one you’ll take off.
Pop: Removes the object from the top of the stack.
Peek/Top: Returns the object at the pinnacle of the stack with out putting off it.
IsEmpty: Checks if the stack is empty.
Example of a Stack:
Let’s bear in mind a stack of numbers:
If you push 15 onto the stack, the stack turns
If then you definately pop an detail, 15 may be eliminated, leaving the stack as [5, 8, 12].
This feature makes stacks useful in situations wherein the most latest information is needed to be processed first, like in undo mechanisms in programs, function calls in programming languages, and parsing expressions in compilers.
What is a Queue?
A queue is another linear records structure, but it follows the First In, First Out (FIFO) principle. This manner that the first object introduced is the first one to be eliminated. Think of a queue at a grocery keep checkout: the primary man or woman in line is the first one to be served.
Real-World Applications:
Stack:
Function Calls in Programming: The machine makes use of a stack to manipulate feature calls. When a feature is referred to as, its context is pushed onto the stack. Once the feature completes, its context is popped off.
Expression Evaluation: Stacks are vital in comparing expressions like postfix (Reverse Polish notation). For instance, to assess the expression three four + five *, a stack can preserve intermediate results as operations are done.
Undo Mechanism: Many programs, like text editors, use stacks to put into effect the undo feature. Each action (e.G., typing a letter, deleting text) is pushed onto a stack, and undoing an action pops the maximum current one.
Queue:
Task Scheduling: In working structures, queues are used to manage the execution of techniques. The first method that arrives is the primary one to be performed (FIFO).
Data Streaming: Queues are used in managing records streams where records is processed within the order it arrives. For example, in networking, facts packets are processed within the order they come at the receiver.
Print Queue: In a network of computer systems, documents despatched to a printer are stored in a queue, ensuring that the primary record despatched is outlined first.
Conclusion:
Both stacks and queues are essential statistics structures that assist us manipulate facts efficiently, each with its personal use instances. Stacks are awesome for dealing with data where the most current object is processed first (LIFO), while queues are perfect for processing statistics within the order it arrives (FIFO). By knowledge those statistics systems and their characteristics, builders can make informed choices on which one to apply for particular obligations, optimizing both overall performance and capability in software program development.
Choosing the proper information structure is an vital ability in laptop science, and understanding when to use a stack as opposed to a queue can assist streamline methods on your applications.
⧉public setQuery(string $sql, $binds = null, bool $setEscape = true): $this Sets the raw query string to use for this statement.
/**
* Sets the raw query string to use for this statement.
*
* @param mixed $binds
*
* @return $this
*/
Defined in <ROOT>/social/Database/Query.php:106
⧉public setBinds(array $binds, bool $setEscape = true): $this Will store the variables to bind into the query later.
/**
* Will store the variables to bind into the query later.
*
* @return $this
*/
Defined in <ROOT>/social/Database/Query.php:137
⧉public getQuery(): string Returns the final, processed query string after binding, etal has been perfor...
/**
* Returns the final, processed query string after binding, etal
* has been performed.
*/
Defined in <ROOT>/social/Database/Query.php:156
⧉public setDuration(float $start, ?float $end = null): $this Records the execution time of the statement using microtime(true) for it's st...
/**
* Records the execution time of the statement using microtime(true)
* for it's start and end values. If no end value is present, will
* use the current time to determine total duration.
*
* @param float $end
*
* @return $this
*/
Defined in <ROOT>/social/Database/Query.php:174
⧉public getStartTime(bool $returnRaw = false, int $decimals = 6): float|string Returns the start time in seconds with microseconds.
/**
* Returns the start time in seconds with microseconds.
*
* @return float|string
*/
Defined in <ROOT>/social/Database/Query.php:192
⧉public getDuration(int $decimals = 6): string Returns the duration of this query during execution, or null if the query has...
/**
* Returns the duration of this query during execution, or null if
* the query has not been executed yet.
*
* @param int $decimals The accuracy of the returned time.
*/
Defined in <ROOT>/social/Database/Query.php:207
⧉public setError(int $code, string $error): $this Stores the error description that happened for this query.
/**
* Stores the error description that happened for this query.
*
* @return $this
*/
Defined in <ROOT>/social/Database/Query.php:217
⧉public hasError(): bool Reports whether this statement created an error not.
/**
* Reports whether this statement created an error not.
*/
Defined in <ROOT>/social/Database/Query.php:228
⧉public getErrorCode(): int Returns the error code created while executing this statement.
/**
* Returns the error code created while executing this statement.
*/
Defined in <ROOT>/social/Database/Query.php:236
⧉public getErrorMessage(): string Returns the error message created while executing this statement.
/**
* Returns the error message created while executing this statement.
*/
Defined in <ROOT>/social/Database/Query.php:244
⧉public isWriteType(): bool Determines if the statement is a write-type query or not.
/**
* Determines if the statement is a write-type query or not.
*/
Defined in <ROOT>/social/Database/Query.php:252
⧉public swapPrefix(string $orig, string $swap): $this Swaps out one table prefix for a new one.
/**
* Swaps out one table prefix for a new one.
*
* @return $this
*/
Defined in <ROOT>/social/Database/Query.php:262
⧉public getOriginalQuery(): string Returns the original SQL that was passed into the system.
/**
* Returns the original SQL that was passed into the system.
*/
Defined in <ROOT>/social/Database/Query.php:279
⧉public debugToolbarDisplay(): string Returns string to display in debug toolbar
/**
* Returns string to display in debug toolbar
*/
Defined in <ROOT>/social/Database/Query.php:371
⧉public __toString(): string Return text representation of the query
/**
* Return text representation of the query
*/
Defined in <ROOT>/social/Database/Query.php:425
⧉protected compileBinds() Escapes and inserts any binds into the finalQueryString property.
/**
* Escapes and inserts any binds into the finalQueryString property.
*
* @see https://regex101.com/r/EUEhay/5
*/
Defined in <ROOT>/social/Database/Query.php:289
⧉protected matchNamedBinds(string $sql, array $binds): string Match bindings
/**
* Match bindings
*/
Defined in <ROOT>/social/Database/Query.php:317
⧉protected matchSimpleBinds(string $sql, array $binds, int $bindCount, int $ml): string Match bindings
/**
* Match bindings
*/
Defined in <ROOT>/social/Database/Query.php:341
⧉public connect(bool $persistent = false): mixed Connect to the database.
/**
* Connect to the database.
*
* @return mixed
*
* @throws DatabaseException
*/
Defined in <ROOT>/social/Database/MySQLi/Connection.php:79
⧉public reconnect() Keep or establish the connection if no queries have been sent for a length of...
/**
* Keep or establish the connection if no queries have been sent for
* a length of time exceeding the server's idle timeout.
*/
Defined in <ROOT>/social/Database/MySQLi/Connection.php:225
⧉public setDatabase(string $databaseName): bool Select a specific database table to use.
/**
* Select a specific database table to use.
*/
Defined in <ROOT>/social/Database/MySQLi/Connection.php:242
⧉public getVersion(): string Returns a string containing the version of the database being used.
/**
* Returns a string containing the version of the database being used.
*/
Defined in <ROOT>/social/Database/MySQLi/Connection.php:264
⧉public affectedRows(): int Returns the total number of rows affected by this query.
/**
* Returns the total number of rows affected by this query.
*/
Defined in <ROOT>/social/Database/MySQLi/Connection.php:321
⧉public escapeLikeStringDirect($str): string|string[] Escape Like String Direct There are a few instances where MySQLi queries cann...
/**
* Escape Like String Direct
* There are a few instances where MySQLi queries cannot take the
* additional "ESCAPE x" parameter for specifying the escape character
* in "LIKE" strings, and this handles those directly with a backslash.
*
* @param string|string[] $str Input string
*
* @return string|string[]
*/
Defined in <ROOT>/social/Database/MySQLi/Connection.php:348
⧉public error(): array Returns the last error code and message. Must return this format: ['code' => ...
/**
* Returns the last error code and message.
* Must return this format: ['code' => string|int, 'message' => string]
* intval(code) === 0 means "no error".
*
* @return array<string, int|string>
*/
Defined in <ROOT>/social/Database/MySQLi/Connection.php:551
⧉public insertID(): int Insert ID
/**
* Insert ID
*/
Defined in <ROOT>/social/Database/MySQLi/Connection.php:569
/**
* Saves our connection settings.
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:336
⧉public initialize(): mixed Initializes the database connection/settings.
/**
* Initializes the database connection/settings.
*
* @return mixed
*
* @throws DatabaseException
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:365
⧉public close() Close the database connection.
/**
* Close the database connection.
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:432
⧉public persistentConnect(): mixed Create a persistent database connection.
/**
* Create a persistent database connection.
*
* @return mixed
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:452
⧉public getConnection(?string $alias = null): mixed Returns the actual connection object. If both a 'read' and 'write' connection...
/**
* Returns the actual connection object. If both a 'read' and 'write'
* connection has been specified, you can pass either term in to
* get that connection. If you pass either alias in and only a single
* connection is present, it must return the sole connection.
*
* @return mixed
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:465
⧉public getDatabase(): string Returns the name of the current database being used.
/**
* Returns the name of the current database being used.
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:474
⧉public setPrefix(string $prefix = ''): string Set DB Prefix
/**
* Set DB Prefix
*
* Set's the DB Prefix to something new without needing to reconnect
*
* @param string $prefix The prefix
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:486
⧉public getPrefix(): string Returns the database prefix.
/**
* Returns the database prefix.
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:494
⧉public getPlatform(): string The name of the platform in use (MySQLi, Postgre, SQLite3, OCI8, etc)
/**
* The name of the platform in use (MySQLi, Postgre, SQLite3, OCI8, etc)
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:502
⧉public setAliasedTables(array $aliases): $this Sets the Table Aliases to use. These are typically collected during use of th...
/**
* Sets the Table Aliases to use. These are typically
* collected during use of the Builder, and set here
* so queries are built correctly.
*
* @return $this
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:514
⧉public addTableAlias(string $table): $this Add a table alias to our list.
/**
* Add a table alias to our list.
*
* @return $this
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:526
⧉public query(string $sql, $binds = null, bool $setEscapeFlags = true, string $queryClass = ''): BaseResult|bool|Query BaseResult when “read” type query, bool when “write” type query, Query when prepared query Orchestrates a query against the database. Queries must use Database\Statemen...
/**
* Orchestrates a query against the database. Queries must use
* Database\Statement objects to store the query and build it.
* This method works with the cache.
*
* Should automatically handle different connections for read/write
* queries if needed.
*
* @param mixed ...$binds
*
* @return BaseResult|bool|Query BaseResult when “read” type query, bool when “write” type query, Query when prepared query
*
* @todo BC set $queryClass default as null in 4.1
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:556
⧉public simpleQuery(string $sql): mixed Performs a basic query against the database. No binding or caching is perform...
/**
* Performs a basic query against the database. No binding or caching
* is performed, nor are transactions handled. Simply takes a raw
* query string and returns the database-specific result id.
*
* @return mixed
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:660
⧉public transOff() Disable Transactions
/**
* Disable Transactions
*
* This permits transactions to be disabled at run-time.
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:674
/**
* Enable/disable Transaction Strict Mode
*
* When strict mode is enabled, if you are running multiple groups of
* transactions, if one group fails all subsequent groups will be
* rolled back.
*
* If strict mode is disabled, each group is treated autonomously,
* meaning a failure of one group will not affect any others
*
* @param bool $mode = true
*
* @return $this
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:693
/**
* Complete Transaction
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:715
⧉public transStatus(): bool Lets you retrieve the transaction flag to determine if it has failed
/**
* Lets you retrieve the transaction flag to determine if it has failed
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:741
⧉public transBegin(bool $testMode = false): bool Begin Transaction
/**
* Begin Transaction
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:749
⧉public transCommit(): bool Commit Transaction
/**
* Commit Transaction
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:783
/**
* Rollback Transaction
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:802
⧉public table($tableName): BaseBuilder Returns a non-shared new instance of the query builder for this connection.
/**
* Returns a non-shared new instance of the query builder for this connection.
*
* @param array|string $tableName
*
* @return BaseBuilder
*
* @throws DatabaseException
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:842
⧉public newQuery(): CodeIgniter\Database\BaseBuilder Returns a new instance of the BaseBuilder class with a cleared FROM clause.
/**
* Returns a new instance of the BaseBuilder class with a cleared FROM clause.
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:856
⧉public prepare(Closure $func, array $options = array()): BasePreparedQuery|null Creates a prepared statement with the database that can then be used to execu...
/**
* Creates a prepared statement with the database that can then
* be used to execute multiple statements against. Within the
* closure, you would build the query in any normal way, though
* the Query Builder is the expected manner.
*
* Example:
* $stmt = $db->prepare(function($db)
* {
* return $db->table('users')
* ->where('id', 1)
* ->get();
* })
*
* @return BasePreparedQuery|null
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:882
⧉public getLastQuery(): Query Returns the last query's statement object.
/**
* Returns the last query's statement object.
*
* @return Query
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:910
⧉public showLastQuery(): string Returns a string representation of the last query's statement object.
/**
* Returns a string representation of the last query's statement object.
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:918
⧉public getConnectStart(): ?float Returns the time we started to connect to this database in seconds with micro...
/**
* Returns the time we started to connect to this database in
* seconds with microseconds.
*
* Used by the Debug Toolbar's timeline.
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:929
⧉public getConnectDuration(int $decimals = 6): string Returns the number of seconds with microseconds that it took to connect to th...
/**
* Returns the number of seconds with microseconds that it took
* to connect to the database.
*
* Used by the Debug Toolbar's timeline.
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:940
/**
* Protect Identifiers
*
* This function is used extensively by the Query Builder class, and by
* a couple functions in this class.
* It takes a column or table name (optionally with an alias) and inserts
* the table prefix onto it. Some logic is necessary in order to deal with
* column names that include the path. Consider a query like this:
*
* SELECT hostname.database.table.column AS c FROM hostname.database.table
*
* Or a query with aliasing:
*
* SELECT m.member_id, m.member_name FROM members AS m
*
* Since the column name can include up to four segments (host, DB, table, column)
* or also have an alias prefix, we need to do a bit of work to figure this out and
* insert the table prefix (if it exists) in the proper position, and escape only
* the correct identifiers.
*
* @param array|string $item
* @param bool $prefixSingle Prefix a table name with no segments?
* @param bool $protectIdentifiers Protect table or column names?
* @param bool $fieldExists Supplied $item contains a column name?
*
* @return array|string
* @phpstan-return ($item is array ? array : string)
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:973
⧉public escapeIdentifiers($item): array|string Escape the SQL Identifiers
/**
* Escape the SQL Identifiers
*
* This function escapes column and table names
*
* @param array|string $item
*
* @return array|string
* @phpstan-return ($item is array ? array : string)
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:1130
⧉public prefixTable(string $table = ''): string Prepends a database prefix if one exists in configuration
/**
* Prepends a database prefix if one exists in configuration
*
* @throws DatabaseException
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:1188
/**
* Escape String
*
* @param string|string[] $str Input string
* @param bool $like Whether or not the string will be used in a LIKE condition
*
* @return string|string[]
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:1238
⧉public escapeLikeString($str): string|string[] Escape LIKE String
/**
* Escape LIKE String
*
* Calls the individual driver for platform
* specific escaping for LIKE conditions
*
* @param string|string[] $str
*
* @return string|string[]
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:1280
⧉public callFunction(string $functionName, $params): bool This function enables you to call PHP database functions that are not nativel...
/**
* This function enables you to call PHP database functions that are not natively included
* in CodeIgniter, in a platform independent manner.
*
* @param array ...$params
*
* @throws DatabaseException
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:1303
⧉public listTables(bool $constrainByPrefix = false): array|bool Returns an array of table names
/**
* Returns an array of table names
*
* @return array|bool
*
* @throws DatabaseException
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:1341
⧉public tableExists(string $tableName, bool $cached = true): bool Determine if a particular table exists
/**
* Determine if a particular table exists
*
* @param bool $cached Whether to use data cache
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:1391
⧉public getFieldNames(string $table): array|false Fetch Field Names
/**
* Fetch Field Names
*
* @return array|false
*
* @throws DatabaseException
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:1432
⧉public fieldExists(string $fieldName, string $tableName): bool Determine if a particular field exists
/**
* Determine if a particular field exists
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:1477
⧉public getFieldData(string $table): stdClass[] Returns an object with field data
/**
* Returns an object with field data
*
* @return stdClass[]
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:1487
⧉public getIndexData(string $table): array Returns an object with key data
/**
* Returns an object with key data
*
* @return array
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:1497
⧉public getForeignKeyData(string $table): array Returns an object with foreign key data
/**
* Returns an object with foreign key data
*
* @return array
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:1507
/**
* Enables foreign key checks temporarily.
*
* @return bool
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:1534
⧉public pretend(bool $pretend = true): $this Allows the engine to be set into a mode where queries are not actually execut...
/**
* Allows the engine to be set into a mode where queries are not
* actually executed, but they are still generated, timed, etc.
*
* This is primarily used by the prepared query functionality.
*
* @return $this
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:1554
⧉public resetDataCache(): $this Empties our data cache. Especially helpful during testing.
/**
* Empties our data cache. Especially helpful during testing.
*
* @return $this
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:1566
⧉public isWriteType($sql): bool Determines if the statement is a write-type query or not.
/**
* Determines if the statement is a write-type query or not.
*
* @param string $sql
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:1578
⧉public __get(string $key): mixed Accessor for properties if they exist.
/**
* Accessor for properties if they exist.
*
* @return mixed
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:1674
⧉public __isset(string $key): bool Checker for properties existence.
/**
* Checker for properties existence.
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:1686
⧉protected _close() Close the database connection.
/**
* Close the database connection.
*/
Defined in <ROOT>/social/Database/MySQLi/Connection.php:234
⧉protected execute(string $sql): bool|object Executes the query against the database.
/**
* Executes the query against the database.
*
* @return bool|object
*/
Defined in <ROOT>/social/Database/MySQLi/Connection.php:282
⧉protected prepQuery(string $sql): string Prep the query. If needed, each database adapter can prep the query string
/**
* Prep the query. If needed, each database adapter can prep the query string
*/
Defined in <ROOT>/social/Database/MySQLi/Connection.php:307
/**
* Platform-dependant string escape
*/
Defined in <ROOT>/social/Database/MySQLi/Connection.php:329
⧉protected _listTables(bool $prefixLimit = false, ?string $tableName = null): string Generates the SQL for listing tables in a platform-dependent manner. Uses esc...
/**
* Generates the SQL for listing tables in a platform-dependent manner.
* Uses escapeLikeStringDirect().
*
* @param string|null $tableName If $tableName is provided will return only this table if exists.
*/
Defined in <ROOT>/social/Database/MySQLi/Connection.php:374
⧉protected _listColumns(string $table = ''): string Generates a platform-specific query string so that the column names can be fe...
/**
* Generates a platform-specific query string so that the column names can be fetched.
*/
Defined in <ROOT>/social/Database/MySQLi/Connection.php:392
⧉protected _fieldData(string $table): array Returns an array of objects with field data
/**
* Returns an array of objects with field data
*
* @return stdClass[]
*
* @throws DatabaseException
*/
Defined in <ROOT>/social/Database/MySQLi/Connection.php:404
⧉protected _indexData(string $table): array Returns an array of objects with index data
/**
* Returns an array of objects with index data
*
* @return stdClass[]
*
* @throws DatabaseException
* @throws LogicException
*/
Defined in <ROOT>/social/Database/MySQLi/Connection.php:437
⧉protected _foreignKeyData(string $table): array Returns an array of objects with Foreign key data
/**
* Returns an array of objects with Foreign key data
*
* @return stdClass[]
*
* @throws DatabaseException
*/
Defined in <ROOT>/social/Database/MySQLi/Connection.php:482
/**
* Rollback Transaction
*/
Defined in <ROOT>/social/Database/MySQLi/Connection.php:601
⧉protected getDriverFunctionPrefix(): string Get the prefix of the function to access the DB.
/**
* Get the prefix of the function to access the DB.
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:1325
/**
* Constructor
*
* @param array|string $tableName tablename or tablenames with or without aliases
*
* Examples of $tableName: `mytable`, `jobs j`, `jobs j, users u`, `['jobs j','users u']`
*
* @throws DatabaseException
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:280
⧉public db(): CodeIgniter\Database\ConnectionInterface Returns the current database connection
/**
* Returns the current database connection
*
* @return BaseConnection|ConnectionInterface
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:314
⧉public testMode(bool $mode = true): $this Sets a test mode status.
/**
* Sets a test mode status.
*
* @return $this
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:324
⧉public getTable(): string Gets the name of the primary table.
/**
* Gets the name of the primary table.
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:334
⧉public getBinds(): array Returns an array of bind values and their named parameters for binding in the...
/**
* Returns an array of bind values and their
* named parameters for binding in the Query object later.
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:343
⧉public ignore(bool $ignore = true): $this Ignore
/**
* Ignore
*
* Set ignore Flag for next insert,
* update or delete query.
*
* @return $this
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:356
⧉public select($select = '*', ?bool $escape = null): $this Generates the SELECT portion of the query
/**
* Generates the SELECT portion of the query
*
* @param array|RawSql|string $select
*
* @return $this
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:370
⧉public selectMax(string $select = '', string $alias = ''): $this Generates a SELECT MAX(field) portion of a query
/**
* Generates a SELECT MAX(field) portion of a query
*
* @return $this
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:416
⧉public selectMin(string $select = '', string $alias = ''): $this Generates a SELECT MIN(field) portion of a query
/**
* Generates a SELECT MIN(field) portion of a query
*
* @return $this
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:426
⧉public selectAvg(string $select = '', string $alias = ''): $this Generates a SELECT AVG(field) portion of a query
/**
* Generates a SELECT AVG(field) portion of a query
*
* @return $this
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:436
⧉public selectSum(string $select = '', string $alias = ''): $this Generates a SELECT SUM(field) portion of a query
/**
* Generates a SELECT SUM(field) portion of a query
*
* @return $this
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:446
⧉public selectCount(string $select = '', string $alias = ''): $this Generates a SELECT COUNT(field) portion of a query
/**
* Generates a SELECT COUNT(field) portion of a query
*
* @return $this
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:456
⧉public selectSubquery(CodeIgniter\Database\BaseBuilder $subquery, string $as): self Adds a subquery to the selection
/**
* Adds a subquery to the selection
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:464
⧉public distinct(bool $val = true): $this Sets a flag which tells the query string compiler to add DISTINCT
/**
* Sets a flag which tells the query string compiler to add DISTINCT
*
* @return $this
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:531
⧉public from($from, bool $overwrite = false): self Generates the FROM portion of the query
/**
* Generates the FROM portion of the query
*
* @param array|string $from
*
* @return $this
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:545
/**
* @param BaseBuilder $from Expected subquery
* @param string $alias Subquery alias
*
* @return $this
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:576
⧉public join(string $table, $cond, string $type = '', ?bool $escape = null): $this Generates the JOIN portion of the query
/**
* Generates the JOIN portion of the query
*
* @param RawSql|string $cond
*
* @return $this
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:593
⧉public where($key, $value = null, ?bool $escape = null): $this Generates the WHERE portion of the query. Separates multiple calls with 'AND'.
/**
* Generates the WHERE portion of the query.
* Separates multiple calls with 'AND'.
*
* @param array|RawSql|string $key
* @param mixed $value
*
* @return $this
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:672
⧉public orWhere($key, $value = null, ?bool $escape = null): $this OR WHERE
/**
* OR WHERE
*
* Generates the WHERE portion of the query.
* Separates multiple calls with 'OR'.
*
* @param array|RawSql|string $key
* @param mixed $value
* @param bool $escape
*
* @return $this
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:689
⧉public whereIn(?string $key = null, $values = null, ?bool $escape = null): $this Generates a WHERE field IN('item', 'item') SQL query, joined with 'AND' if ap...
/**
* Generates a WHERE field IN('item', 'item') SQL query,
* joined with 'AND' if appropriate.
*
* @param array|BaseBuilder|Closure|string $values The values searched on, or anonymous function with subquery
*
* @return $this
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:787
⧉public orWhereIn(?string $key = null, $values = null, ?bool $escape = null): $this Generates a WHERE field IN('item', 'item') SQL query, joined with 'OR' if app...
/**
* Generates a WHERE field IN('item', 'item') SQL query,
* joined with 'OR' if appropriate.
*
* @param array|BaseBuilder|Closure|string $values The values searched on, or anonymous function with subquery
*
* @return $this
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:800
⧉public whereNotIn(?string $key = null, $values = null, ?bool $escape = null): $this Generates a WHERE field NOT IN('item', 'item') SQL query, joined with 'AND' i...
/**
* Generates a WHERE field NOT IN('item', 'item') SQL query,
* joined with 'AND' if appropriate.
*
* @param array|BaseBuilder|Closure|string $values The values searched on, or anonymous function with subquery
*
* @return $this
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:813
⧉public orWhereNotIn(?string $key = null, $values = null, ?bool $escape = null): $this Generates a WHERE field NOT IN('item', 'item') SQL query, joined with 'OR' if...
/**
* Generates a WHERE field NOT IN('item', 'item') SQL query,
* joined with 'OR' if appropriate.
*
* @param array|BaseBuilder|Closure|string $values The values searched on, or anonymous function with subquery
*
* @return $this
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:826
⧉public havingIn(?string $key = null, $values = null, ?bool $escape = null): $this Generates a HAVING field IN('item', 'item') SQL query, joined with 'AND' if a...
/**
* Generates a HAVING field IN('item', 'item') SQL query,
* joined with 'AND' if appropriate.
*
* @param array|BaseBuilder|Closure|string $values The values searched on, or anonymous function with subquery
*
* @return $this
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:839
⧉public orHavingIn(?string $key = null, $values = null, ?bool $escape = null): $this Generates a HAVING field IN('item', 'item') SQL query, joined with 'OR' if ap...
/**
* Generates a HAVING field IN('item', 'item') SQL query,
* joined with 'OR' if appropriate.
*
* @param array|BaseBuilder|Closure|string $values The values searched on, or anonymous function with subquery
*
* @return $this
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:852
⧉public havingNotIn(?string $key = null, $values = null, ?bool $escape = null): $this Generates a HAVING field NOT IN('item', 'item') SQL query, joined with 'AND' ...
/**
* Generates a HAVING field NOT IN('item', 'item') SQL query,
* joined with 'AND' if appropriate.
*
* @param array|BaseBuilder|Closure|string $values The values searched on, or anonymous function with subquery
*
* @return $this
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:865
⧉public orHavingNotIn(?string $key = null, $values = null, ?bool $escape = null): $this Generates a HAVING field NOT IN('item', 'item') SQL query, joined with 'OR' i...
/**
* Generates a HAVING field NOT IN('item', 'item') SQL query,
* joined with 'OR' if appropriate.
*
* @param array|BaseBuilder|Closure|string $values The values searched on, or anonymous function with subquery
*
* @return $this
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:878
⧉public like($field, string $match = '', string $side = 'both', ?bool $escape = null, bool $insensitiveSearch = false): $this Generates a %LIKE% portion of the query. Separates multiple calls with 'AND'.
/**
* Generates a %LIKE% portion of the query.
* Separates multiple calls with 'AND'.
*
* @param array|RawSql|string $field
*
* @return $this
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:954
⧉public notLike($field, string $match = '', string $side = 'both', ?bool $escape = null, bool $insensitiveSearch = false): $this Generates a NOT LIKE portion of the query. Separates multiple calls with 'AND'.
/**
* Generates a NOT LIKE portion of the query.
* Separates multiple calls with 'AND'.
*
* @param array|RawSql|string $field
*
* @return $this
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:967
⧉public orLike($field, string $match = '', string $side = 'both', ?bool $escape = null, bool $insensitiveSearch = false): $this Generates a %LIKE% portion of the query. Separates multiple calls with 'OR'.
/**
* Generates a %LIKE% portion of the query.
* Separates multiple calls with 'OR'.
*
* @param array|RawSql|string $field
*
* @return $this
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:980
⧉public orNotLike($field, string $match = '', string $side = 'both', ?bool $escape = null, bool $insensitiveSearch = false): $this Generates a NOT LIKE portion of the query. Separates multiple calls with 'OR'.
/**
* Generates a NOT LIKE portion of the query.
* Separates multiple calls with 'OR'.
*
* @param array|RawSql|string $field
*
* @return $this
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:993
⧉public havingLike($field, string $match = '', string $side = 'both', ?bool $escape = null, bool $insensitiveSearch = false): $this Generates a %LIKE% portion of the query. Separates multiple calls with 'AND'.
/**
* Generates a %LIKE% portion of the query.
* Separates multiple calls with 'AND'.
*
* @param array|RawSql|string $field
*
* @return $this
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:1006
⧉public notHavingLike($field, string $match = '', string $side = 'both', ?bool $escape = null, bool $insensitiveSearch = false): $this Generates a NOT LIKE portion of the query. Separates multiple calls with 'AND'.
/**
* Generates a NOT LIKE portion of the query.
* Separates multiple calls with 'AND'.
*
* @param array|RawSql|string $field
*
* @return $this
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:1019
⧉public orHavingLike($field, string $match = '', string $side = 'both', ?bool $escape = null, bool $insensitiveSearch = false): $this Generates a %LIKE% portion of the query. Separates multiple calls with 'OR'.
/**
* Generates a %LIKE% portion of the query.
* Separates multiple calls with 'OR'.
*
* @param array|RawSql|string $field
*
* @return $this
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:1032
⧉public orNotHavingLike($field, string $match = '', string $side = 'both', ?bool $escape = null, bool $insensitiveSearch = false): $this Generates a NOT LIKE portion of the query. Separates multiple calls with 'OR'.
/**
* Generates a NOT LIKE portion of the query.
* Separates multiple calls with 'OR'.
*
* @param array|RawSql|string $field
*
* @return $this
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:1045
⧉public union($union): $this Add UNION statement
/**
* Add UNION statement
*
* @param BaseBuilder|Closure $union
*
* @return $this
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:1155
⧉public unionAll($union): $this Add UNION ALL statement
/**
* Add UNION ALL statement
*
* @param BaseBuilder|Closure $union
*
* @return $this
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:1167
⧉public groupStart(): $this Starts a query group.
/**
* Starts a query group.
*
* @return $this
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:1195
⧉public orGroupStart(): $this Starts a query group, but ORs the group
/**
* Starts a query group, but ORs the group
*
* @return $this
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:1205
⧉public notGroupStart(): $this Starts a query group, but NOTs the group
/**
* Starts a query group, but NOTs the group
*
* @return $this
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:1215
⧉public orNotGroupStart(): $this Starts a query group, but OR NOTs the group
/**
* Starts a query group, but OR NOTs the group
*
* @return $this
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:1225
⧉public groupEnd(): $this Ends a query group
/**
* Ends a query group
*
* @return $this
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:1235
⧉public havingGroupStart(): $this Starts a query group for HAVING clause.
/**
* Starts a query group for HAVING clause.
*
* @return $this
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:1245
⧉public orHavingGroupStart(): $this Starts a query group for HAVING clause, but ORs the group.
/**
* Starts a query group for HAVING clause, but ORs the group.
*
* @return $this
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:1255
⧉public notHavingGroupStart(): $this Starts a query group for HAVING clause, but NOTs the group.
/**
* Starts a query group for HAVING clause, but NOTs the group.
*
* @return $this
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:1265
⧉public orNotHavingGroupStart(): $this Starts a query group for HAVING clause, but OR NOTs the group.
/**
* Starts a query group for HAVING clause, but OR NOTs the group.
*
* @return $this
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:1275
⧉public havingGroupEnd(): $this Ends a query group for HAVING clause.
/**
* Ends a query group for HAVING clause.
*
* @return $this
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:1285
⧉public groupBy($by, ?bool $escape = null): $this
/**
* @param array|string $by
*
* @return $this
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:1351
/**
* @param string $direction ASC, DESC or RANDOM
*
* @return $this
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:1408
/**
* @return $this
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:1460
⧉public offset(int $offset): $this Sets the OFFSET value
/**
* Sets the OFFSET value
*
* @return $this
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:1478
⧉public set($key, $value = '', ?bool $escape = null): $this Allows key/value pairs to be set for insert(), update() or replace().
/**
* Allows key/value pairs to be set for insert(), update() or replace().
*
* @param array|object|string $key Field name, or an array of field/value pairs
* @param mixed $value Field value, if $key is a single field
* @param bool|null $escape Whether to escape values
*
* @return $this
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:1504
⧉public getSetData(bool $clean = false): array Returns the previously set() data, alternatively resetting it if needed.
/**
* Returns the previously set() data, alternatively resetting it if needed.
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:1530
⧉public getCompiledSelect(bool $reset = true): string Compiles a SELECT query string and returns the sql.
/**
* Compiles a SELECT query string and returns the sql.
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:1544
⧉public get(?int $limit = null, int $offset0, bool $reset = true): false|ResultInterface Compiles the select statement based on the other functions called and runs th...
/**
* Compiles the select statement based on the other functions called
* and runs the query
*
* @return false|ResultInterface
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:1577
⧉public countAll(bool $reset = true): int|string Generates a platform-specific query string that counts all records in the par...
/**
* Generates a platform-specific query string that counts all records in
* the particular table
*
* @return int|string
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:1603
⧉public countAllResults(bool $reset = true): int|string Generates a platform-specific query string that counts all records returned b...
/**
* Generates a platform-specific query string that counts all records
* returned by an Query Builder query.
*
* @return int|string
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:1635
⧉public getCompiledQBWhere(): array Compiles the set conditions and returns the sql statement
/**
* Compiles the set conditions and returns the sql statement
*
* @return array
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:1694
⧉public getWhere($where = null, ?int $limit = null, ?int $offset0, bool $reset = true): ResultInterface Allows the where clause, limit and offset to be added directly
/**
* Allows the where clause, limit and offset to be added directly
*
* @param array|string $where
*
* @return ResultInterface
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:1706
⧉public insertBatch(?array $set = null, ?bool $escape = null, int $batchSize = 100): false|int|string[] Number of rows inserted or FALSE on failure, SQL array when testMode Compiles batch insert strings and runs the queries
/**
* Compiles batch insert strings and runs the queries
*
* @return false|int|string[] Number of rows inserted or FALSE on failure, SQL array when testMode
*
* @throws DatabaseException
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:1737
⧉public setInsertBatch($key, string $value = '', ?bool $escape = null): $this|null Allows key/value pairs to be set for batch inserts
/**
* Allows key/value pairs to be set for batch inserts
*
* @param mixed $key
*
* @return $this|null
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:1810
⧉public getCompiledInsert(bool $reset = true): bool|string Compiles an insert query and returns the sql
/**
* Compiles an insert query and returns the sql
*
* @return bool|string
*
* @throws DatabaseException
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:1859
⧉public insert($set = null, ?bool $escape = null): bool Compiles an insert string and runs the query
/**
* Compiles an insert string and runs the query
*
* @param array|object|null $set
*
* @return bool
*
* @throws DatabaseException
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:1892
⧉public replace(?array $set = null): BaseResult|false|Query|string Compiles a replace into string and runs the query
/**
* Compiles a replace into string and runs the query
*
* @return BaseResult|false|Query|string
*
* @throws DatabaseException
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:1982
⧉public getCompiledUpdate(bool $reset = true): bool|string Compiles an update query and returns the sql
/**
* Compiles an update query and returns the sql
*
* @return bool|string
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:2029
⧉public update($set = null, $where = null, ?int $limit = null): bool Compiles an update string and runs the query.
/**
* Compiles an update string and runs the query.
*
* @param array|object|null $set
* @param array|RawSql|string|null $where
*
* @throws DatabaseException
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:2052
⧉public updateBatch(?array $set = null, ?string $index = null, int $batchSize = 100): false|int|string[] Number of rows affected or FALSE on failure, SQL array when testMode Compiles an update string and runs the query
/**
* Compiles an update string and runs the query
*
* @return false|int|string[] Number of rows affected or FALSE on failure, SQL array when testMode
*
* @throws DatabaseException
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:2138
⧉public setUpdateBatch($key, string $index = '', ?bool $escape = null): $this|null Allows key/value pairs to be set for batch updating
/**
* Allows key/value pairs to be set for batch updating
*
* @param array|object $key
*
* @return $this|null
*
* @throws DatabaseException
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:2249
⧉public emptyTable(): bool|string TRUE on success, FALSE on failure, string on testMode Compiles a delete string and runs "DELETE FROM table"
/**
* Compiles a delete string and runs "DELETE FROM table"
*
* @return bool|string TRUE on success, FALSE on failure, string on testMode
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:2289
⧉public truncate(): bool|string TRUE on success, FALSE on failure, string on testMode Compiles a truncate string and runs the query If the database does not suppor...
/**
* Compiles a truncate string and runs the query
* If the database does not support the truncate() command
* This function maps to "DELETE FROM table"
*
* @return bool|string TRUE on success, FALSE on failure, string on testMode
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:2311
⧉public getCompiledDelete(bool $reset = true): string Compiles a delete query string and returns the sql
/**
* Compiles a delete query string and returns the sql
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:2340
⧉public delete($where = '', ?int $limit = null, bool $resetData = true): bool|string Returns a string if in test mode. Compiles a delete string and runs the query
/**
* Compiles a delete string and runs the query
*
* @param mixed $where
*
* @return bool|string Returns a string if in test mode.
*
* @throws DatabaseException
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:2357
⧉public increment(string $column, int $value = 1): bool Increments a numeric column by the specified value.
/**
* Increments a numeric column by the specified value.
*
* @return bool
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:2399
⧉public decrement(string $column, int $value = 1): bool Decrements a numeric column by the specified value.
/**
* Decrements a numeric column by the specified value.
*
* @return bool
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:2419
⧉public resetQuery(): $this Publicly-visible method to reset the QB values.
/**
* Publicly-visible method to reset the QB values.
*
* @return $this
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:2772
⧉protected _fromTables(): string FROM tables
/**
* FROM tables
*
* Groups tables in FROM clauses if needed, so there is no confusion
* about operator precedence.
*
* Note: This is only used (and overridden) by MySQL.
*/
Defined in <ROOT>/social/Database/MySQLi/Builder.php:48
⧉protected createAliasFromTable(string $item): string Determines the alias name based on the table
/**
* Determines the alias name based on the table
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:515
/**
* Platform independent LIKE statement builder.
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:1139
/**
* @used-by union()
* @used-by unionAll()
*
* @param BaseBuilder|Closure $union
*
* @return $this
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:1180
⧉protected groupStartPrepare(string $not = '', string $type = 'AND ', string $clause = 'QBWhere'): $this Prepate a query group start.
/**
* Prepate a query group start.
*
* @return $this
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:1295
⧉protected groupEndPrepare(string $clause = 'QBWhere'): $this Prepate a query group end.
/**
* Prepate a query group end.
*
* @return $this
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:1316
⧉protected groupGetType(string $type): string
/**
* @used-by groupStart()
* @used-by _like()
* @used-by whereHaving()
* @used-by _whereIn()
* @used-by havingGroupStart()
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:1336
/**
* Generates a platform-specific LIMIT clause.
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:1490
⧉protected compileFinalQuery(string $sql): string Returns a finalized, compiled query string with the bindings inserted and pre...
/**
* Returns a finalized, compiled query string with the bindings
* inserted and prefixes swapped out.
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:1559
⧉protected _insertBatch(string $table, array $keys, array $values): string Generates a platform-specific insert string from the supplied data.
/**
* Generates a platform-specific insert string from the supplied data.
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:1798
⧉protected removeAlias(string $from): string
/**
* @internal This is a temporary solution.
*
* @see https://github.com/codeigniter4/CodeIgniter4/pull/5376
*
* @TODO Fix a root cause, and this method should be removed.
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:1934
⧉protected validateInsert(): bool This method is used by both insert() and getCompiledInsert() to validate that...
/**
* This method is used by both insert() and getCompiledInsert() to
* validate that the there data is actually being set and that table
* has been chosen to be inserted into.
*
* @throws DatabaseException
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:1954
⧉protected _insert(string $table, array $keys, array $unescapedKeys): string Generates a platform-specific insert string from the supplied data
/**
* Generates a platform-specific insert string from the supplied data
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:1970
⧉protected _replace(string $table, array $keys, array $values): string Generates a platform-specific replace string from the supplied data
/**
* Generates a platform-specific replace string from the supplied data
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:2008
⧉protected _update(string $table, array $values): string Generates a platform-specific update string from the supplied data
/**
* Generates a platform-specific update string from the supplied data
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:2097
⧉protected validateUpdate(): bool This method is used by both update() and getCompiledUpdate() to validate that...
/**
* This method is used by both update() and getCompiledUpdate() to
* validate that data is actually being set and that a table has been
* chosen to be update.
*
* @throws DatabaseException
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:2118
⧉protected _updateBatch(string $table, array $values, string $index): string Generates a platform-specific batch update string from the supplied data
/**
* Generates a platform-specific batch update string from the supplied data
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:2212
⧉protected _truncate(string $table): string Generates a platform-specific truncate string from the supplied data
/**
* Generates a platform-specific truncate string from the supplied data
*
* If the database does not support the truncate() command,
* then this method maps to 'DELETE FROM table'
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:2332
⧉protected _delete(string $table): string Generates a platform-specific delete string from the supplied data
/**
* Generates a platform-specific delete string from the supplied data
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:2437
⧉protected trackAliases($table): string|void Used to track SQL statements written with aliased tables.
/**
* Used to track SQL statements written with aliased tables.
*
* @param array|string $table The table to inspect
*
* @return string|void
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:2449
⧉protected compileSelect($selectOverride = false): string Compile the SELECT statement
/**
* Compile the SELECT statement
*
* Generates a query string based on which functions were used.
* Should not be called directly.
*
* @param mixed $selectOverride
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:2486
⧉protected compileIgnore(string $statement): string Checks if the ignore option is supported by the Database Driver for the speci...
/**
* Checks if the ignore option is supported by
* the Database Driver for the specific statement.
*
* @return string
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:2536
⧉protected compileWhereHaving(string $qbKey): string Escapes identifiers in WHERE and HAVING statements at execution time.
/**
* Escapes identifiers in WHERE and HAVING statements at execution time.
*
* Required so that aliases are tracked properly, regardless of whether
* where(), orWhere(), having(), orHaving are called prior to from(),
* join() and prefixTable is added only if needed.
*
* @param string $qbKey 'QBWhere' or 'QBHaving'
*
* @return string SQL statement
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:2556
⧉protected compileGroupBy(): string Escapes identifiers in GROUP BY statements at execution time.
/**
* Escapes identifiers in GROUP BY statements at execution time.
*
* Required so that aliases are tracked properly, regardless of whether
* groupBy() is called prior to from(), join() and prefixTable is added
* only if needed.
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:2634
⧉protected compileOrderBy(): string Escapes identifiers in ORDER BY statements at execution time.
/**
* Escapes identifiers in ORDER BY statements at execution time.
*
* Required so that aliases are tracked properly, regardless of whether
* orderBy() is called prior to from(), join() and prefixTable is added
* only if needed.
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:2661
⧉protected unionInjection(string $sql): string
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:2682
⧉protected objectToArray($object): array Takes an object as input and converts the class variables to array key/vals
/**
* Takes an object as input and converts the class variables to array key/vals
*
* @param object $object
*
* @return array
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:2700
⧉protected batchObjectToArray($object): array Takes an object as input and converts the class variables to array key/vals
/**
* Takes an object as input and converts the class variables to array key/vals
*
* @param object $object
*
* @return array
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:2724
⧉protected isLiteral(string $str): bool Determines if a string represents a literal value or a field name
/**
* Determines if a string represents a literal value or a field name
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:2748
⧉protected resetRun(array $qbResetItems) Resets the query builder values. Called by the get() function
/**
* Resets the query builder values. Called by the get() function
*
* @param array $qbResetItems An array of fields to reset
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:2785
⧉protected resetSelect() Resets the query builder values. Called by the get() function
/**
* Resets the query builder values. Called by the get() function
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:2795
⧉protected resetWrite() Resets the query builder "write" values.
/**
* Resets the query builder "write" values.
*
* Called by the insert() update() insertBatch() updateBatch() and delete() functions
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:2826
⧉protected hasOperator(string $str): bool Tests whether the string has an SQL operator
/**
* Tests whether the string has an SQL operator
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:2842
/**
* Returns the SQL string operator
*
* @return mixed
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:2855
⧉protected setBind(string $key, $value = null, bool $escape = true): string Stores a bind value after ensuring that it's unique. While it might be nicer ...
/**
* Stores a bind value after ensuring that it's unique.
* While it might be nicer to have named keys for our binds array
* with PHP 7+ we get a huge memory/performance gain with indexed
* arrays instead, so lets take advantage of that here.
*
* @param mixed $value
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:2892
⧉protected cleanClone(): $this Returns a clone of a Base Builder with reset query builder values.
/**
* Returns a clone of a Base Builder with reset query builder values.
*
* @return $this
*
* @deprecated
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:2924
⧉protected isSubquery($value): bool
/**
* @param mixed $value
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:2932
/**
* @param BaseBuilder|Closure $builder
* @param bool $wrapped Wrap the subquery in brackets
* @param string $alias Subquery alias
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:2942
⧉public setQuery(string $sql, $binds = null, bool $setEscape = true): $this Sets the raw query string to use for this statement.
/**
* Sets the raw query string to use for this statement.
*
* @param mixed $binds
*
* @return $this
*/
Defined in <ROOT>/social/Database/Query.php:106
⧉public setBinds(array $binds, bool $setEscape = true): $this Will store the variables to bind into the query later.
/**
* Will store the variables to bind into the query later.
*
* @return $this
*/
Defined in <ROOT>/social/Database/Query.php:137
⧉public getQuery(): string Returns the final, processed query string after binding, etal has been perfor...
/**
* Returns the final, processed query string after binding, etal
* has been performed.
*/
Defined in <ROOT>/social/Database/Query.php:156
⧉public setDuration(float $start, ?float $end = null): $this Records the execution time of the statement using microtime(true) for it's st...
/**
* Records the execution time of the statement using microtime(true)
* for it's start and end values. If no end value is present, will
* use the current time to determine total duration.
*
* @param float $end
*
* @return $this
*/
Defined in <ROOT>/social/Database/Query.php:174
⧉public getStartTime(bool $returnRaw = false, int $decimals = 6): float|string Returns the start time in seconds with microseconds.
/**
* Returns the start time in seconds with microseconds.
*
* @return float|string
*/
Defined in <ROOT>/social/Database/Query.php:192
⧉public getDuration(int $decimals = 6): string Returns the duration of this query during execution, or null if the query has...
/**
* Returns the duration of this query during execution, or null if
* the query has not been executed yet.
*
* @param int $decimals The accuracy of the returned time.
*/
Defined in <ROOT>/social/Database/Query.php:207
⧉public setError(int $code, string $error): $this Stores the error description that happened for this query.
/**
* Stores the error description that happened for this query.
*
* @return $this
*/
Defined in <ROOT>/social/Database/Query.php:217
⧉public hasError(): bool Reports whether this statement created an error not.
/**
* Reports whether this statement created an error not.
*/
Defined in <ROOT>/social/Database/Query.php:228
⧉public getErrorCode(): int Returns the error code created while executing this statement.
/**
* Returns the error code created while executing this statement.
*/
Defined in <ROOT>/social/Database/Query.php:236
⧉public getErrorMessage(): string Returns the error message created while executing this statement.
/**
* Returns the error message created while executing this statement.
*/
Defined in <ROOT>/social/Database/Query.php:244
⧉public isWriteType(): bool Determines if the statement is a write-type query or not.
/**
* Determines if the statement is a write-type query or not.
*/
Defined in <ROOT>/social/Database/Query.php:252
⧉public swapPrefix(string $orig, string $swap): $this Swaps out one table prefix for a new one.
/**
* Swaps out one table prefix for a new one.
*
* @return $this
*/
Defined in <ROOT>/social/Database/Query.php:262
⧉public getOriginalQuery(): string Returns the original SQL that was passed into the system.
/**
* Returns the original SQL that was passed into the system.
*/
Defined in <ROOT>/social/Database/Query.php:279
⧉public debugToolbarDisplay(): string Returns string to display in debug toolbar
/**
* Returns string to display in debug toolbar
*/
Defined in <ROOT>/social/Database/Query.php:371
⧉public __toString(): string Return text representation of the query
/**
* Return text representation of the query
*/
Defined in <ROOT>/social/Database/Query.php:425
⧉protected compileBinds() Escapes and inserts any binds into the finalQueryString property.
/**
* Escapes and inserts any binds into the finalQueryString property.
*
* @see https://regex101.com/r/EUEhay/5
*/
Defined in <ROOT>/social/Database/Query.php:289
⧉protected matchNamedBinds(string $sql, array $binds): string Match bindings
/**
* Match bindings
*/
Defined in <ROOT>/social/Database/Query.php:317
⧉protected matchSimpleBinds(string $sql, array $binds, int $bindCount, int $ml): string Match bindings
/**
* Match bindings
*/
Defined in <ROOT>/social/Database/Query.php:341
⧉public connect(bool $persistent = false): mixed Connect to the database.
/**
* Connect to the database.
*
* @return mixed
*
* @throws DatabaseException
*/
Defined in <ROOT>/social/Database/MySQLi/Connection.php:79
⧉public reconnect() Keep or establish the connection if no queries have been sent for a length of...
/**
* Keep or establish the connection if no queries have been sent for
* a length of time exceeding the server's idle timeout.
*/
Defined in <ROOT>/social/Database/MySQLi/Connection.php:225
⧉public setDatabase(string $databaseName): bool Select a specific database table to use.
/**
* Select a specific database table to use.
*/
Defined in <ROOT>/social/Database/MySQLi/Connection.php:242
⧉public getVersion(): string Returns a string containing the version of the database being used.
/**
* Returns a string containing the version of the database being used.
*/
Defined in <ROOT>/social/Database/MySQLi/Connection.php:264
⧉public affectedRows(): int Returns the total number of rows affected by this query.
/**
* Returns the total number of rows affected by this query.
*/
Defined in <ROOT>/social/Database/MySQLi/Connection.php:321
⧉public escapeLikeStringDirect($str): string|string[] Escape Like String Direct There are a few instances where MySQLi queries cann...
/**
* Escape Like String Direct
* There are a few instances where MySQLi queries cannot take the
* additional "ESCAPE x" parameter for specifying the escape character
* in "LIKE" strings, and this handles those directly with a backslash.
*
* @param string|string[] $str Input string
*
* @return string|string[]
*/
Defined in <ROOT>/social/Database/MySQLi/Connection.php:348
⧉public error(): array Returns the last error code and message. Must return this format: ['code' => ...
/**
* Returns the last error code and message.
* Must return this format: ['code' => string|int, 'message' => string]
* intval(code) === 0 means "no error".
*
* @return array<string, int|string>
*/
Defined in <ROOT>/social/Database/MySQLi/Connection.php:551
⧉public insertID(): int Insert ID
/**
* Insert ID
*/
Defined in <ROOT>/social/Database/MySQLi/Connection.php:569
/**
* Saves our connection settings.
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:336
⧉public initialize(): mixed Initializes the database connection/settings.
/**
* Initializes the database connection/settings.
*
* @return mixed
*
* @throws DatabaseException
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:365
⧉public close() Close the database connection.
/**
* Close the database connection.
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:432
⧉public persistentConnect(): mixed Create a persistent database connection.
/**
* Create a persistent database connection.
*
* @return mixed
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:452
⧉public getConnection(?string $alias = null): mixed Returns the actual connection object. If both a 'read' and 'write' connection...
/**
* Returns the actual connection object. If both a 'read' and 'write'
* connection has been specified, you can pass either term in to
* get that connection. If you pass either alias in and only a single
* connection is present, it must return the sole connection.
*
* @return mixed
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:465
⧉public getDatabase(): string Returns the name of the current database being used.
/**
* Returns the name of the current database being used.
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:474
⧉public setPrefix(string $prefix = ''): string Set DB Prefix
/**
* Set DB Prefix
*
* Set's the DB Prefix to something new without needing to reconnect
*
* @param string $prefix The prefix
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:486
⧉public getPrefix(): string Returns the database prefix.
/**
* Returns the database prefix.
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:494
⧉public getPlatform(): string The name of the platform in use (MySQLi, Postgre, SQLite3, OCI8, etc)
/**
* The name of the platform in use (MySQLi, Postgre, SQLite3, OCI8, etc)
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:502
⧉public setAliasedTables(array $aliases): $this Sets the Table Aliases to use. These are typically collected during use of th...
/**
* Sets the Table Aliases to use. These are typically
* collected during use of the Builder, and set here
* so queries are built correctly.
*
* @return $this
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:514
⧉public addTableAlias(string $table): $this Add a table alias to our list.
/**
* Add a table alias to our list.
*
* @return $this
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:526
⧉public query(string $sql, $binds = null, bool $setEscapeFlags = true, string $queryClass = ''): BaseResult|bool|Query BaseResult when “read” type query, bool when “write” type query, Query when prepared query Orchestrates a query against the database. Queries must use Database\Statemen...
/**
* Orchestrates a query against the database. Queries must use
* Database\Statement objects to store the query and build it.
* This method works with the cache.
*
* Should automatically handle different connections for read/write
* queries if needed.
*
* @param mixed ...$binds
*
* @return BaseResult|bool|Query BaseResult when “read” type query, bool when “write” type query, Query when prepared query
*
* @todo BC set $queryClass default as null in 4.1
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:556
⧉public simpleQuery(string $sql): mixed Performs a basic query against the database. No binding or caching is perform...
/**
* Performs a basic query against the database. No binding or caching
* is performed, nor are transactions handled. Simply takes a raw
* query string and returns the database-specific result id.
*
* @return mixed
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:660
⧉public transOff() Disable Transactions
/**
* Disable Transactions
*
* This permits transactions to be disabled at run-time.
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:674
/**
* Enable/disable Transaction Strict Mode
*
* When strict mode is enabled, if you are running multiple groups of
* transactions, if one group fails all subsequent groups will be
* rolled back.
*
* If strict mode is disabled, each group is treated autonomously,
* meaning a failure of one group will not affect any others
*
* @param bool $mode = true
*
* @return $this
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:693
/**
* Complete Transaction
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:715
⧉public transStatus(): bool Lets you retrieve the transaction flag to determine if it has failed
/**
* Lets you retrieve the transaction flag to determine if it has failed
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:741
⧉public transBegin(bool $testMode = false): bool Begin Transaction
/**
* Begin Transaction
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:749
⧉public transCommit(): bool Commit Transaction
/**
* Commit Transaction
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:783
/**
* Rollback Transaction
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:802
⧉public table($tableName): BaseBuilder Returns a non-shared new instance of the query builder for this connection.
/**
* Returns a non-shared new instance of the query builder for this connection.
*
* @param array|string $tableName
*
* @return BaseBuilder
*
* @throws DatabaseException
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:842
⧉public newQuery(): CodeIgniter\Database\BaseBuilder Returns a new instance of the BaseBuilder class with a cleared FROM clause.
/**
* Returns a new instance of the BaseBuilder class with a cleared FROM clause.
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:856
⧉public prepare(Closure $func, array $options = array()): BasePreparedQuery|null Creates a prepared statement with the database that can then be used to execu...
/**
* Creates a prepared statement with the database that can then
* be used to execute multiple statements against. Within the
* closure, you would build the query in any normal way, though
* the Query Builder is the expected manner.
*
* Example:
* $stmt = $db->prepare(function($db)
* {
* return $db->table('users')
* ->where('id', 1)
* ->get();
* })
*
* @return BasePreparedQuery|null
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:882
⧉public getLastQuery(): Query Returns the last query's statement object.
/**
* Returns the last query's statement object.
*
* @return Query
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:910
⧉public showLastQuery(): string Returns a string representation of the last query's statement object.
/**
* Returns a string representation of the last query's statement object.
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:918
⧉public getConnectStart(): ?float Returns the time we started to connect to this database in seconds with micro...
/**
* Returns the time we started to connect to this database in
* seconds with microseconds.
*
* Used by the Debug Toolbar's timeline.
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:929
⧉public getConnectDuration(int $decimals = 6): string Returns the number of seconds with microseconds that it took to connect to th...
/**
* Returns the number of seconds with microseconds that it took
* to connect to the database.
*
* Used by the Debug Toolbar's timeline.
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:940
/**
* Protect Identifiers
*
* This function is used extensively by the Query Builder class, and by
* a couple functions in this class.
* It takes a column or table name (optionally with an alias) and inserts
* the table prefix onto it. Some logic is necessary in order to deal with
* column names that include the path. Consider a query like this:
*
* SELECT hostname.database.table.column AS c FROM hostname.database.table
*
* Or a query with aliasing:
*
* SELECT m.member_id, m.member_name FROM members AS m
*
* Since the column name can include up to four segments (host, DB, table, column)
* or also have an alias prefix, we need to do a bit of work to figure this out and
* insert the table prefix (if it exists) in the proper position, and escape only
* the correct identifiers.
*
* @param array|string $item
* @param bool $prefixSingle Prefix a table name with no segments?
* @param bool $protectIdentifiers Protect table or column names?
* @param bool $fieldExists Supplied $item contains a column name?
*
* @return array|string
* @phpstan-return ($item is array ? array : string)
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:973
⧉public escapeIdentifiers($item): array|string Escape the SQL Identifiers
/**
* Escape the SQL Identifiers
*
* This function escapes column and table names
*
* @param array|string $item
*
* @return array|string
* @phpstan-return ($item is array ? array : string)
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:1130
⧉public prefixTable(string $table = ''): string Prepends a database prefix if one exists in configuration
/**
* Prepends a database prefix if one exists in configuration
*
* @throws DatabaseException
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:1188
/**
* Escape String
*
* @param string|string[] $str Input string
* @param bool $like Whether or not the string will be used in a LIKE condition
*
* @return string|string[]
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:1238
⧉public escapeLikeString($str): string|string[] Escape LIKE String
/**
* Escape LIKE String
*
* Calls the individual driver for platform
* specific escaping for LIKE conditions
*
* @param string|string[] $str
*
* @return string|string[]
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:1280
⧉public callFunction(string $functionName, $params): bool This function enables you to call PHP database functions that are not nativel...
/**
* This function enables you to call PHP database functions that are not natively included
* in CodeIgniter, in a platform independent manner.
*
* @param array ...$params
*
* @throws DatabaseException
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:1303
⧉public listTables(bool $constrainByPrefix = false): array|bool Returns an array of table names
/**
* Returns an array of table names
*
* @return array|bool
*
* @throws DatabaseException
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:1341
⧉public tableExists(string $tableName, bool $cached = true): bool Determine if a particular table exists
/**
* Determine if a particular table exists
*
* @param bool $cached Whether to use data cache
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:1391
⧉public getFieldNames(string $table): array|false Fetch Field Names
/**
* Fetch Field Names
*
* @return array|false
*
* @throws DatabaseException
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:1432
⧉public fieldExists(string $fieldName, string $tableName): bool Determine if a particular field exists
/**
* Determine if a particular field exists
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:1477
⧉public getFieldData(string $table): stdClass[] Returns an object with field data
/**
* Returns an object with field data
*
* @return stdClass[]
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:1487
⧉public getIndexData(string $table): array Returns an object with key data
/**
* Returns an object with key data
*
* @return array
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:1497
⧉public getForeignKeyData(string $table): array Returns an object with foreign key data
/**
* Returns an object with foreign key data
*
* @return array
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:1507
/**
* Enables foreign key checks temporarily.
*
* @return bool
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:1534
⧉public pretend(bool $pretend = true): $this Allows the engine to be set into a mode where queries are not actually execut...
/**
* Allows the engine to be set into a mode where queries are not
* actually executed, but they are still generated, timed, etc.
*
* This is primarily used by the prepared query functionality.
*
* @return $this
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:1554
⧉public resetDataCache(): $this Empties our data cache. Especially helpful during testing.
/**
* Empties our data cache. Especially helpful during testing.
*
* @return $this
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:1566
⧉public isWriteType($sql): bool Determines if the statement is a write-type query or not.
/**
* Determines if the statement is a write-type query or not.
*
* @param string $sql
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:1578
⧉public __get(string $key): mixed Accessor for properties if they exist.
/**
* Accessor for properties if they exist.
*
* @return mixed
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:1674
⧉public __isset(string $key): bool Checker for properties existence.
/**
* Checker for properties existence.
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:1686
⧉protected _close() Close the database connection.
/**
* Close the database connection.
*/
Defined in <ROOT>/social/Database/MySQLi/Connection.php:234
⧉protected execute(string $sql): bool|object Executes the query against the database.
/**
* Executes the query against the database.
*
* @return bool|object
*/
Defined in <ROOT>/social/Database/MySQLi/Connection.php:282
⧉protected prepQuery(string $sql): string Prep the query. If needed, each database adapter can prep the query string
/**
* Prep the query. If needed, each database adapter can prep the query string
*/
Defined in <ROOT>/social/Database/MySQLi/Connection.php:307
/**
* Platform-dependant string escape
*/
Defined in <ROOT>/social/Database/MySQLi/Connection.php:329
⧉protected _listTables(bool $prefixLimit = false, ?string $tableName = null): string Generates the SQL for listing tables in a platform-dependent manner. Uses esc...
/**
* Generates the SQL for listing tables in a platform-dependent manner.
* Uses escapeLikeStringDirect().
*
* @param string|null $tableName If $tableName is provided will return only this table if exists.
*/
Defined in <ROOT>/social/Database/MySQLi/Connection.php:374
⧉protected _listColumns(string $table = ''): string Generates a platform-specific query string so that the column names can be fe...
/**
* Generates a platform-specific query string so that the column names can be fetched.
*/
Defined in <ROOT>/social/Database/MySQLi/Connection.php:392
⧉protected _fieldData(string $table): array Returns an array of objects with field data
/**
* Returns an array of objects with field data
*
* @return stdClass[]
*
* @throws DatabaseException
*/
Defined in <ROOT>/social/Database/MySQLi/Connection.php:404
⧉protected _indexData(string $table): array Returns an array of objects with index data
/**
* Returns an array of objects with index data
*
* @return stdClass[]
*
* @throws DatabaseException
* @throws LogicException
*/
Defined in <ROOT>/social/Database/MySQLi/Connection.php:437
⧉protected _foreignKeyData(string $table): array Returns an array of objects with Foreign key data
/**
* Returns an array of objects with Foreign key data
*
* @return stdClass[]
*
* @throws DatabaseException
*/
Defined in <ROOT>/social/Database/MySQLi/Connection.php:482
/**
* Rollback Transaction
*/
Defined in <ROOT>/social/Database/MySQLi/Connection.php:601
⧉protected getDriverFunctionPrefix(): string Get the prefix of the function to access the DB.
/**
* Get the prefix of the function to access the DB.
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:1325
list => string (33) "CodeIgniter\Validation\Views\list"
single => string (35) "CodeIgniter\Validation\Views\single"
⧉public __construct() Will attempt to get environment variables with names that match the propertie...
/**
* Will attempt to get environment variables with names
* that match the properties of the child class.
*
* The "shortPrefix" is the lowercase-only config class name.
*/
Inherited from CodeIgniter\Config\BaseConfig
Defined in <ROOT>/social/Config/BaseConfig.php:60
/**
* Retrieve an environment-specific configuration setting
*
* @return string|null
*/
Inherited from CodeIgniter\Config\BaseConfig
Defined in <ROOT>/social/Config/BaseConfig.php:128
⧉protected registerProperties() Provides external libraries a simple way to register one or more options into...
/**
* Provides external libraries a simple way to register one or more
* options into a config file.
*
* @throws ReflectionException
*/
Inherited from CodeIgniter\Config\BaseConfig
Defined in <ROOT>/social/Config/BaseConfig.php:174
⧉public shouldDiscover(string $alias): bool Should the application auto-discover the requested resource.
/**
* Should the application auto-discover the requested resource.
*/
Inherited from CodeIgniter\Modules\Modules
Defined in <ROOT>/social/Modules/Modules.php:45
⧉public __construct() Merge the built-in and developer-configured filters and plugins, with prefere...
/**
* Merge the built-in and developer-configured filters and plugins,
* with preference to the developer ones.
*/
Inherited from CodeIgniter\Config\View
Defined in <ROOT>/social/Config/View.php:108
/**
* Retrieve an environment-specific configuration setting
*
* @return string|null
*/
Inherited from CodeIgniter\Config\BaseConfig
Defined in <ROOT>/social/Config/BaseConfig.php:128
⧉protected registerProperties() Provides external libraries a simple way to register one or more options into...
/**
* Provides external libraries a simple way to register one or more
* options into a config file.
*
* @throws ReflectionException
*/
Inherited from CodeIgniter\Config\BaseConfig
Defined in <ROOT>/social/Config/BaseConfig.php:174
⧉public shouldDiscover(string $alias): bool Should the application auto-discover the requested resource.
/**
* Should the application auto-discover the requested resource.
*/
Inherited from CodeIgniter\Modules\Modules
Defined in <ROOT>/social/Modules/Modules.php:45
⧉Answer => string (5209) "<p>In the sector of <strong>computer technological</strong> know-how, data s...
<p>In the sector of <strong>computer technological</strong> know-how, data systems play a critical function in organizing and storing statistics correctly. Two of the maximum usually used statistics structures are stacks and queues. While each are used to manage collections of information, they operate on special principles and are perfect for specific duties. Understanding the differences among them assist you to pick the proper records structure primarily based at the specific necessities of your <a href="https://en.wikipedia.org/wiki/Software">software</a>.</p>
<h2><strong>What is a Stack?</strong></h2>
<p><img alt="What is a Stack" border="0" hspace="0" src="https://i.postimg.cc/5txb50n2/1713414291257.png" style="border:0px solid black; height:406px; margin-bottom:0px; margin-left:0px; margin-right:0px; margin-top:0px; width:700px" vspace="0" /></p>
<p>A stack is a linear records shape that follows the Last In, First Out (LIFO) precept. In simpler terms, it manner that the most these days introduced item is the primary one to be eliminated. Imagine a stack of plates at a buffet: the remaining plate you location on pinnacle is the first one you’ll take off.</p>
<p><strong>Read Also: <a href="https://www.yourquorum.com/question/what-responsibilities-do-businesses-have-to-protect-customer-data-when-utilizing-ai-tools">What responsibilities do businesses have to protect customer data when utilizing AI tools?</a></strong></p>
<h3><strong>Operations on a Stack:</strong></h3>
<ul>
<li>Push: Adds an item to the top of the stack.</li>
<li>Pop: Removes the object from the top of the stack.</li>
<li>Peek/Top: Returns the object at the pinnacle of the stack with out putting off it.</li>
<li>IsEmpty: Checks if the stack is empty.</li>
<li>Example of a Stack:</li>
<li>Let’s bear in mind a stack of numbers:</li>
</ul>
<p>If you push 15 onto the stack, the stack turns<br />
If then you definately pop an detail, 15 may be eliminated, leaving the stack as [5, 8, 12].<br />
This feature makes stacks useful in situations wherein the most latest information is needed to be processed first, like in undo mechanisms in programs, function calls in programming languages, and parsing expressions in compilers.</p>
<h3><strong>What is a Queue?</strong></h3>
<p>A queue is another linear records structure, but it follows the First In, First Out (FIFO) principle. This manner that the first object introduced is the first one to be eliminated. Think of a queue at a grocery keep checkout: the primary man or woman in line is the first one to be served.</p>
<h3><strong>Real-World Applications:</strong></h3>
<h4><strong>Stack:</strong></h4>
<p>Function Calls in Programming: The machine makes use of a stack to manipulate feature calls. When a feature is referred to as, its context is pushed onto the stack. Once the feature completes, its context is popped off.</p>
<p>Expression Evaluation: Stacks are vital in comparing expressions like postfix (Reverse Polish notation). For instance, to assess the expression three four + five *, a stack can preserve intermediate results as operations are done.</p>
<p>Undo Mechanism: Many programs, like text editors, use stacks to put into effect the undo feature. Each action (e.G., typing a letter, deleting text) is pushed onto a stack, and undoing an action pops the maximum current one.</p>
<h4><strong>Queue:</strong></h4>
<p>Task Scheduling: In working structures, queues are used to manage the execution of techniques. The first method that arrives is the primary one to be performed (FIFO).</p>
<p><strong>You May Also Like: <a href="https://www.yourquorum.com/question/can-i-major-in-computer-science-with-no-coding-experience">Can I major in computer science with no coding experience?</a></strong></p>
<p>Data Streaming: Queues are used in managing records streams where records is processed within the order it arrives. For example, in networking, facts packets are processed within the order they come at the receiver.</p>
<p>Print Queue: In a network of computer systems, documents despatched to a printer are stored in a queue, ensuring that the primary record despatched is outlined first.</p>
<h4><strong>Conclusion</strong>:</h4>
<p>Both stacks and queues are essential statistics structures that assist us manipulate facts efficiently, each with its personal use instances. Stacks are awesome for dealing with data where the most current object is processed first (LIFO), while queues are perfect for processing statistics within the order it arrives (FIFO). By knowledge those statistics systems and their characteristics, builders can make informed choices on which one to apply for particular obligations, optimizing both overall performance and capability in software program development.</p>
<p>Choosing the proper information structure is an vital ability in laptop science, and understanding when to use a stack as opposed to a queue can assist streamline methods on your applications.</p>
<div id="gtx-trans" style="left:657px; position:absolute; top:56.3906px">
<div class="gtx-trans-icon"> </div>
</div>
/**
* Constructor
*
* @param array|string $tableName tablename or tablenames with or without aliases
*
* Examples of $tableName: `mytable`, `jobs j`, `jobs j, users u`, `['jobs j','users u']`
*
* @throws DatabaseException
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:280
⧉public db(): CodeIgniter\Database\ConnectionInterface Returns the current database connection
/**
* Returns the current database connection
*
* @return BaseConnection|ConnectionInterface
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:314
⧉public testMode(bool $mode = true): $this Sets a test mode status.
/**
* Sets a test mode status.
*
* @return $this
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:324
⧉public getTable(): string Gets the name of the primary table.
/**
* Gets the name of the primary table.
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:334
⧉public getBinds(): array Returns an array of bind values and their named parameters for binding in the...
/**
* Returns an array of bind values and their
* named parameters for binding in the Query object later.
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:343
⧉public ignore(bool $ignore = true): $this Ignore
/**
* Ignore
*
* Set ignore Flag for next insert,
* update or delete query.
*
* @return $this
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:356
⧉public select($select = '*', ?bool $escape = null): $this Generates the SELECT portion of the query
/**
* Generates the SELECT portion of the query
*
* @param array|RawSql|string $select
*
* @return $this
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:370
⧉public selectMax(string $select = '', string $alias = ''): $this Generates a SELECT MAX(field) portion of a query
/**
* Generates a SELECT MAX(field) portion of a query
*
* @return $this
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:416
⧉public selectMin(string $select = '', string $alias = ''): $this Generates a SELECT MIN(field) portion of a query
/**
* Generates a SELECT MIN(field) portion of a query
*
* @return $this
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:426
⧉public selectAvg(string $select = '', string $alias = ''): $this Generates a SELECT AVG(field) portion of a query
/**
* Generates a SELECT AVG(field) portion of a query
*
* @return $this
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:436
⧉public selectSum(string $select = '', string $alias = ''): $this Generates a SELECT SUM(field) portion of a query
/**
* Generates a SELECT SUM(field) portion of a query
*
* @return $this
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:446
⧉public selectCount(string $select = '', string $alias = ''): $this Generates a SELECT COUNT(field) portion of a query
/**
* Generates a SELECT COUNT(field) portion of a query
*
* @return $this
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:456
⧉public selectSubquery(CodeIgniter\Database\BaseBuilder $subquery, string $as): self Adds a subquery to the selection
/**
* Adds a subquery to the selection
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:464
⧉public distinct(bool $val = true): $this Sets a flag which tells the query string compiler to add DISTINCT
/**
* Sets a flag which tells the query string compiler to add DISTINCT
*
* @return $this
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:531
⧉public from($from, bool $overwrite = false): self Generates the FROM portion of the query
/**
* Generates the FROM portion of the query
*
* @param array|string $from
*
* @return $this
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:545
/**
* @param BaseBuilder $from Expected subquery
* @param string $alias Subquery alias
*
* @return $this
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:576
⧉public join(string $table, $cond, string $type = '', ?bool $escape = null): $this Generates the JOIN portion of the query
/**
* Generates the JOIN portion of the query
*
* @param RawSql|string $cond
*
* @return $this
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:593
⧉public where($key, $value = null, ?bool $escape = null): $this Generates the WHERE portion of the query. Separates multiple calls with 'AND'.
/**
* Generates the WHERE portion of the query.
* Separates multiple calls with 'AND'.
*
* @param array|RawSql|string $key
* @param mixed $value
*
* @return $this
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:672
⧉public orWhere($key, $value = null, ?bool $escape = null): $this OR WHERE
/**
* OR WHERE
*
* Generates the WHERE portion of the query.
* Separates multiple calls with 'OR'.
*
* @param array|RawSql|string $key
* @param mixed $value
* @param bool $escape
*
* @return $this
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:689
⧉public whereIn(?string $key = null, $values = null, ?bool $escape = null): $this Generates a WHERE field IN('item', 'item') SQL query, joined with 'AND' if ap...
/**
* Generates a WHERE field IN('item', 'item') SQL query,
* joined with 'AND' if appropriate.
*
* @param array|BaseBuilder|Closure|string $values The values searched on, or anonymous function with subquery
*
* @return $this
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:787
⧉public orWhereIn(?string $key = null, $values = null, ?bool $escape = null): $this Generates a WHERE field IN('item', 'item') SQL query, joined with 'OR' if app...
/**
* Generates a WHERE field IN('item', 'item') SQL query,
* joined with 'OR' if appropriate.
*
* @param array|BaseBuilder|Closure|string $values The values searched on, or anonymous function with subquery
*
* @return $this
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:800
⧉public whereNotIn(?string $key = null, $values = null, ?bool $escape = null): $this Generates a WHERE field NOT IN('item', 'item') SQL query, joined with 'AND' i...
/**
* Generates a WHERE field NOT IN('item', 'item') SQL query,
* joined with 'AND' if appropriate.
*
* @param array|BaseBuilder|Closure|string $values The values searched on, or anonymous function with subquery
*
* @return $this
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:813
⧉public orWhereNotIn(?string $key = null, $values = null, ?bool $escape = null): $this Generates a WHERE field NOT IN('item', 'item') SQL query, joined with 'OR' if...
/**
* Generates a WHERE field NOT IN('item', 'item') SQL query,
* joined with 'OR' if appropriate.
*
* @param array|BaseBuilder|Closure|string $values The values searched on, or anonymous function with subquery
*
* @return $this
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:826
⧉public havingIn(?string $key = null, $values = null, ?bool $escape = null): $this Generates a HAVING field IN('item', 'item') SQL query, joined with 'AND' if a...
/**
* Generates a HAVING field IN('item', 'item') SQL query,
* joined with 'AND' if appropriate.
*
* @param array|BaseBuilder|Closure|string $values The values searched on, or anonymous function with subquery
*
* @return $this
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:839
⧉public orHavingIn(?string $key = null, $values = null, ?bool $escape = null): $this Generates a HAVING field IN('item', 'item') SQL query, joined with 'OR' if ap...
/**
* Generates a HAVING field IN('item', 'item') SQL query,
* joined with 'OR' if appropriate.
*
* @param array|BaseBuilder|Closure|string $values The values searched on, or anonymous function with subquery
*
* @return $this
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:852
⧉public havingNotIn(?string $key = null, $values = null, ?bool $escape = null): $this Generates a HAVING field NOT IN('item', 'item') SQL query, joined with 'AND' ...
/**
* Generates a HAVING field NOT IN('item', 'item') SQL query,
* joined with 'AND' if appropriate.
*
* @param array|BaseBuilder|Closure|string $values The values searched on, or anonymous function with subquery
*
* @return $this
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:865
⧉public orHavingNotIn(?string $key = null, $values = null, ?bool $escape = null): $this Generates a HAVING field NOT IN('item', 'item') SQL query, joined with 'OR' i...
/**
* Generates a HAVING field NOT IN('item', 'item') SQL query,
* joined with 'OR' if appropriate.
*
* @param array|BaseBuilder|Closure|string $values The values searched on, or anonymous function with subquery
*
* @return $this
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:878
⧉public like($field, string $match = '', string $side = 'both', ?bool $escape = null, bool $insensitiveSearch = false): $this Generates a %LIKE% portion of the query. Separates multiple calls with 'AND'.
/**
* Generates a %LIKE% portion of the query.
* Separates multiple calls with 'AND'.
*
* @param array|RawSql|string $field
*
* @return $this
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:954
⧉public notLike($field, string $match = '', string $side = 'both', ?bool $escape = null, bool $insensitiveSearch = false): $this Generates a NOT LIKE portion of the query. Separates multiple calls with 'AND'.
/**
* Generates a NOT LIKE portion of the query.
* Separates multiple calls with 'AND'.
*
* @param array|RawSql|string $field
*
* @return $this
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:967
⧉public orLike($field, string $match = '', string $side = 'both', ?bool $escape = null, bool $insensitiveSearch = false): $this Generates a %LIKE% portion of the query. Separates multiple calls with 'OR'.
/**
* Generates a %LIKE% portion of the query.
* Separates multiple calls with 'OR'.
*
* @param array|RawSql|string $field
*
* @return $this
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:980
⧉public orNotLike($field, string $match = '', string $side = 'both', ?bool $escape = null, bool $insensitiveSearch = false): $this Generates a NOT LIKE portion of the query. Separates multiple calls with 'OR'.
/**
* Generates a NOT LIKE portion of the query.
* Separates multiple calls with 'OR'.
*
* @param array|RawSql|string $field
*
* @return $this
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:993
⧉public havingLike($field, string $match = '', string $side = 'both', ?bool $escape = null, bool $insensitiveSearch = false): $this Generates a %LIKE% portion of the query. Separates multiple calls with 'AND'.
/**
* Generates a %LIKE% portion of the query.
* Separates multiple calls with 'AND'.
*
* @param array|RawSql|string $field
*
* @return $this
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:1006
⧉public notHavingLike($field, string $match = '', string $side = 'both', ?bool $escape = null, bool $insensitiveSearch = false): $this Generates a NOT LIKE portion of the query. Separates multiple calls with 'AND'.
/**
* Generates a NOT LIKE portion of the query.
* Separates multiple calls with 'AND'.
*
* @param array|RawSql|string $field
*
* @return $this
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:1019
⧉public orHavingLike($field, string $match = '', string $side = 'both', ?bool $escape = null, bool $insensitiveSearch = false): $this Generates a %LIKE% portion of the query. Separates multiple calls with 'OR'.
/**
* Generates a %LIKE% portion of the query.
* Separates multiple calls with 'OR'.
*
* @param array|RawSql|string $field
*
* @return $this
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:1032
⧉public orNotHavingLike($field, string $match = '', string $side = 'both', ?bool $escape = null, bool $insensitiveSearch = false): $this Generates a NOT LIKE portion of the query. Separates multiple calls with 'OR'.
/**
* Generates a NOT LIKE portion of the query.
* Separates multiple calls with 'OR'.
*
* @param array|RawSql|string $field
*
* @return $this
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:1045
⧉public union($union): $this Add UNION statement
/**
* Add UNION statement
*
* @param BaseBuilder|Closure $union
*
* @return $this
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:1155
⧉public unionAll($union): $this Add UNION ALL statement
/**
* Add UNION ALL statement
*
* @param BaseBuilder|Closure $union
*
* @return $this
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:1167
⧉public groupStart(): $this Starts a query group.
/**
* Starts a query group.
*
* @return $this
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:1195
⧉public orGroupStart(): $this Starts a query group, but ORs the group
/**
* Starts a query group, but ORs the group
*
* @return $this
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:1205
⧉public notGroupStart(): $this Starts a query group, but NOTs the group
/**
* Starts a query group, but NOTs the group
*
* @return $this
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:1215
⧉public orNotGroupStart(): $this Starts a query group, but OR NOTs the group
/**
* Starts a query group, but OR NOTs the group
*
* @return $this
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:1225
⧉public groupEnd(): $this Ends a query group
/**
* Ends a query group
*
* @return $this
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:1235
⧉public havingGroupStart(): $this Starts a query group for HAVING clause.
/**
* Starts a query group for HAVING clause.
*
* @return $this
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:1245
⧉public orHavingGroupStart(): $this Starts a query group for HAVING clause, but ORs the group.
/**
* Starts a query group for HAVING clause, but ORs the group.
*
* @return $this
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:1255
⧉public notHavingGroupStart(): $this Starts a query group for HAVING clause, but NOTs the group.
/**
* Starts a query group for HAVING clause, but NOTs the group.
*
* @return $this
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:1265
⧉public orNotHavingGroupStart(): $this Starts a query group for HAVING clause, but OR NOTs the group.
/**
* Starts a query group for HAVING clause, but OR NOTs the group.
*
* @return $this
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:1275
⧉public havingGroupEnd(): $this Ends a query group for HAVING clause.
/**
* Ends a query group for HAVING clause.
*
* @return $this
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:1285
⧉public groupBy($by, ?bool $escape = null): $this
/**
* @param array|string $by
*
* @return $this
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:1351
/**
* @param string $direction ASC, DESC or RANDOM
*
* @return $this
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:1408
/**
* @return $this
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:1460
⧉public offset(int $offset): $this Sets the OFFSET value
/**
* Sets the OFFSET value
*
* @return $this
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:1478
⧉public set($key, $value = '', ?bool $escape = null): $this Allows key/value pairs to be set for insert(), update() or replace().
/**
* Allows key/value pairs to be set for insert(), update() or replace().
*
* @param array|object|string $key Field name, or an array of field/value pairs
* @param mixed $value Field value, if $key is a single field
* @param bool|null $escape Whether to escape values
*
* @return $this
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:1504
⧉public getSetData(bool $clean = false): array Returns the previously set() data, alternatively resetting it if needed.
/**
* Returns the previously set() data, alternatively resetting it if needed.
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:1530
⧉public getCompiledSelect(bool $reset = true): string Compiles a SELECT query string and returns the sql.
/**
* Compiles a SELECT query string and returns the sql.
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:1544
⧉public get(?int $limit = null, int $offset0, bool $reset = true): false|ResultInterface Compiles the select statement based on the other functions called and runs th...
/**
* Compiles the select statement based on the other functions called
* and runs the query
*
* @return false|ResultInterface
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:1577
⧉public countAll(bool $reset = true): int|string Generates a platform-specific query string that counts all records in the par...
/**
* Generates a platform-specific query string that counts all records in
* the particular table
*
* @return int|string
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:1603
⧉public countAllResults(bool $reset = true): int|string Generates a platform-specific query string that counts all records returned b...
/**
* Generates a platform-specific query string that counts all records
* returned by an Query Builder query.
*
* @return int|string
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:1635
⧉public getCompiledQBWhere(): array Compiles the set conditions and returns the sql statement
/**
* Compiles the set conditions and returns the sql statement
*
* @return array
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:1694
⧉public getWhere($where = null, ?int $limit = null, ?int $offset0, bool $reset = true): ResultInterface Allows the where clause, limit and offset to be added directly
/**
* Allows the where clause, limit and offset to be added directly
*
* @param array|string $where
*
* @return ResultInterface
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:1706
⧉public insertBatch(?array $set = null, ?bool $escape = null, int $batchSize = 100): false|int|string[] Number of rows inserted or FALSE on failure, SQL array when testMode Compiles batch insert strings and runs the queries
/**
* Compiles batch insert strings and runs the queries
*
* @return false|int|string[] Number of rows inserted or FALSE on failure, SQL array when testMode
*
* @throws DatabaseException
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:1737
⧉public setInsertBatch($key, string $value = '', ?bool $escape = null): $this|null Allows key/value pairs to be set for batch inserts
/**
* Allows key/value pairs to be set for batch inserts
*
* @param mixed $key
*
* @return $this|null
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:1810
⧉public getCompiledInsert(bool $reset = true): bool|string Compiles an insert query and returns the sql
/**
* Compiles an insert query and returns the sql
*
* @return bool|string
*
* @throws DatabaseException
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:1859
⧉public insert($set = null, ?bool $escape = null): bool Compiles an insert string and runs the query
/**
* Compiles an insert string and runs the query
*
* @param array|object|null $set
*
* @return bool
*
* @throws DatabaseException
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:1892
⧉public replace(?array $set = null): BaseResult|false|Query|string Compiles a replace into string and runs the query
/**
* Compiles a replace into string and runs the query
*
* @return BaseResult|false|Query|string
*
* @throws DatabaseException
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:1982
⧉public getCompiledUpdate(bool $reset = true): bool|string Compiles an update query and returns the sql
/**
* Compiles an update query and returns the sql
*
* @return bool|string
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:2029
⧉public update($set = null, $where = null, ?int $limit = null): bool Compiles an update string and runs the query.
/**
* Compiles an update string and runs the query.
*
* @param array|object|null $set
* @param array|RawSql|string|null $where
*
* @throws DatabaseException
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:2052
⧉public updateBatch(?array $set = null, ?string $index = null, int $batchSize = 100): false|int|string[] Number of rows affected or FALSE on failure, SQL array when testMode Compiles an update string and runs the query
/**
* Compiles an update string and runs the query
*
* @return false|int|string[] Number of rows affected or FALSE on failure, SQL array when testMode
*
* @throws DatabaseException
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:2138
⧉public setUpdateBatch($key, string $index = '', ?bool $escape = null): $this|null Allows key/value pairs to be set for batch updating
/**
* Allows key/value pairs to be set for batch updating
*
* @param array|object $key
*
* @return $this|null
*
* @throws DatabaseException
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:2249
⧉public emptyTable(): bool|string TRUE on success, FALSE on failure, string on testMode Compiles a delete string and runs "DELETE FROM table"
/**
* Compiles a delete string and runs "DELETE FROM table"
*
* @return bool|string TRUE on success, FALSE on failure, string on testMode
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:2289
⧉public truncate(): bool|string TRUE on success, FALSE on failure, string on testMode Compiles a truncate string and runs the query If the database does not suppor...
/**
* Compiles a truncate string and runs the query
* If the database does not support the truncate() command
* This function maps to "DELETE FROM table"
*
* @return bool|string TRUE on success, FALSE on failure, string on testMode
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:2311
⧉public getCompiledDelete(bool $reset = true): string Compiles a delete query string and returns the sql
/**
* Compiles a delete query string and returns the sql
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:2340
⧉public delete($where = '', ?int $limit = null, bool $resetData = true): bool|string Returns a string if in test mode. Compiles a delete string and runs the query
/**
* Compiles a delete string and runs the query
*
* @param mixed $where
*
* @return bool|string Returns a string if in test mode.
*
* @throws DatabaseException
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:2357
⧉public increment(string $column, int $value = 1): bool Increments a numeric column by the specified value.
/**
* Increments a numeric column by the specified value.
*
* @return bool
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:2399
⧉public decrement(string $column, int $value = 1): bool Decrements a numeric column by the specified value.
/**
* Decrements a numeric column by the specified value.
*
* @return bool
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:2419
⧉public resetQuery(): $this Publicly-visible method to reset the QB values.
/**
* Publicly-visible method to reset the QB values.
*
* @return $this
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:2772
⧉protected _fromTables(): string FROM tables
/**
* FROM tables
*
* Groups tables in FROM clauses if needed, so there is no confusion
* about operator precedence.
*
* Note: This is only used (and overridden) by MySQL.
*/
Defined in <ROOT>/social/Database/MySQLi/Builder.php:48
⧉protected createAliasFromTable(string $item): string Determines the alias name based on the table
/**
* Determines the alias name based on the table
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:515
/**
* Platform independent LIKE statement builder.
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:1139
/**
* @used-by union()
* @used-by unionAll()
*
* @param BaseBuilder|Closure $union
*
* @return $this
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:1180
⧉protected groupStartPrepare(string $not = '', string $type = 'AND ', string $clause = 'QBWhere'): $this Prepate a query group start.
/**
* Prepate a query group start.
*
* @return $this
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:1295
⧉protected groupEndPrepare(string $clause = 'QBWhere'): $this Prepate a query group end.
/**
* Prepate a query group end.
*
* @return $this
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:1316
⧉protected groupGetType(string $type): string
/**
* @used-by groupStart()
* @used-by _like()
* @used-by whereHaving()
* @used-by _whereIn()
* @used-by havingGroupStart()
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:1336
/**
* Generates a platform-specific LIMIT clause.
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:1490
⧉protected compileFinalQuery(string $sql): string Returns a finalized, compiled query string with the bindings inserted and pre...
/**
* Returns a finalized, compiled query string with the bindings
* inserted and prefixes swapped out.
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:1559
⧉protected _insertBatch(string $table, array $keys, array $values): string Generates a platform-specific insert string from the supplied data.
/**
* Generates a platform-specific insert string from the supplied data.
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:1798
⧉protected removeAlias(string $from): string
/**
* @internal This is a temporary solution.
*
* @see https://github.com/codeigniter4/CodeIgniter4/pull/5376
*
* @TODO Fix a root cause, and this method should be removed.
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:1934
⧉protected validateInsert(): bool This method is used by both insert() and getCompiledInsert() to validate that...
/**
* This method is used by both insert() and getCompiledInsert() to
* validate that the there data is actually being set and that table
* has been chosen to be inserted into.
*
* @throws DatabaseException
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:1954
⧉protected _insert(string $table, array $keys, array $unescapedKeys): string Generates a platform-specific insert string from the supplied data
/**
* Generates a platform-specific insert string from the supplied data
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:1970
⧉protected _replace(string $table, array $keys, array $values): string Generates a platform-specific replace string from the supplied data
/**
* Generates a platform-specific replace string from the supplied data
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:2008
⧉protected _update(string $table, array $values): string Generates a platform-specific update string from the supplied data
/**
* Generates a platform-specific update string from the supplied data
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:2097
⧉protected validateUpdate(): bool This method is used by both update() and getCompiledUpdate() to validate that...
/**
* This method is used by both update() and getCompiledUpdate() to
* validate that data is actually being set and that a table has been
* chosen to be update.
*
* @throws DatabaseException
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:2118
⧉protected _updateBatch(string $table, array $values, string $index): string Generates a platform-specific batch update string from the supplied data
/**
* Generates a platform-specific batch update string from the supplied data
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:2212
⧉protected _truncate(string $table): string Generates a platform-specific truncate string from the supplied data
/**
* Generates a platform-specific truncate string from the supplied data
*
* If the database does not support the truncate() command,
* then this method maps to 'DELETE FROM table'
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:2332
⧉protected _delete(string $table): string Generates a platform-specific delete string from the supplied data
/**
* Generates a platform-specific delete string from the supplied data
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:2437
⧉protected trackAliases($table): string|void Used to track SQL statements written with aliased tables.
/**
* Used to track SQL statements written with aliased tables.
*
* @param array|string $table The table to inspect
*
* @return string|void
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:2449
⧉protected compileSelect($selectOverride = false): string Compile the SELECT statement
/**
* Compile the SELECT statement
*
* Generates a query string based on which functions were used.
* Should not be called directly.
*
* @param mixed $selectOverride
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:2486
⧉protected compileIgnore(string $statement): string Checks if the ignore option is supported by the Database Driver for the speci...
/**
* Checks if the ignore option is supported by
* the Database Driver for the specific statement.
*
* @return string
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:2536
⧉protected compileWhereHaving(string $qbKey): string Escapes identifiers in WHERE and HAVING statements at execution time.
/**
* Escapes identifiers in WHERE and HAVING statements at execution time.
*
* Required so that aliases are tracked properly, regardless of whether
* where(), orWhere(), having(), orHaving are called prior to from(),
* join() and prefixTable is added only if needed.
*
* @param string $qbKey 'QBWhere' or 'QBHaving'
*
* @return string SQL statement
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:2556
⧉protected compileGroupBy(): string Escapes identifiers in GROUP BY statements at execution time.
/**
* Escapes identifiers in GROUP BY statements at execution time.
*
* Required so that aliases are tracked properly, regardless of whether
* groupBy() is called prior to from(), join() and prefixTable is added
* only if needed.
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:2634
⧉protected compileOrderBy(): string Escapes identifiers in ORDER BY statements at execution time.
/**
* Escapes identifiers in ORDER BY statements at execution time.
*
* Required so that aliases are tracked properly, regardless of whether
* orderBy() is called prior to from(), join() and prefixTable is added
* only if needed.
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:2661
⧉protected unionInjection(string $sql): string
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:2682
⧉protected objectToArray($object): array Takes an object as input and converts the class variables to array key/vals
/**
* Takes an object as input and converts the class variables to array key/vals
*
* @param object $object
*
* @return array
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:2700
⧉protected batchObjectToArray($object): array Takes an object as input and converts the class variables to array key/vals
/**
* Takes an object as input and converts the class variables to array key/vals
*
* @param object $object
*
* @return array
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:2724
⧉protected isLiteral(string $str): bool Determines if a string represents a literal value or a field name
/**
* Determines if a string represents a literal value or a field name
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:2748
⧉protected resetRun(array $qbResetItems) Resets the query builder values. Called by the get() function
/**
* Resets the query builder values. Called by the get() function
*
* @param array $qbResetItems An array of fields to reset
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:2785
⧉protected resetSelect() Resets the query builder values. Called by the get() function
/**
* Resets the query builder values. Called by the get() function
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:2795
⧉protected resetWrite() Resets the query builder "write" values.
/**
* Resets the query builder "write" values.
*
* Called by the insert() update() insertBatch() updateBatch() and delete() functions
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:2826
⧉protected hasOperator(string $str): bool Tests whether the string has an SQL operator
/**
* Tests whether the string has an SQL operator
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:2842
/**
* Returns the SQL string operator
*
* @return mixed
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:2855
⧉protected setBind(string $key, $value = null, bool $escape = true): string Stores a bind value after ensuring that it's unique. While it might be nicer ...
/**
* Stores a bind value after ensuring that it's unique.
* While it might be nicer to have named keys for our binds array
* with PHP 7+ we get a huge memory/performance gain with indexed
* arrays instead, so lets take advantage of that here.
*
* @param mixed $value
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:2892
⧉protected cleanClone(): $this Returns a clone of a Base Builder with reset query builder values.
/**
* Returns a clone of a Base Builder with reset query builder values.
*
* @return $this
*
* @deprecated
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:2924
⧉protected isSubquery($value): bool
/**
* @param mixed $value
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:2932
/**
* @param BaseBuilder|Closure $builder
* @param bool $wrapped Wrap the subquery in brackets
* @param string $alias Subquery alias
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:2942
⧉public connect(bool $persistent = false): mixed Connect to the database.
/**
* Connect to the database.
*
* @return mixed
*
* @throws DatabaseException
*/
Defined in <ROOT>/social/Database/MySQLi/Connection.php:79
⧉public reconnect() Keep or establish the connection if no queries have been sent for a length of...
/**
* Keep or establish the connection if no queries have been sent for
* a length of time exceeding the server's idle timeout.
*/
Defined in <ROOT>/social/Database/MySQLi/Connection.php:225
⧉public setDatabase(string $databaseName): bool Select a specific database table to use.
/**
* Select a specific database table to use.
*/
Defined in <ROOT>/social/Database/MySQLi/Connection.php:242
⧉public getVersion(): string Returns a string containing the version of the database being used.
/**
* Returns a string containing the version of the database being used.
*/
Defined in <ROOT>/social/Database/MySQLi/Connection.php:264
⧉public affectedRows(): int Returns the total number of rows affected by this query.
/**
* Returns the total number of rows affected by this query.
*/
Defined in <ROOT>/social/Database/MySQLi/Connection.php:321
⧉public escapeLikeStringDirect($str): string|string[] Escape Like String Direct There are a few instances where MySQLi queries cann...
/**
* Escape Like String Direct
* There are a few instances where MySQLi queries cannot take the
* additional "ESCAPE x" parameter for specifying the escape character
* in "LIKE" strings, and this handles those directly with a backslash.
*
* @param string|string[] $str Input string
*
* @return string|string[]
*/
Defined in <ROOT>/social/Database/MySQLi/Connection.php:348
⧉public error(): array Returns the last error code and message. Must return this format: ['code' => ...
/**
* Returns the last error code and message.
* Must return this format: ['code' => string|int, 'message' => string]
* intval(code) === 0 means "no error".
*
* @return array<string, int|string>
*/
Defined in <ROOT>/social/Database/MySQLi/Connection.php:551
⧉public insertID(): int Insert ID
/**
* Insert ID
*/
Defined in <ROOT>/social/Database/MySQLi/Connection.php:569
/**
* Saves our connection settings.
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:336
⧉public initialize(): mixed Initializes the database connection/settings.
/**
* Initializes the database connection/settings.
*
* @return mixed
*
* @throws DatabaseException
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:365
⧉public close() Close the database connection.
/**
* Close the database connection.
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:432
⧉public persistentConnect(): mixed Create a persistent database connection.
/**
* Create a persistent database connection.
*
* @return mixed
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:452
⧉public getConnection(?string $alias = null): mixed Returns the actual connection object. If both a 'read' and 'write' connection...
/**
* Returns the actual connection object. If both a 'read' and 'write'
* connection has been specified, you can pass either term in to
* get that connection. If you pass either alias in and only a single
* connection is present, it must return the sole connection.
*
* @return mixed
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:465
⧉public getDatabase(): string Returns the name of the current database being used.
/**
* Returns the name of the current database being used.
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:474
⧉public setPrefix(string $prefix = ''): string Set DB Prefix
/**
* Set DB Prefix
*
* Set's the DB Prefix to something new without needing to reconnect
*
* @param string $prefix The prefix
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:486
⧉public getPrefix(): string Returns the database prefix.
/**
* Returns the database prefix.
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:494
⧉public getPlatform(): string The name of the platform in use (MySQLi, Postgre, SQLite3, OCI8, etc)
/**
* The name of the platform in use (MySQLi, Postgre, SQLite3, OCI8, etc)
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:502
⧉public setAliasedTables(array $aliases): $this Sets the Table Aliases to use. These are typically collected during use of th...
/**
* Sets the Table Aliases to use. These are typically
* collected during use of the Builder, and set here
* so queries are built correctly.
*
* @return $this
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:514
⧉public addTableAlias(string $table): $this Add a table alias to our list.
/**
* Add a table alias to our list.
*
* @return $this
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:526
⧉public query(string $sql, $binds = null, bool $setEscapeFlags = true, string $queryClass = ''): BaseResult|bool|Query BaseResult when “read” type query, bool when “write” type query, Query when prepared query Orchestrates a query against the database. Queries must use Database\Statemen...
/**
* Orchestrates a query against the database. Queries must use
* Database\Statement objects to store the query and build it.
* This method works with the cache.
*
* Should automatically handle different connections for read/write
* queries if needed.
*
* @param mixed ...$binds
*
* @return BaseResult|bool|Query BaseResult when “read” type query, bool when “write” type query, Query when prepared query
*
* @todo BC set $queryClass default as null in 4.1
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:556
⧉public simpleQuery(string $sql): mixed Performs a basic query against the database. No binding or caching is perform...
/**
* Performs a basic query against the database. No binding or caching
* is performed, nor are transactions handled. Simply takes a raw
* query string and returns the database-specific result id.
*
* @return mixed
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:660
⧉public transOff() Disable Transactions
/**
* Disable Transactions
*
* This permits transactions to be disabled at run-time.
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:674
/**
* Enable/disable Transaction Strict Mode
*
* When strict mode is enabled, if you are running multiple groups of
* transactions, if one group fails all subsequent groups will be
* rolled back.
*
* If strict mode is disabled, each group is treated autonomously,
* meaning a failure of one group will not affect any others
*
* @param bool $mode = true
*
* @return $this
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:693
/**
* Complete Transaction
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:715
⧉public transStatus(): bool Lets you retrieve the transaction flag to determine if it has failed
/**
* Lets you retrieve the transaction flag to determine if it has failed
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:741
⧉public transBegin(bool $testMode = false): bool Begin Transaction
/**
* Begin Transaction
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:749
⧉public transCommit(): bool Commit Transaction
/**
* Commit Transaction
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:783
/**
* Rollback Transaction
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:802
⧉public table($tableName): BaseBuilder Returns a non-shared new instance of the query builder for this connection.
/**
* Returns a non-shared new instance of the query builder for this connection.
*
* @param array|string $tableName
*
* @return BaseBuilder
*
* @throws DatabaseException
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:842
⧉public newQuery(): CodeIgniter\Database\BaseBuilder Returns a new instance of the BaseBuilder class with a cleared FROM clause.
/**
* Returns a new instance of the BaseBuilder class with a cleared FROM clause.
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:856
⧉public prepare(Closure $func, array $options = array()): BasePreparedQuery|null Creates a prepared statement with the database that can then be used to execu...
/**
* Creates a prepared statement with the database that can then
* be used to execute multiple statements against. Within the
* closure, you would build the query in any normal way, though
* the Query Builder is the expected manner.
*
* Example:
* $stmt = $db->prepare(function($db)
* {
* return $db->table('users')
* ->where('id', 1)
* ->get();
* })
*
* @return BasePreparedQuery|null
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:882
⧉public getLastQuery(): Query Returns the last query's statement object.
/**
* Returns the last query's statement object.
*
* @return Query
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:910
⧉public showLastQuery(): string Returns a string representation of the last query's statement object.
/**
* Returns a string representation of the last query's statement object.
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:918
⧉public getConnectStart(): ?float Returns the time we started to connect to this database in seconds with micro...
/**
* Returns the time we started to connect to this database in
* seconds with microseconds.
*
* Used by the Debug Toolbar's timeline.
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:929
⧉public getConnectDuration(int $decimals = 6): string Returns the number of seconds with microseconds that it took to connect to th...
/**
* Returns the number of seconds with microseconds that it took
* to connect to the database.
*
* Used by the Debug Toolbar's timeline.
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:940
/**
* Protect Identifiers
*
* This function is used extensively by the Query Builder class, and by
* a couple functions in this class.
* It takes a column or table name (optionally with an alias) and inserts
* the table prefix onto it. Some logic is necessary in order to deal with
* column names that include the path. Consider a query like this:
*
* SELECT hostname.database.table.column AS c FROM hostname.database.table
*
* Or a query with aliasing:
*
* SELECT m.member_id, m.member_name FROM members AS m
*
* Since the column name can include up to four segments (host, DB, table, column)
* or also have an alias prefix, we need to do a bit of work to figure this out and
* insert the table prefix (if it exists) in the proper position, and escape only
* the correct identifiers.
*
* @param array|string $item
* @param bool $prefixSingle Prefix a table name with no segments?
* @param bool $protectIdentifiers Protect table or column names?
* @param bool $fieldExists Supplied $item contains a column name?
*
* @return array|string
* @phpstan-return ($item is array ? array : string)
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:973
⧉public escapeIdentifiers($item): array|string Escape the SQL Identifiers
/**
* Escape the SQL Identifiers
*
* This function escapes column and table names
*
* @param array|string $item
*
* @return array|string
* @phpstan-return ($item is array ? array : string)
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:1130
⧉public prefixTable(string $table = ''): string Prepends a database prefix if one exists in configuration
/**
* Prepends a database prefix if one exists in configuration
*
* @throws DatabaseException
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:1188
/**
* Escape String
*
* @param string|string[] $str Input string
* @param bool $like Whether or not the string will be used in a LIKE condition
*
* @return string|string[]
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:1238
⧉public escapeLikeString($str): string|string[] Escape LIKE String
/**
* Escape LIKE String
*
* Calls the individual driver for platform
* specific escaping for LIKE conditions
*
* @param string|string[] $str
*
* @return string|string[]
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:1280
⧉public callFunction(string $functionName, $params): bool This function enables you to call PHP database functions that are not nativel...
/**
* This function enables you to call PHP database functions that are not natively included
* in CodeIgniter, in a platform independent manner.
*
* @param array ...$params
*
* @throws DatabaseException
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:1303
⧉public listTables(bool $constrainByPrefix = false): array|bool Returns an array of table names
/**
* Returns an array of table names
*
* @return array|bool
*
* @throws DatabaseException
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:1341
⧉public tableExists(string $tableName, bool $cached = true): bool Determine if a particular table exists
/**
* Determine if a particular table exists
*
* @param bool $cached Whether to use data cache
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:1391
⧉public getFieldNames(string $table): array|false Fetch Field Names
/**
* Fetch Field Names
*
* @return array|false
*
* @throws DatabaseException
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:1432
⧉public fieldExists(string $fieldName, string $tableName): bool Determine if a particular field exists
/**
* Determine if a particular field exists
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:1477
⧉public getFieldData(string $table): stdClass[] Returns an object with field data
/**
* Returns an object with field data
*
* @return stdClass[]
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:1487
⧉public getIndexData(string $table): array Returns an object with key data
/**
* Returns an object with key data
*
* @return array
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:1497
⧉public getForeignKeyData(string $table): array Returns an object with foreign key data
/**
* Returns an object with foreign key data
*
* @return array
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:1507
/**
* Enables foreign key checks temporarily.
*
* @return bool
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:1534
⧉public pretend(bool $pretend = true): $this Allows the engine to be set into a mode where queries are not actually execut...
/**
* Allows the engine to be set into a mode where queries are not
* actually executed, but they are still generated, timed, etc.
*
* This is primarily used by the prepared query functionality.
*
* @return $this
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:1554
⧉public resetDataCache(): $this Empties our data cache. Especially helpful during testing.
/**
* Empties our data cache. Especially helpful during testing.
*
* @return $this
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:1566
⧉public isWriteType($sql): bool Determines if the statement is a write-type query or not.
/**
* Determines if the statement is a write-type query or not.
*
* @param string $sql
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:1578
⧉public __get(string $key): mixed Accessor for properties if they exist.
/**
* Accessor for properties if they exist.
*
* @return mixed
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:1674
⧉public __isset(string $key): bool Checker for properties existence.
/**
* Checker for properties existence.
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:1686
⧉protected _close() Close the database connection.
/**
* Close the database connection.
*/
Defined in <ROOT>/social/Database/MySQLi/Connection.php:234
⧉protected execute(string $sql): bool|object Executes the query against the database.
/**
* Executes the query against the database.
*
* @return bool|object
*/
Defined in <ROOT>/social/Database/MySQLi/Connection.php:282
⧉protected prepQuery(string $sql): string Prep the query. If needed, each database adapter can prep the query string
/**
* Prep the query. If needed, each database adapter can prep the query string
*/
Defined in <ROOT>/social/Database/MySQLi/Connection.php:307
/**
* Platform-dependant string escape
*/
Defined in <ROOT>/social/Database/MySQLi/Connection.php:329
⧉protected _listTables(bool $prefixLimit = false, ?string $tableName = null): string Generates the SQL for listing tables in a platform-dependent manner. Uses esc...
/**
* Generates the SQL for listing tables in a platform-dependent manner.
* Uses escapeLikeStringDirect().
*
* @param string|null $tableName If $tableName is provided will return only this table if exists.
*/
Defined in <ROOT>/social/Database/MySQLi/Connection.php:374
⧉protected _listColumns(string $table = ''): string Generates a platform-specific query string so that the column names can be fe...
/**
* Generates a platform-specific query string so that the column names can be fetched.
*/
Defined in <ROOT>/social/Database/MySQLi/Connection.php:392
⧉protected _fieldData(string $table): array Returns an array of objects with field data
/**
* Returns an array of objects with field data
*
* @return stdClass[]
*
* @throws DatabaseException
*/
Defined in <ROOT>/social/Database/MySQLi/Connection.php:404
⧉protected _indexData(string $table): array Returns an array of objects with index data
/**
* Returns an array of objects with index data
*
* @return stdClass[]
*
* @throws DatabaseException
* @throws LogicException
*/
Defined in <ROOT>/social/Database/MySQLi/Connection.php:437
⧉protected _foreignKeyData(string $table): array Returns an array of objects with Foreign key data
/**
* Returns an array of objects with Foreign key data
*
* @return stdClass[]
*
* @throws DatabaseException
*/
Defined in <ROOT>/social/Database/MySQLi/Connection.php:482
/**
* Rollback Transaction
*/
Defined in <ROOT>/social/Database/MySQLi/Connection.php:601
⧉protected getDriverFunctionPrefix(): string Get the prefix of the function to access the DB.
/**
* Get the prefix of the function to access the DB.
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:1325
/**
* Runs the validation process, returning true/false determining whether
* validation was successful or not.
*
* @param array|null $data The array of data to validate.
* @param string|null $group The predefined group of rules to apply.
* @param string|null $dbGroup The database group to use.
*/
Defined in <ROOT>/social/Validation/Validation.php:109
⧉public check($value, string $rule, array $errors = array()): bool Runs the validation process, returning true or false determining whether vali...
/**
* Runs the validation process, returning true or false
* determining whether validation was successful or not.
*
* @param array|bool|float|int|object|string|null $value
* @param string[] $errors
*/
Defined in <ROOT>/social/Validation/Validation.php:189
⧉public withRequest(CodeIgniter\HTTP\RequestInterface $request): CodeIgniter\Validation\ValidationInterface Takes a Request object and grabs the input data to use from its array values.
/**
* Takes a Request object and grabs the input data to use from its
* array values.
*/
Defined in <ROOT>/social/Validation/Validation.php:386
⧉public setRule(string $field, ?string $label, $rules, array $errors = array()): $this Sets an individual rule and custom error messages for a single field.
/**
* Sets an individual rule and custom error messages for a single field.
*
* The custom error message should be just the messages that apply to
* this field, like so:
*
* [
* 'rule' => 'message',
* 'rule' => 'message'
* ]
*
* @param array|string $rules
*
* @return $this
*
* @throws TypeError
*/
Defined in <ROOT>/social/Validation/Validation.php:423
⧉public setRules(array $rules, array $errors = array()): CodeIgniter\Validation\ValidationInterface Stores the rules that should be used to validate the items. Rules should be a...
/**
* Stores the rules that should be used to validate the items.
* Rules should be an array formatted like:
*
* [
* 'field' => 'rule1|rule2'
* ]
*
* The $errors array should be formatted like:
* [
* 'field' => [
* 'rule' => 'message',
* 'rule' => 'message
* ],
* ]
*
* @param array $errors // An array of custom error messages
*/
Defined in <ROOT>/social/Validation/Validation.php:463
⧉public getRules(): array Returns all of the rules currently defined.
/**
* Returns all of the rules currently defined.
*/
Defined in <ROOT>/social/Validation/Validation.php:490
⧉public hasRule(string $field): bool Checks to see if the rule for key $field has been set or not.
/**
* Checks to see if the rule for key $field has been set or not.
*/
Defined in <ROOT>/social/Validation/Validation.php:498
⧉public getRuleGroup(string $group): array Get rule group.
/**
* Get rule group.
*
* @param string $group Group.
*
* @return string[] Rule group.
*
* @throws InvalidArgumentException If group not found.
*/
Defined in <ROOT>/social/Validation/Validation.php:512
⧉public setRuleGroup(string $group) Set rule group.
/**
* Set rule group.
*
* @param string $group Group.
*
* @throws InvalidArgumentException If group not found.
*/
Defined in <ROOT>/social/Validation/Validation.php:532
⧉public listErrors(string $template = 'list'): string Returns the rendered HTML of the errors as defined in $template.
/**
* Returns the rendered HTML of the errors as defined in $template.
*/
Defined in <ROOT>/social/Validation/Validation.php:546
⧉public showError(string $field, string $template = 'single'): string Displays a single error in formatted HTML as defined in the $template view.
/**
* Displays a single error in formatted HTML as defined in the $template view.
*/
Defined in <ROOT>/social/Validation/Validation.php:560
⧉public loadRuleGroup(?string $group = null): array|ValidationException|null Loads custom rule groups (if set) into the current rules.
/**
* Loads custom rule groups (if set) into the current rules.
*
* Rules can be pre-defined in Config\Validation and can
* be any name, but must all still be an array of the
* same format used with setRules(). Additionally, check
* for {group}_errors for an array of custom error messages.
*
* @return array|ValidationException|null
*/
Defined in <ROOT>/social/Validation/Validation.php:600
⧉public hasError(string $field): bool Checks to see if an error exists for the given field.
/**
* Checks to see if an error exists for the given field.
*/
Defined in <ROOT>/social/Validation/Validation.php:680
⧉public getError(?string $field = null): string Returns the error(s) for a specified $field (or empty string if not set).
/**
* Returns the error(s) for a specified $field (or empty string if not
* set).
*/
Defined in <ROOT>/social/Validation/Validation.php:691
⧉public getErrors(): array Returns the array of errors that were encountered during a run() call. The ar...
/**
* Returns the array of errors that were encountered during
* a run() call. The array should be in the following format:
*
* [
* 'field1' => 'error message',
* 'field2' => 'error message',
* ]
*
* @return array<string, string>
*
* @codeCoverageIgnore
*/
Defined in <ROOT>/social/Validation/Validation.php:718
⧉public setError(string $field, string $error): CodeIgniter\Validation\ValidationInterface Sets the error for a specific field. Used by custom validation methods.
/**
* Sets the error for a specific field. Used by custom validation methods.
*/
Defined in <ROOT>/social/Validation/Validation.php:733
⧉public reset(): CodeIgniter\Validation\ValidationInterface Resets the class to a blank slate. Should be called whenever you need to proc...
/**
* Resets the class to a blank slate. Should be called whenever
* you need to process more than one array.
*/
Defined in <ROOT>/social/Validation/Validation.php:822
⧉protected processRules(string $field, ?string $label, $value, $rules = null, ?array $data = null, ?string $originalField = null): bool Runs all of $rules against $field, until one fails, or all of them have been ...
/**
* Runs all of $rules against $field, until one fails, or
* all of them have been processed. If one fails, it adds
* the error to $this->errors and moves on to the next,
* so that we can collect all of the first errors.
*
* @param array|string $value
* @param array|null $rules
* @param array $data The array of data to validate, with `DBGroup`.
* @param string|null $originalField The original asterisk field name like "foo.*.bar".
*/
Defined in <ROOT>/social/Validation/Validation.php:207
⧉protected loadRuleSets() Loads all of the rulesets classes that have been defined in the Config\Valida...
/**
* Loads all of the rulesets classes that have been defined in the
* Config\Validation and stores them locally so we can use them.
*/
Defined in <ROOT>/social/Validation/Validation.php:579
⧉protected fillPlaceholders(array $rules, array $data): array Replace any placeholders within the rules with the values that match the 'key...
/**
* Replace any placeholders within the rules with the values that
* match the 'key' of any properties being set. For example, if
* we had the following $data array:
*
* [ 'id' => 13 ]
*
* and the following rule:
*
* 'required|is_unique[users,email,id,{id}]'
*
* The value of {id} would be replaced with the actual id in the form data:
*
* 'required|is_unique[users,email,id,13]'
*/
Defined in <ROOT>/social/Validation/Validation.php:642
/**
* Attempts to find the appropriate error message
*
* @param string|null $value The value that caused the validation to fail.
*/
Defined in <ROOT>/social/Validation/Validation.php:745
⧉protected splitRules(string $rules): array Split rules string by pipe operator.
/**
* Split rules string by pipe operator.
*/
Defined in <ROOT>/social/Validation/Validation.php:780
⧉private isStringList(array $array): bool Is the array a string list `list<string>`?
/**
* Is the array a string list `list<string>`?
*/
Defined in <ROOT>/social/Validation/Validation.php:359
protected validationMessages -> array (0)
protected validationRules -> array (0)
⧉private builderMethodsNotAvailable -> array (3)
0 => string (17) "getCompiledInsert"
1 => string (17) "getCompiledSelect"
2 => string (17) "getCompiledUpdate"
⧉public __construct()
Defined in <ROOT>/fourm/Models/AnswerModel.php:16
⧉public getAnsQid()
Defined in <ROOT>/fourm/Models/AnswerModel.php:22
⧉public add($table, $date_array)
Inherited from App\Models\CiModel
Defined in <ROOT>/fourm/Models/CiModel.php:26
⧉public edit($table, $data_array, $expr)
Inherited from App\Models\CiModel
Defined in <ROOT>/fourm/Models/CiModel.php:32
⧉public getData($table, $expr, $cols = '*')
Inherited from App\Models\CiModel
Defined in <ROOT>/fourm/Models/CiModel.php:40
⧉public tags()
Inherited from App\Models\CiModel
Defined in <ROOT>/fourm/Models/CiModel.php:47
⧉public getTag()
Inherited from App\Models\CiModel
Defined in <ROOT>/fourm/Models/CiModel.php:61
⧉public getTopMembers()
Inherited from App\Models\CiModel
Defined in <ROOT>/fourm/Models/CiModel.php:69
⧉public jsonTag()
Inherited from App\Models\CiModel
Defined in <ROOT>/fourm/Models/CiModel.php:80
⧉public tagList()
Inherited from App\Models\CiModel
Defined in <ROOT>/fourm/Models/CiModel.php:92
Inherited from App\Models\CiModel
Defined in <ROOT>/fourm/Models/CiModel.php:127
⧉public lastAction($table, $expression)
Inherited from App\Models\CiModel
Defined in <ROOT>/fourm/Models/CiModel.php:136
⧉public getPrevious($table, $postId)
Inherited from App\Models\CiModel
Defined in <ROOT>/fourm/Models/CiModel.php:151
⧉public setTable(string $table): $this Specify the table associated with a model
/**
* Specify the table associated with a model
*
* @param string $table Table
*
* @return $this
*/
Inherited from CodeIgniter\Model
Defined in <ROOT>/social/Model.php:151
⧉public getIdValue($data): array|int|string|null Returns the id value for the data array or object
/**
* Returns the id value for the data array or object
*
* @param array|object $data Data
*
* @return array|int|string|null
*/
Inherited from CodeIgniter\Model
Defined in <ROOT>/social/Model.php:483
⧉public chunk(int $size, Closure $userFunc) Loops over records in batches, allowing you to operate on them. Works with $t...
/**
* Loops over records in batches, allowing you to operate on them.
* Works with $this->builder to get the Compiled select to
* determine the rows to operate on.
* This method works only with dbCalls.
*
* @throws DataException
*/
Inherited from CodeIgniter\Model
Defined in <ROOT>/social/Model.php:504
⧉public countAllResults(bool $reset = true, bool $test = false): mixed Override countAllResults to account for soft deleted accounts.
/**
* Override countAllResults to account for soft deleted accounts.
*
* @return mixed
*/
Inherited from CodeIgniter\Model
Defined in <ROOT>/social/Model.php:538
⧉public builder(?string $table = null): BaseBuilder Provides a shared instance of the Query Builder.
/**
* Provides a shared instance of the Query Builder.
*
* @return BaseBuilder
*
* @throws ModelException
*/
Inherited from CodeIgniter\Model
Defined in <ROOT>/social/Model.php:561
⧉public set($key, $value = '', ?bool $escape = null): $this Captures the builder's set() method so that we can validate the data here. Th...
/**
* Captures the builder's set() method so that we can validate the
* data here. This allows it to be used with any of the other
* builder methods and still get validated data, like replace.
*
* @param mixed $key Field name, or an array of field/value pairs
* @param mixed $value Field value, if $key is a single field
* @param bool|null $escape Whether to escape values
*
* @return $this
*/
Inherited from CodeIgniter\Model
Defined in <ROOT>/social/Model.php:608
⧉public insert($data = null, bool $returnID = true): BaseResult|false|int|object|string Inserts data into the database. If an object is provided, it will attempt to ...
/**
* Inserts data into the database. If an object is provided,
* it will attempt to convert it to an array.
*
* @param array|object|null $data
* @param bool $returnID Whether insert ID should be returned or not.
*
* @return BaseResult|false|int|object|string
*
* @throws ReflectionException
*/
Inherited from CodeIgniter\Model
Defined in <ROOT>/social/Model.php:653
⧉public update($id = null, $data = null): bool Updates a single record in the database. If an object is provided, it will at...
/**
* Updates a single record in the database. If an object is provided,
* it will attempt to convert it into an array.
*
* @param array|int|string|null $id
* @param array|object|null $data
*
* @throws ReflectionException
*/
Inherited from CodeIgniter\Model
Defined in <ROOT>/social/Model.php:679
⧉public __get(string $name): mixed Provides/instantiates the builder/db connection and model's table/primary key...
/**
* Provides/instantiates the builder/db connection and model's table/primary key names and return type.
*
* @param string $name Name
*
* @return mixed
*/
Inherited from CodeIgniter\Model
Defined in <ROOT>/social/Model.php:729
⧉public __isset(string $name): bool Checks for the existence of properties across this model, builder, and db con...
/**
* Checks for the existence of properties across this model, builder, and db connection.
*
* @param string $name Name
*/
Inherited from CodeIgniter\Model
Defined in <ROOT>/social/Model.php:747
⧉public __call(string $name, array $params): mixed Provides direct access to method in the builder (if available) and the databa...
/**
* Provides direct access to method in the builder (if available)
* and the database connection.
*
* @return mixed
*/
Inherited from CodeIgniter\Model
Defined in <ROOT>/social/Model.php:762
⧉public find($id = null): array|object|null The resulting row of data, or null. Fetches the row of database
/**
* Fetches the row of database
*
* @param array|int|string|null $id One primary key or an array of primary keys
*
* @return array|object|null The resulting row of data, or null.
*/
Inherited from CodeIgniter\BaseModel
Defined in <ROOT>/social/BaseModel.php:505
⧉public findColumn(string $columnName): array|null The resulting row of data, or null if no data found. Fetches the column of database
/**
* Fetches the column of database
*
* @param string $columnName Column Name
*
* @return array|null The resulting row of data, or null if no data found.
*
* @throws DataException
*/
Inherited from CodeIgniter\BaseModel
Defined in <ROOT>/social/BaseModel.php:549
⧉public findAll(int $limit0, int $offset0): array Fetches all results, while optionally limiting them.
/**
* Fetches all results, while optionally limiting them.
*
* @param int $limit Limit
* @param int $offset Offset
*
* @return array
*/
Inherited from CodeIgniter\BaseModel
Defined in <ROOT>/social/BaseModel.php:568
⧉public first(): array|object|null Returns the first row of the result set.
/**
* Returns the first row of the result set.
*
* @return array|object|null
*/
Inherited from CodeIgniter\BaseModel
Defined in <ROOT>/social/BaseModel.php:608
⧉public save($data): bool A convenience method that will attempt to determine whether the data should b...
/**
* A convenience method that will attempt to determine whether the
* data should be inserted or updated. Will work with either
* an array or object. When using with custom class objects,
* you must ensure that the class will provide access to the class
* variables, even if through a magic method.
*
* @param array|object $data Data
*
* @throws ReflectionException
*/
Inherited from CodeIgniter\BaseModel
Defined in <ROOT>/social/BaseModel.php:650
⧉public getInsertID(): int|string Returns last insert ID or 0.
/**
* Returns last insert ID or 0.
*
* @return int|string
*/
Inherited from CodeIgniter\BaseModel
Defined in <ROOT>/social/BaseModel.php:685
⧉public insertBatch(?array $set = null, ?bool $escape = null, int $batchSize = 100, bool $testing = false): bool|int Number of rows inserted or FALSE on failure Compiles batch insert runs the queries, validating each row prior.
/**
* Compiles batch insert runs the queries, validating each row prior.
*
* @param array|null $set an associative array of insert values
* @param bool|null $escape Whether to escape values
* @param int $batchSize The size of the batch to run
* @param bool $testing True means only number of records is returned, false will execute the query
*
* @return bool|int Number of rows inserted or FALSE on failure
*
* @throws ReflectionException
*/
Inherited from CodeIgniter\BaseModel
Defined in <ROOT>/social/BaseModel.php:785
⧉public updateBatch(?array $set = null, ?string $index = null, int $batchSize = 100, bool $returnSQL = false): mixed Number of rows affected or FALSE on failure Compiles an update and runs the query
/**
* Compiles an update and runs the query
*
* @param array|null $set An associative array of update values
* @param string|null $index The where key
* @param int $batchSize The size of the batch to run
* @param bool $returnSQL True means SQL is returned, false will execute the query
*
* @return mixed Number of rows affected or FALSE on failure
*
* @throws DatabaseException
* @throws ReflectionException
*/
Inherited from CodeIgniter\BaseModel
Defined in <ROOT>/social/BaseModel.php:911
⧉public delete($id = null, bool $purge = false): BaseResult|bool Deletes a single record from the database where $id matches
/**
* Deletes a single record from the database where $id matches
*
* @param array|int|string|null $id The rows primary key(s)
* @param bool $purge Allows overriding the soft deletes setting.
*
* @return BaseResult|bool
*
* @throws DatabaseException
*/
Inherited from CodeIgniter\BaseModel
Defined in <ROOT>/social/BaseModel.php:965
⧉public purgeDeleted(): mixed Permanently deletes all rows that have been marked as deleted through soft de...
/**
* Permanently deletes all rows that have been marked as deleted
* through soft deletes (deleted = 1)
*
* @return mixed
*/
Inherited from CodeIgniter\BaseModel
Defined in <ROOT>/social/BaseModel.php:1002
⧉public withDeleted(bool $val = true): $this Sets $useSoftDeletes value so that we can temporarily override the soft delet...
/**
* Sets $useSoftDeletes value so that we can temporarily override
* the soft deletes settings. Can be used for all find* methods.
*
* @param bool $val Value
*
* @return $this
*/
Inherited from CodeIgniter\BaseModel
Defined in <ROOT>/social/BaseModel.php:1019
⧉public onlyDeleted(): $this Works with the find* methods to return only the rows that have been deleted.
/**
* Works with the find* methods to return only the rows that
* have been deleted.
*
* @return $this
*/
Inherited from CodeIgniter\BaseModel
Defined in <ROOT>/social/BaseModel.php:1032
⧉public replace(?array $data = null, bool $returnSQL = false): mixed Compiles a replace and runs the query
/**
* Compiles a replace and runs the query
*
* @param array|null $data Data
* @param bool $returnSQL Set to true to return Query String
*
* @return mixed
*/
Inherited from CodeIgniter\BaseModel
Defined in <ROOT>/social/BaseModel.php:1048
⧉public errors(bool $forceDB = false): array<string,string> Grabs the last error(s) that occurred. If data was validated, it will first c...
/**
* Grabs the last error(s) that occurred. If data was validated,
* it will first check for errors there, otherwise will try to
* grab the last error from the Database connection.
* The return array should be in the following format:
* ['source' => 'message']
*
* @param bool $forceDB Always grab the db error, not validation
*
* @return array<string,string>
*/
Inherited from CodeIgniter\BaseModel
Defined in <ROOT>/social/BaseModel.php:1073
⧉public paginate(?int $perPage = null, string $group = 'default', ?int $page = null, int $segment0): array|null Works with Pager to get the size and offset parameters. Expects a GET variabl...
/**
* Works with Pager to get the size and offset parameters.
* Expects a GET variable (?page=2) that specifies the page of results
* to display.
*
* @param int|null $perPage Items per page
* @param string $group Will be used by the pagination library to identify a unique pagination set.
* @param int|null $page Optional page number (useful when the page number is provided in different way)
* @param int $segment Optional URI segment number (if page number is provided by URI segment)
*
* @return array|null
*/
Inherited from CodeIgniter\BaseModel
Defined in <ROOT>/social/BaseModel.php:1095
⧉public setAllowedFields(array $allowedFields): $this It could be used when you have to change default or override current allowed ...
/**
* It could be used when you have to change default or override current allowed fields.
*
* @param array $allowedFields Array with names of fields
*
* @return $this
*/
Inherited from CodeIgniter\BaseModel
Defined in <ROOT>/social/BaseModel.php:1120
⧉public protect(bool $protect = true): $this Sets whether or not we should whitelist data set during updates or inserts ag...
/**
* Sets whether or not we should whitelist data set during
* updates or inserts against $this->availableFields.
*
* @param bool $protect Value
*
* @return $this
*/
Inherited from CodeIgniter\BaseModel
Defined in <ROOT>/social/BaseModel.php:1135
⧉public skipValidation(bool $skip = true): $this Set the value of the skipValidation flag.
/**
* Set the value of the skipValidation flag.
*
* @param bool $skip Value
*
* @return $this
*/
Inherited from CodeIgniter\BaseModel
Defined in <ROOT>/social/BaseModel.php:1258
⧉public setValidationMessages(array $validationMessages): $this Allows to set validation messages. It could be used when you have to change d...
/**
* Allows to set validation messages.
* It could be used when you have to change default or override current validate messages.
*
* @param array $validationMessages Value
*
* @return $this
*/
Inherited from CodeIgniter\BaseModel
Defined in <ROOT>/social/BaseModel.php:1273
⧉public setValidationMessage(string $field, array $fieldMessages): $this Allows to set field wise validation message. It could be used when you have t...
/**
* Allows to set field wise validation message.
* It could be used when you have to change default or override current validate messages.
*
* @param string $field Field Name
* @param array $fieldMessages Validation messages
*
* @return $this
*/
Inherited from CodeIgniter\BaseModel
Defined in <ROOT>/social/BaseModel.php:1289
⧉public setValidationRules(array $validationRules): $this Allows to set validation rules. It could be used when you have to change defa...
/**
* Allows to set validation rules.
* It could be used when you have to change default or override current validate rules.
*
* @param array $validationRules Value
*
* @return $this
*/
Inherited from CodeIgniter\BaseModel
Defined in <ROOT>/social/BaseModel.php:1304
⧉public setValidationRule(string $field, $fieldRules): $this Allows to set field wise validation rules. It could be used when you have to ...
/**
* Allows to set field wise validation rules.
* It could be used when you have to change default or override current validate rules.
*
* @param string $field Field Name
* @param array|string $fieldRules Validation rules
*
* @return $this
*/
Inherited from CodeIgniter\BaseModel
Defined in <ROOT>/social/BaseModel.php:1320
⧉public cleanRules(bool $choice = false): $this Should validation rules be removed before saving? Most handy when doing updates.
/**
* Should validation rules be removed before saving?
* Most handy when doing updates.
*
* @param bool $choice Value
*
* @return $this
*/
Inherited from CodeIgniter\BaseModel
Defined in <ROOT>/social/BaseModel.php:1335
⧉public validate($data): bool Validate the data against the validation rules (or the validation group) spec...
/**
* Validate the data against the validation rules (or the validation group)
* specified in the class property, $validationRules.
*
* @param array|object $data Data
*/
Inherited from CodeIgniter\BaseModel
Defined in <ROOT>/social/BaseModel.php:1348
⧉public getValidationRules(array $options = array()): array Returns the model's defined validation rules so that they can be used elsewhe...
/**
* Returns the model's defined validation rules so that they
* can be used elsewhere, if needed.
*
* @param array $options Options
*/
Inherited from CodeIgniter\BaseModel
Defined in <ROOT>/social/BaseModel.php:1380
⧉public getValidationMessages(): array Returns the model's define validation messages so they can be used elsewhere,...
/**
* Returns the model's define validation messages so they
* can be used elsewhere, if needed.
*/
Inherited from CodeIgniter\BaseModel
Defined in <ROOT>/social/BaseModel.php:1403
⧉public allowCallbacks(bool $val = true): $this Sets $tempAllowCallbacks value so that we can temporarily override the settin...
/**
* Sets $tempAllowCallbacks value so that we can temporarily override
* the setting. Resets after the next method that uses triggers.
*
* @param bool $val value
*
* @return $this
*/
Inherited from CodeIgniter\BaseModel
Defined in <ROOT>/social/BaseModel.php:1439
⧉public asArray(): $this Sets the return type of the results to be as an associative array.
/**
* Sets the return type of the results to be as an associative array.
*
* @return $this
*/
Inherited from CodeIgniter\BaseModel
Defined in <ROOT>/social/BaseModel.php:1491
⧉public asObject(string $class = 'object'): $this Sets the return type to be of the specified type of object. Defaults to a sim...
/**
* Sets the return type to be of the specified type of object.
* Defaults to a simple object, but can be any class that has
* class vars with the same name as the collection columns,
* or at least allows them to be created.
*
* @param string $class Class Name
*
* @return $this
*/
Inherited from CodeIgniter\BaseModel
Defined in <ROOT>/social/BaseModel.php:1508
⧉protected doFind(bool $singleton, $id = null): array|object|null The resulting row of data, or null. Fetches the row of database from $this->table with a primary key matching $id...
/**
* Fetches the row of database from $this->table with a primary key
* matching $id.
* This method works only with dbCalls.
*
* @param bool $singleton Single or multiple results
* @param array|int|string|null $id One primary key or an array of primary keys
*
* @return array|object|null The resulting row of data, or null.
*/
Inherited from CodeIgniter\Model
Defined in <ROOT>/social/Model.php:168
⧉protected doFindColumn(string $columnName): array|null The resulting row of data, or null if no data found. Fetches the column of database from $this->table. This method works only with...
/**
* Fetches the column of database from $this->table.
* This method works only with dbCalls.
*
* @param string $columnName Column Name
*
* @return array|null The resulting row of data, or null if no data found.
*/
Inherited from CodeIgniter\Model
Defined in <ROOT>/social/Model.php:199
⧉protected doFindAll(int $limit0, int $offset0): array Works with the current Query Builder instance to return all results, while op...
/**
* Works with the current Query Builder instance to return
* all results, while optionally limiting them.
* This method works only with dbCalls.
*
* @param int $limit Limit
* @param int $offset Offset
*
* @return array
*/
Inherited from CodeIgniter\Model
Defined in <ROOT>/social/Model.php:214
⧉protected doFirst(): array|object|null Returns the first row of the result set. Will take any previous Query Builder...
/**
* Returns the first row of the result set. Will take any previous
* Query Builder calls into account when determining the result set.
* This method works only with dbCalls.
*
* @return array|object|null
*/
Inherited from CodeIgniter\Model
Defined in <ROOT>/social/Model.php:234
⧉protected doInsert(array $data): bool Inserts data into the current table. This method works only with dbCalls.
/**
* Inserts data into the current table.
* This method works only with dbCalls.
*
* @param array $data Data
*
* @return bool
*/
Inherited from CodeIgniter\Model
Defined in <ROOT>/social/Model.php:261
⧉protected doInsertBatch(?array $set = null, ?bool $escape = null, int $batchSize = 100, bool $testing = false): bool|int Number of rows inserted or FALSE on failure Compiles batch insert strings and runs the queries, validating each row prior...
/**
* Compiles batch insert strings and runs the queries, validating each row prior.
* This method works only with dbCalls.
*
* @param array|null $set An associative array of insert values
* @param bool|null $escape Whether to escape values
* @param int $batchSize The size of the batch to run
* @param bool $testing True means only number of records is returned, false will execute the query
*
* @return bool|int Number of rows inserted or FALSE on failure
*/
Inherited from CodeIgniter\Model
Defined in <ROOT>/social/Model.php:300
⧉protected doUpdate($id = null, $data = null): bool Updates a single record in $this->table. This method works only with dbCalls.
/**
* Updates a single record in $this->table.
* This method works only with dbCalls.
*
* @param array|int|string|null $id
* @param array|null $data
*/
Inherited from CodeIgniter\Model
Defined in <ROOT>/social/Model.php:322
⧉protected doUpdateBatch(?array $set = null, ?string $index = null, int $batchSize = 100, bool $returnSQL = false): mixed Number of rows affected or FALSE on failure Compiles an update string and runs the query This method works only with dbCa...
/**
* Compiles an update string and runs the query
* This method works only with dbCalls.
*
* @param array|null $set An associative array of update values
* @param string|null $index The where key
* @param int $batchSize The size of the batch to run
* @param bool $returnSQL True means SQL is returned, false will execute the query
*
* @return mixed Number of rows affected or FALSE on failure
*
* @throws DatabaseException
*/
Inherited from CodeIgniter\Model
Defined in <ROOT>/social/Model.php:354
⧉protected doDelete($id = null, bool $purge = false): bool|string Deletes a single record from $this->table where $id matches the table's prima...
/**
* Deletes a single record from $this->table where $id matches
* the table's primaryKey
* This method works only with dbCalls.
*
* @param array|int|string|null $id The rows primary key(s)
* @param bool $purge Allows overriding the soft deletes setting.
*
* @return bool|string
*
* @throws DatabaseException
*/
Inherited from CodeIgniter\Model
Defined in <ROOT>/social/Model.php:371
⧉protected doPurgeDeleted(): bool|string Returns a string if in test mode. Permanently deletes all rows that have been marked as deleted through soft de...
/**
* Permanently deletes all rows that have been marked as deleted
* through soft deletes (deleted = 1)
* This method works only with dbCalls.
*
* @return bool|string Returns a string if in test mode.
*/
Inherited from CodeIgniter\Model
Defined in <ROOT>/social/Model.php:411
⧉protected doOnlyDeleted() Works with the find* methods to return only the rows that have been deleted. ...
/**
* Works with the find* methods to return only the rows that
* have been deleted.
* This method works only with dbCalls.
*/
Inherited from CodeIgniter\Model
Defined in <ROOT>/social/Model.php:423
⧉protected doReplace(?array $data = null, bool $returnSQL = false): mixed Compiles a replace into string and runs the query This method works only with...
/**
* Compiles a replace into string and runs the query
* This method works only with dbCalls.
*
* @param array|null $data Data
* @param bool $returnSQL Set to true to return Query String
*
* @return mixed
*/
Inherited from CodeIgniter\Model
Defined in <ROOT>/social/Model.php:437
⧉protected doErrors(): array<string,string> Grabs the last error(s) that occurred from the Database connection. The retur...
/**
* Grabs the last error(s) that occurred from the Database connection.
* The return array should be in the following format:
* ['source' => 'message']
* This method works only with dbCalls.
*
* @return array<string,string>
*/
Inherited from CodeIgniter\Model
Defined in <ROOT>/social/Model.php:450
⧉protected idValue($data): array|int|string|null Returns the id value for the data array or object
/**
* Returns the id value for the data array or object
*
* @param array|object $data Data
*
* @return array|int|string|null
*
* @deprecated Use getIdValue() instead. Will be removed in version 5.0.
*/
Inherited from CodeIgniter\Model
Defined in <ROOT>/social/Model.php:471
⧉protected shouldUpdate($data): bool This method is called on save to determine if entry have to be updated If thi...
/**
* This method is called on save to determine if entry have to be updated
* If this method return false insert operation will be executed
*
* @param array|object $data Data
*/
Inherited from CodeIgniter\Model
Defined in <ROOT>/social/Model.php:627
⧉protected objectToRawArray($data, bool $onlyChanged = true, bool $recursive = false): ?array Takes a class an returns an array of it's public and protected properties as ...
/**
* Takes a class an returns an array of it's public and protected
* properties as an array with raw values.
*
* @param object|string $data
* @param bool $recursive If true, inner entities will be casted as array as well
*
* @return array|null Array
*
* @throws ReflectionException
*/
Inherited from CodeIgniter\Model
Defined in <ROOT>/social/Model.php:707
⧉protected initialize() Initializes the instance with any additional steps. Optionally implemented by...
/**
* Initializes the instance with any additional steps.
* Optionally implemented by child classes.
*/
Inherited from CodeIgniter\BaseModel
Defined in <ROOT>/social/BaseModel.php:309
⧉protected doProtectFields(array $data): array Ensures that only the fields that are allowed to be updated are in the data a...
/**
* Ensures that only the fields that are allowed to be updated
* are in the data array.
*
* Used by insert() and update() to protect against mass assignment
* vulnerabilities.
*
* @param array $data Data
*
* @throws DataException
*/
Inherited from CodeIgniter\BaseModel
Defined in <ROOT>/social/BaseModel.php:1153
⧉protected setDate(?int $userData = null): mixed Sets the date or current date if null value is passed
/**
* Sets the date or current date if null value is passed
*
* @param int|null $userData An optional PHP timestamp to be converted.
*
* @return mixed
*
* @throws ModelException
*/
Inherited from CodeIgniter\BaseModel
Defined in <ROOT>/social/BaseModel.php:1181
⧉protected intToDate(int $value): int|string A utility function to allow child models to use the type of date/time format ...
/**
* A utility function to allow child models to use the type of
* date/time format that they prefer. This is primarily used for
* setting created_at, updated_at and deleted_at values, but can be
* used by inheriting classes.
*
* The available time formats are:
* - 'int' - Stores the date as an integer timestamp
* - 'datetime' - Stores the data in the SQL datetime format
* - 'date' - Stores the date (only) in the SQL date format.
*
* @param int $value value
*
* @return int|string
*
* @throws ModelException
*/
Inherited from CodeIgniter\BaseModel
Defined in <ROOT>/social/BaseModel.php:1205
⧉protected timeToDate(CodeIgniter\I18n\Time $value): int|string Converts Time value to string using $this->dateFormat
/**
* Converts Time value to string using $this->dateFormat
*
* The available time formats are:
* - 'int' - Stores the date as an integer timestamp
* - 'datetime' - Stores the data in the SQL datetime format
* - 'date' - Stores the date (only) in the SQL date format.
*
* @param Time $value value
*
* @return int|string
*/
Inherited from CodeIgniter\BaseModel
Defined in <ROOT>/social/BaseModel.php:1234
⧉protected cleanValidationRules(array $rules, ?array $data = null): array Removes any rules that apply to fields that have not been set currently so th...
/**
* Removes any rules that apply to fields that have not been set
* currently so that rules don't block updating when only updating
* a partial row.
*
* @param array $rules Array containing field name and rule
* @param array|null $data Data
*/
Inherited from CodeIgniter\BaseModel
Defined in <ROOT>/social/BaseModel.php:1416
⧉protected trigger(string $event, array $eventData): mixed A simple event trigger for Model Events that allows additional data manipulat...
/**
* A simple event trigger for Model Events that allows additional
* data manipulation within the model. Specifically intended for
* usage by child models this can be used to format data,
* save/load related classes, etc.
*
* It is the responsibility of the callback methods to return
* the data itself.
*
* Each $eventData array MUST have a 'data' key with the relevant
* data for callback methods (like an array of key/value pairs to insert
* or update, an array of results, etc)
*
* If callbacks are not allowed then returns $eventData immediately.
*
* @param string $event Event
* @param array $eventData Event Data
*
* @return mixed
*
* @throws DataException
*/
Inherited from CodeIgniter\BaseModel
Defined in <ROOT>/social/BaseModel.php:1468
⧉protected objectToArray($data, bool $onlyChanged = true, bool $recursive = false): array Takes a class and returns an array of it's public and protected properties as...
/**
* Takes a class and returns an array of it's public and protected
* properties as an array suitable for use in creates and updates.
* This method uses objectToRawArray() internally and does conversion
* to string on all Time instances
*
* @param object|string $data Data
* @param bool $onlyChanged Only Changed Property
* @param bool $recursive If true, inner entities will be casted as array as well
*
* @return array Array
*
* @throws ReflectionException
*/
Inherited from CodeIgniter\BaseModel
Defined in <ROOT>/social/BaseModel.php:1529
⧉protected transformDataToArray($data, string $type): array Transform data to array
/**
* Transform data to array
*
* @param array|object|null $data Data
* @param string $type Type of data (insert|update)
*
* @throws DataException
* @throws InvalidArgumentException
* @throws ReflectionException
*/
Inherited from CodeIgniter\BaseModel
Defined in <ROOT>/social/BaseModel.php:1591
⧉protected fillPlaceholders(array $rules, array $data): array Replace any placeholders within the rules with the values that match the 'key...
/**
* Replace any placeholders within the rules with the values that
* match the 'key' of any properties being set. For example, if
* we had the following $data array:
*
* [ 'id' => 13 ]
*
* and the following rule:
*
* 'required|is_unique[users,email,id,{id}]'
*
* The value of {id} would be replaced with the actual id in the form data:
*
* 'required|is_unique[users,email,id,13]'
*
* @param array $rules Validation rules
* @param array $data Data
*
* @codeCoverageIgnore
*
* @deprecated use fillPlaceholders($rules, $data) from Validation instead
*/
Inherited from CodeIgniter\BaseModel
Defined in <ROOT>/social/BaseModel.php:1696
⇄⧉public static classToArray($data, $primaryKey = null, string $dateFormat = 'datetime', bool $onlyChanged = true): array Takes a class an returns an array of it's public and protected properties as ...
/**
* Takes a class an returns an array of it's public and protected
* properties as an array suitable for use in creates and updates.
*
* @param object|string $data
* @param string|null $primaryKey
*
* @throws ReflectionException
*
* @codeCoverageIgnore
*
* @deprecated since 4.1
*/
Inherited from CodeIgniter\Model
Defined in <ROOT>/social/Model.php:807
⧉MetaDesc => string (167) "In the sector of computer technological know-how, data systems play a critic...
In the sector of computer technological know-how, data systems play a critical function in organizing and storing statistics correctly. Two of the maximum usually used
what-is-the-difference-between-canine-flu-and-kennel-cough => string (59) "What is the difference between canine flu and kennel cough?"
what-is-the-difference-between-aeronautical-and-astronautical => string (62) "What is the difference between aeronautical and astronautical?"
what-is-the-difference-between-hawaiian-mac-salad-and-regular-mac-salad => string (72) "What is the difference between Hawaiian mac salad and regular Mac salad?"
what-is-difference-between-ai-and-ml => string (37) "What is difference between AI and ML?"
what-is-the-difference-between-gigi-and-bella-hadid => string (52) "What is the difference between Gigi and Bella Hadid?"
⧉public getFieldCount(): int Gets the number of fields in the result set.
/**
* Gets the number of fields in the result set.
*/
Defined in <ROOT>/social/Database/MySQLi/Result.php:26
⧉public getFieldNames(): array Generates an array of column names in the result set.
/**
* Generates an array of column names in the result set.
*/
Defined in <ROOT>/social/Database/MySQLi/Result.php:34
⧉public getFieldData(): array Generates an array of objects representing field meta-data.
/**
* Generates an array of objects representing field meta-data.
*/
Defined in <ROOT>/social/Database/MySQLi/Result.php:49
⧉public freeResult() Frees the current result.
/**
* Frees the current result.
*/
Defined in <ROOT>/social/Database/MySQLi/Result.php:103
⧉public dataSeek(int $n0): mixed Moves the internal pointer to the desired offset. This is called internally b...
/**
* Moves the internal pointer to the desired offset. This is called
* internally before fetching results to make sure the result set
* starts at zero.
*
* @return mixed
*/
Defined in <ROOT>/social/Database/MySQLi/Result.php:118
⧉public getNumRows(): int Returns the number of rows in the resultID (i.e., mysqli_result object)
/**
* Returns the number of rows in the resultID (i.e., mysqli_result object)
*/
Defined in <ROOT>/social/Database/MySQLi/Result.php:154
/**
* Constructor
*
* @param object|resource $connID
* @param object|resource $resultID
*/
Inherited from CodeIgniter\Database\BaseResult
Defined in <ROOT>/social/Database/BaseResult.php:83
⧉public getResult(string $type = 'object'): array Retrieve the results of the query. Typically an array of individual data rows...
/**
* Retrieve the results of the query. Typically an array of
* individual data rows, which can be either an 'array', an
* 'object', or a custom class name.
*
* @param string $type The row type. Either 'array', 'object', or a class name to use
*/
Inherited from CodeIgniter\Database\BaseResult
Defined in <ROOT>/social/Database/BaseResult.php:96
⧉public getCustomResultObject(string $className): mixed Returns the results as an array of custom objects.
/**
* Returns the results as an array of custom objects.
*
* @return mixed
*/
Inherited from CodeIgniter\Database\BaseResult
Defined in <ROOT>/social/Database/BaseResult.php:114
⧉public getResultArray(): array Returns the results as an array of arrays.
/**
* Returns the results as an array of arrays.
*
* If no results, an empty array is returned.
*/
Inherited from CodeIgniter\Database\BaseResult
Defined in <ROOT>/social/Database/BaseResult.php:165
⧉public getResultObject(): array Returns the results as an array of objects.
/**
* Returns the results as an array of objects.
*
* If no results, an empty array is returned.
*/
Inherited from CodeIgniter\Database\BaseResult
Defined in <ROOT>/social/Database/BaseResult.php:202
⧉public getRow($n0, string $type = 'object'): mixed Wrapper object to return a row as either an array, an object, or a custom class.
/**
* Wrapper object to return a row as either an array, an object, or
* a custom class.
*
* If row doesn't exist, returns null.
*
* @param mixed $n The index of the results to return
* @param string $type The type of result object. 'array', 'object' or class name.
*
* @return mixed
*/
Inherited from CodeIgniter\Database\BaseResult
Defined in <ROOT>/social/Database/BaseResult.php:249
⧉public getCustomRowObject(int $n, string $className): mixed Returns a row as a custom class instance.
/**
* Returns a row as a custom class instance.
*
* If row doesn't exists, returns null.
*
* @return mixed
*/
Inherited from CodeIgniter\Database\BaseResult
Defined in <ROOT>/social/Database/BaseResult.php:283
⧉public getRowArray(int $n0): mixed Returns a single row from the results as an array.
/**
* Returns a single row from the results as an array.
*
* If row doesn't exist, returns null.
*
* @return mixed
*/
Inherited from CodeIgniter\Database\BaseResult
Defined in <ROOT>/social/Database/BaseResult.php:307
⧉public getRowObject(int $n0): mixed Returns a single row from the results as an object.
/**
* Returns a single row from the results as an object.
*
* If row doesn't exist, returns null.
*
* @return mixed
*/
Inherited from CodeIgniter\Database\BaseResult
Defined in <ROOT>/social/Database/BaseResult.php:328
⧉public setRow($key, $value = null): mixed Assigns an item into a particular column slot.
/**
* Assigns an item into a particular column slot.
*
* @param mixed $key
* @param mixed $value
*
* @return mixed
*/
Inherited from CodeIgniter\Database\BaseResult
Defined in <ROOT>/social/Database/BaseResult.php:350
⧉public getFirstRow(string $type = 'object'): mixed Returns the "first" row of the current results.
/**
* Returns the "first" row of the current results.
*
* @return mixed
*/
Inherited from CodeIgniter\Database\BaseResult
Defined in <ROOT>/social/Database/BaseResult.php:375
⧉public getLastRow(string $type = 'object'): mixed Returns the "last" row of the current results.
/**
* Returns the "last" row of the current results.
*
* @return mixed
*/
Inherited from CodeIgniter\Database\BaseResult
Defined in <ROOT>/social/Database/BaseResult.php:387
⧉public getNextRow(string $type = 'object'): mixed Returns the "next" row of the current results.
/**
* Returns the "next" row of the current results.
*
* @return mixed
*/
Inherited from CodeIgniter\Database\BaseResult
Defined in <ROOT>/social/Database/BaseResult.php:399
⧉public getPreviousRow(string $type = 'object'): mixed Returns the "previous" row of the current results.
/**
* Returns the "previous" row of the current results.
*
* @return mixed
*/
Inherited from CodeIgniter\Database\BaseResult
Defined in <ROOT>/social/Database/BaseResult.php:414
⧉public getUnbufferedRow(string $type = 'object'): mixed Returns an unbuffered row and move the pointer to the next row.
/**
* Returns an unbuffered row and move the pointer to the next row.
*
* @return mixed
*/
Inherited from CodeIgniter\Database\BaseResult
Defined in <ROOT>/social/Database/BaseResult.php:433
⧉protected fetchAssoc(): mixed Returns the result set as an array.
/**
* Returns the result set as an array.
*
* Overridden by driver classes.
*
* @return mixed
*/
Defined in <ROOT>/social/Database/MySQLi/Result.php:130
⧉protected fetchObject(string $className = 'stdClass'): bool|Entity|object Returns the result set as an object.
/**
* Returns the result set as an object.
*
* Overridden by child classes.
*
* @return bool|Entity|object
*/
Defined in <ROOT>/social/Database/MySQLi/Result.php:142
-rwxrwxrwx 0 0 11.7KB Nov 05 2022 /var/www/html/yourquorum.com/social/ThirdParty/Escaper/Escaper.php
protected files -> array (0)
⧉protected prefixes -> array (4)
⧉CodeIgniter => array (1) Depth Limit
⧉App => array (1) Depth Limit
⧉Config => array (1) Depth Limit
⧉Modules\Admin => array (1) Depth Limit
⧉public initialize(Config\Autoload $config, Config\Modules $modules): $this Reads in the configuration array (described above) and stores the valid parts...
/**
* Reads in the configuration array (described above) and stores
* the valid parts that we'll need.
*
* @return $this
*/
Defined in <ROOT>/social/Autoloader/Autoloader.php:83
⧉public register() Register the loader with the SPL autoloader stack.
/**
* Register the loader with the SPL autoloader stack.
*/
Defined in <ROOT>/social/Autoloader/Autoloader.php:134
⧉public addNamespace($namespace, ?string $path = null): $this Registers namespaces with the autoloader.
/**
* Registers namespaces with the autoloader.
*
* @param array|string $namespace
*
* @return $this
*/
Defined in <ROOT>/social/Autoloader/Autoloader.php:155
⧉public getNamespace(?string $prefix = null): array Get namespaces with prefixes as keys and paths as values.
/**
* Get namespaces with prefixes as keys and paths as values.
*
* If a prefix param is set, returns only paths to the given prefix.
*
* @return array
*/
Defined in <ROOT>/social/Autoloader/Autoloader.php:185
⧉public removeNamespace(string $namespace): $this Removes a single namespace from the psr4 settings.
/**
* Removes a single namespace from the psr4 settings.
*
* @return $this
*/
Defined in <ROOT>/social/Autoloader/Autoloader.php:199
⧉public loadClassmap(string $class): false|string Load a class using available class mapping.
/**
* Load a class using available class mapping.
*
* @return false|string
*/
Defined in <ROOT>/social/Autoloader/Autoloader.php:213
⧉public loadClass(string $class): false|string The mapped file on success, or boolean false Loads the class file for a given class name.
/**
* Loads the class file for a given class name.
*
* @param string $class The fully qualified class name.
*
* @return false|string The mapped file on success, or boolean false
* on failure.
*/
Defined in <ROOT>/social/Autoloader/Autoloader.php:232
⧉public sanitizeFilename(string $filename): string Sanitizes a filename, replacing spaces with dashes.
/**
* Sanitizes a filename, replacing spaces with dashes.
*
* Removes special characters that are illegal in filenames on certain
* operating systems and special characters requiring special escaping
* to manipulate at the command line. Replaces spaces and consecutive
* dashes with a single dash. Trim period, dash and underscore from beginning
* and end of filename.
*
* @return string The sanitized filename
*/
Defined in <ROOT>/social/Autoloader/Autoloader.php:301
⧉protected loadInNamespace(string $class): false|string The mapped file name on success, or boolean false on fail Loads the class file for a given class name.
/**
* Loads the class file for a given class name.
*
* @param string $class The fully-qualified class name
*
* @return false|string The mapped file name on success, or boolean false on fail
*/
Defined in <ROOT>/social/Autoloader/Autoloader.php:247
⧉protected includeFile(string $file): false|string The filename on success, false if the file is not loaded A central way to include a file. Split out primarily for testing purposes.
/**
* A central way to include a file. Split out primarily for testing purposes.
*
* @return false|string The filename on success, false if the file is not loaded
*/
Defined in <ROOT>/social/Autoloader/Autoloader.php:277
⧉protected discoverComposerNamespaces() Locates autoload information from Composer, if available.
/**
* Locates autoload information from Composer, if available.
*
* @deprecated No longer used.
*/
Defined in <ROOT>/social/Autoloader/Autoloader.php:344
Defined in <ROOT>/social/Autoloader/FileLocator.php:27
⧉public locateFile(string $file, ?string $folder = null, string $ext = 'php'): false|string The path to the file, or false if not found. Attempts to locate a file by examining the name for a namespace and looking t...
/**
* Attempts to locate a file by examining the name for a namespace
* and looking through the PSR-4 namespaced files that we know about.
*
* @param string $file The namespaced file to locate
* @param string|null $folder The folder within the namespace that we should look for the file.
* @param string $ext The file extension the file should have.
*
* @return false|string The path to the file, or false if not found.
*/
Defined in <ROOT>/social/Autoloader/FileLocator.php:42
⧉public getClassname(string $file): string Examines a file and returns the fully qualified class name.
/**
* Examines a file and returns the fully qualified class name.
*/
Defined in <ROOT>/social/Autoloader/FileLocator.php:113
⧉public search(string $path, string $ext = 'php', bool $prioritizeApp = true): array Searches through all of the defined namespaces looking for a file. Returns an...
/**
* Searches through all of the defined namespaces looking for a file.
* Returns an array of all found locations for the defined file.
*
* Example:
*
* $locator->search('Config/Routes.php');
* // Assuming PSR4 namespaces include foo and bar, might return:
* [
* 'app/Modules/foo/Config/Routes.php',
* 'app/Modules/bar/Config/Routes.php',
* ]
*/
Defined in <ROOT>/social/Autoloader/FileLocator.php:166
⧉public findQualifiedNameFromPath(string $path): false|string The qualified name or false if the path is not found Find the qualified name of a file according to the namespace of the first mat...
/**
* Find the qualified name of a file according to
* the namespace of the first matched namespace path.
*
* @return false|string The qualified name or false if the path is not found
*/
Defined in <ROOT>/social/Autoloader/FileLocator.php:253
⧉public listFiles(string $path): array Scans the defined namespaces, returning a list of all files that are containe...
/**
* Scans the defined namespaces, returning a list of all files
* that are contained within the subpath specified by $path.
*
* @return string[] List of file paths
*/
Defined in <ROOT>/social/Autoloader/FileLocator.php:295
⧉public listNamespaceFiles(string $prefix, string $path): array Scans the provided namespace, returning a list of all files that are containe...
/**
* Scans the provided namespace, returning a list of all files
* that are contained within the sub path specified by $path.
*
* @return string[] List of file paths
*/
Defined in <ROOT>/social/Autoloader/FileLocator.php:328
⧉protected ensureExt(string $path, string $ext): string Ensures a extension is at the end of a filename
/**
* Ensures a extension is at the end of a filename
*/
Defined in <ROOT>/social/Autoloader/FileLocator.php:199
⧉protected getNamespaces(): array<int, array<string, string>> Return the namespace mappings we know about.
/**
* Return the namespace mappings we know about.
*
* @return array<int, array<string, string>>
*/
Defined in <ROOT>/social/Autoloader/FileLocator.php:217
⧉protected legacyLocate(string $file, ?string $folder = null): false|string The path to the file, or false if not found. Checks the app folder to see if the file can be found. Only for use with file...
/**
* Checks the app folder to see if the file can be found.
* Only for use with filenames that DO NOT include namespacing.
*
* @return false|string The path to the file, or false if not found.
*/
Defined in <ROOT>/social/Autoloader/FileLocator.php:362
/**
* Constructor.
*
* @param \Config\Logger $config
*
* @throws RuntimeException
*/
Defined in <ROOT>/social/Log/Logger.php:119
⧉public emergency($message, array $context = array()): bool System is unusable.
/**
* System is unusable.
*
* @param string $message
*/
Defined in <ROOT>/social/Log/Logger.php:157
⧉public alert($message, array $context = array()): bool Action must be taken immediately.
/**
* Action must be taken immediately.
*
* Example: Entire website down, database unavailable, etc. This should
* trigger the SMS alerts and wake you up.
*
* @param string $message
*/
Defined in <ROOT>/social/Log/Logger.php:170
⧉public error($message, array $context = array()): bool Runtime errors that do not require immediate action but should typically be l...
/**
* Runtime errors that do not require immediate action but should typically
* be logged and monitored.
*
* @param string $message
*/
Defined in <ROOT>/social/Log/Logger.php:193
⧉public warning($message, array $context = array()): bool Exceptional occurrences that are not errors.
/**
* Exceptional occurrences that are not errors.
*
* Example: Use of deprecated APIs, poor use of an API, undesirable things
* that are not necessarily wrong.
*
* @param string $message
*/
Defined in <ROOT>/social/Log/Logger.php:206
⧉public notice($message, array $context = array()): bool Normal but significant events.
/**
* Normal but significant events.
*
* @param string $message
*/
Defined in <ROOT>/social/Log/Logger.php:216
/**
* Detailed debug information.
*
* @param string $message
*/
Defined in <ROOT>/social/Log/Logger.php:238
⧉public log($level, $message, array $context = array()): bool Logs with an arbitrary level.
/**
* Logs with an arbitrary level.
*
* @param string $level
* @param string $message
*/
Defined in <ROOT>/social/Log/Logger.php:249
⧉public determineFile(): array Determines the file and line that the logging call was made from by analyzing...
/**
* Determines the file and line that the logging call
* was made from by analyzing the backtrace.
* Find the earliest stack frame that is part of our logging system.
*/
Defined in <ROOT>/social/Log/Logger.php:373
⧉protected interpolate($message, array $context = array()): string Replaces any placeholders in the message with variables from the context, as ...
/**
* Replaces any placeholders in the message with variables
* from the context, as well as a few special items like:
*
* {session_vars}
* {post_vars}
* {get_vars}
* {env}
* {env:foo}
* {file}
* {line}
*
* @param string $message
*
* @return string
*/
Defined in <ROOT>/social/Log/Logger.php:315
⧉protected cleanFileNames(string $file): string Cleans the paths of filenames by replacing APPPATH, SYSTEMPATH, FCPATH with t...
/**
* Cleans the paths of filenames by replacing APPPATH, SYSTEMPATH, FCPATH
* with the actual var. i.e.
*
* /var/www/site/app/Controllers/Home.php
* becomes:
* APPPATH/Controllers/Home.php
*
* @deprecated Use dedicated `clean_path()` function.
*/
Defined in <ROOT>/social/Log/Logger.php:423
⧉public render(string $view, ?array $options = null, ?bool $saveData = null): string Builds the output based upon a file name and any data that has already been set.
/**
* Builds the output based upon a file name and any
* data that has already been set.
*
* Valid $options:
* - cache Number of seconds to cache for
* - cache_name Name to use for cache
*
* @param string $view File name of the view source
* @param array|null $options Reserved for 3rd-party uses since
* it might be needed to pass additional info
* to other template engines.
* @param bool|null $saveData If true, saves data for subsequent calls,
* if false, cleans the data after displaying,
* if null, uses the config setting.
*/
Defined in <ROOT>/social/View/View.php:166
⧉public renderString(string $view, ?array $options = null, ?bool $saveData = null): string Builds the output based upon a string and any data that has already been set....
/**
* Builds the output based upon a string and any
* data that has already been set.
* Cache does not apply, because there is no "key".
*
* @param string $view The view contents
* @param array|null $options Reserved for 3rd-party uses since
* it might be needed to pass additional info
* to other template engines.
* @param bool|null $saveData If true, saves data for subsequent calls,
* if false, cleans the data after displaying,
* if null, uses the config setting.
*/
Defined in <ROOT>/social/View/View.php:277
⧉public excerpt(string $string, int $length = 20): string Extract first bit of a long string and add ellipsis
/**
* Extract first bit of a long string and add ellipsis
*/
Defined in <ROOT>/social/View/View.php:300
⧉public setData(array $data = array(), ?string $context = null): CodeIgniter\View\RendererInterface Sets several pieces of view data at once.
/**
* Sets several pieces of view data at once.
*
* @param string|null $context The context to escape it for: html, css, js, url
* If null, no escaping will happen
* @phpstan-param null|'html'|'js'|'css'|'url'|'attr'|'raw' $context
*/
Defined in <ROOT>/social/View/View.php:312
⧉public setVar(string $name, $value = null, ?string $context = null): CodeIgniter\View\RendererInterface Sets a single piece of view data.
/**
* Sets a single piece of view data.
*
* @param mixed $value
* @param string|null $context The context to escape it for: html, css, js, url
* If null, no escaping will happen
* @phpstan-param null|'html'|'js'|'css'|'url'|'attr'|'raw' $context
*/
Defined in <ROOT>/social/View/View.php:332
⧉public resetData(): CodeIgniter\View\RendererInterface Removes all of the view data from the system.
/**
* Removes all of the view data from the system.
*/
Defined in <ROOT>/social/View/View.php:347
⧉public getData(): array Returns the current data that will be displayed in the view.
/**
* Returns the current data that will be displayed in the view.
*/
Defined in <ROOT>/social/View/View.php:357
⧉public extend(string $layout) Specifies that the current view should extend an existing layout.
/**
* Specifies that the current view should extend an existing layout.
*/
Defined in <ROOT>/social/View/View.php:365
⧉public section(string $name) Starts holds content for a section within the layout.
/**
* Starts holds content for a section within the layout.
*
* @param string $name Section name
*/
Defined in <ROOT>/social/View/View.php:375
⧉public endSection() Captures the last section
/**
* Captures the last section
*
* @throws RuntimeException
*/
Defined in <ROOT>/social/View/View.php:389
⧉public renderSection(string $sectionName) Renders a section's contents.
/**
* Renders a section's contents.
*/
Defined in <ROOT>/social/View/View.php:410
⧉public include(string $view, ?array $options = null, $saveData = true): string Used within layout views to include additional views.
/**
* Used within layout views to include additional views.
*
* @param bool $saveData
*/
Defined in <ROOT>/social/View/View.php:429
⧉public getPerformanceData(): array Returns the performance data that might have been collected during the execut...
/**
* Returns the performance data that might have been collected
* during the execution. Used primarily in the Debug Toolbar.
*/
Defined in <ROOT>/social/View/View.php:438
⧉protected decorateOutput(string $html): string Runs the generated output through any declared view decorators.
/**
* Runs the generated output through any declared
* view decorators.
*/
Defined in <ROOT>/social/View/ViewDecoratorTrait.php:22
⧉protected logPerformance(float $start, float $end, string $view) Logs performance data for rendering a view.
/**
* Logs performance data for rendering a view.
*/
Defined in <ROOT>/social/View/View.php:446
/**
* Runs the validation process, returning true/false determining whether
* validation was successful or not.
*
* @param array|null $data The array of data to validate.
* @param string|null $group The predefined group of rules to apply.
* @param string|null $dbGroup The database group to use.
*/
Defined in <ROOT>/social/Validation/Validation.php:109
⧉public check($value, string $rule, array $errors = array()): bool Runs the validation process, returning true or false determining whether vali...
/**
* Runs the validation process, returning true or false
* determining whether validation was successful or not.
*
* @param array|bool|float|int|object|string|null $value
* @param string[] $errors
*/
Defined in <ROOT>/social/Validation/Validation.php:189
⧉public withRequest(CodeIgniter\HTTP\RequestInterface $request): CodeIgniter\Validation\ValidationInterface Takes a Request object and grabs the input data to use from its array values.
/**
* Takes a Request object and grabs the input data to use from its
* array values.
*/
Defined in <ROOT>/social/Validation/Validation.php:386
⧉public setRule(string $field, ?string $label, $rules, array $errors = array()): $this Sets an individual rule and custom error messages for a single field.
/**
* Sets an individual rule and custom error messages for a single field.
*
* The custom error message should be just the messages that apply to
* this field, like so:
*
* [
* 'rule' => 'message',
* 'rule' => 'message'
* ]
*
* @param array|string $rules
*
* @return $this
*
* @throws TypeError
*/
Defined in <ROOT>/social/Validation/Validation.php:423
⧉public setRules(array $rules, array $errors = array()): CodeIgniter\Validation\ValidationInterface Stores the rules that should be used to validate the items. Rules should be a...
/**
* Stores the rules that should be used to validate the items.
* Rules should be an array formatted like:
*
* [
* 'field' => 'rule1|rule2'
* ]
*
* The $errors array should be formatted like:
* [
* 'field' => [
* 'rule' => 'message',
* 'rule' => 'message
* ],
* ]
*
* @param array $errors // An array of custom error messages
*/
Defined in <ROOT>/social/Validation/Validation.php:463
⧉public getRules(): array Returns all of the rules currently defined.
/**
* Returns all of the rules currently defined.
*/
Defined in <ROOT>/social/Validation/Validation.php:490
⧉public hasRule(string $field): bool Checks to see if the rule for key $field has been set or not.
/**
* Checks to see if the rule for key $field has been set or not.
*/
Defined in <ROOT>/social/Validation/Validation.php:498
⧉public getRuleGroup(string $group): array Get rule group.
/**
* Get rule group.
*
* @param string $group Group.
*
* @return string[] Rule group.
*
* @throws InvalidArgumentException If group not found.
*/
Defined in <ROOT>/social/Validation/Validation.php:512
⧉public setRuleGroup(string $group) Set rule group.
/**
* Set rule group.
*
* @param string $group Group.
*
* @throws InvalidArgumentException If group not found.
*/
Defined in <ROOT>/social/Validation/Validation.php:532
⧉public listErrors(string $template = 'list'): string Returns the rendered HTML of the errors as defined in $template.
/**
* Returns the rendered HTML of the errors as defined in $template.
*/
Defined in <ROOT>/social/Validation/Validation.php:546
⧉public showError(string $field, string $template = 'single'): string Displays a single error in formatted HTML as defined in the $template view.
/**
* Displays a single error in formatted HTML as defined in the $template view.
*/
Defined in <ROOT>/social/Validation/Validation.php:560
⧉public loadRuleGroup(?string $group = null): array|ValidationException|null Loads custom rule groups (if set) into the current rules.
/**
* Loads custom rule groups (if set) into the current rules.
*
* Rules can be pre-defined in Config\Validation and can
* be any name, but must all still be an array of the
* same format used with setRules(). Additionally, check
* for {group}_errors for an array of custom error messages.
*
* @return array|ValidationException|null
*/
Defined in <ROOT>/social/Validation/Validation.php:600
⧉public hasError(string $field): bool Checks to see if an error exists for the given field.
/**
* Checks to see if an error exists for the given field.
*/
Defined in <ROOT>/social/Validation/Validation.php:680
⧉public getError(?string $field = null): string Returns the error(s) for a specified $field (or empty string if not set).
/**
* Returns the error(s) for a specified $field (or empty string if not
* set).
*/
Defined in <ROOT>/social/Validation/Validation.php:691
⧉public getErrors(): array Returns the array of errors that were encountered during a run() call. The ar...
/**
* Returns the array of errors that were encountered during
* a run() call. The array should be in the following format:
*
* [
* 'field1' => 'error message',
* 'field2' => 'error message',
* ]
*
* @return array<string, string>
*
* @codeCoverageIgnore
*/
Defined in <ROOT>/social/Validation/Validation.php:718
⧉public setError(string $field, string $error): CodeIgniter\Validation\ValidationInterface Sets the error for a specific field. Used by custom validation methods.
/**
* Sets the error for a specific field. Used by custom validation methods.
*/
Defined in <ROOT>/social/Validation/Validation.php:733
⧉public reset(): CodeIgniter\Validation\ValidationInterface Resets the class to a blank slate. Should be called whenever you need to proc...
/**
* Resets the class to a blank slate. Should be called whenever
* you need to process more than one array.
*/
Defined in <ROOT>/social/Validation/Validation.php:822
⧉protected processRules(string $field, ?string $label, $value, $rules = null, ?array $data = null, ?string $originalField = null): bool Runs all of $rules against $field, until one fails, or all of them have been ...
/**
* Runs all of $rules against $field, until one fails, or
* all of them have been processed. If one fails, it adds
* the error to $this->errors and moves on to the next,
* so that we can collect all of the first errors.
*
* @param array|string $value
* @param array|null $rules
* @param array $data The array of data to validate, with `DBGroup`.
* @param string|null $originalField The original asterisk field name like "foo.*.bar".
*/
Defined in <ROOT>/social/Validation/Validation.php:207
⧉protected loadRuleSets() Loads all of the rulesets classes that have been defined in the Config\Valida...
/**
* Loads all of the rulesets classes that have been defined in the
* Config\Validation and stores them locally so we can use them.
*/
Defined in <ROOT>/social/Validation/Validation.php:579
⧉protected fillPlaceholders(array $rules, array $data): array Replace any placeholders within the rules with the values that match the 'key...
/**
* Replace any placeholders within the rules with the values that
* match the 'key' of any properties being set. For example, if
* we had the following $data array:
*
* [ 'id' => 13 ]
*
* and the following rule:
*
* 'required|is_unique[users,email,id,{id}]'
*
* The value of {id} would be replaced with the actual id in the form data:
*
* 'required|is_unique[users,email,id,13]'
*/
Defined in <ROOT>/social/Validation/Validation.php:642
/**
* Attempts to find the appropriate error message
*
* @param string|null $value The value that caused the validation to fail.
*/
Defined in <ROOT>/social/Validation/Validation.php:745
⧉protected splitRules(string $rules): array Split rules string by pipe operator.
/**
* Split rules string by pipe operator.
*/
Defined in <ROOT>/social/Validation/Validation.php:780
⧉private isStringList(array $array): bool Is the array a string list `list<string>`?
/**
* Is the array a string list `list<string>`?
*/
Defined in <ROOT>/social/Validation/Validation.php:359
Inherited from App\Models\CiModel
Defined in <ROOT>/fourm/Models/CiModel.php:127
⇄⧉public lastAction($table, $expression)
$value->lastAction($table, $expression)
Inherited from App\Models\CiModel
Defined in <ROOT>/fourm/Models/CiModel.php:136
⇄⧉public getPrevious($table, $postId)
$value->getPrevious($table, $postId)
Inherited from App\Models\CiModel
Defined in <ROOT>/fourm/Models/CiModel.php:151
⇄⧉public setTable(string $table): $this Specify the table associated with a model
$value->setTable(string $table)
/**
* Specify the table associated with a model
*
* @param string $table Table
*
* @return $this
*/
Inherited from CodeIgniter\Model
Defined in <ROOT>/social/Model.php:151
⇄⧉public getIdValue($data): array|int|string|null Returns the id value for the data array or object
$value->getIdValue($data)
/**
* Returns the id value for the data array or object
*
* @param array|object $data Data
*
* @return array|int|string|null
*/
Inherited from CodeIgniter\Model
Defined in <ROOT>/social/Model.php:483
⇄⧉public chunk(int $size, Closure $userFunc) Loops over records in batches, allowing you to operate on them. Works with $t...
$value->chunk(int $size, Closure $userFunc)
/**
* Loops over records in batches, allowing you to operate on them.
* Works with $this->builder to get the Compiled select to
* determine the rows to operate on.
* This method works only with dbCalls.
*
* @throws DataException
*/
Inherited from CodeIgniter\Model
Defined in <ROOT>/social/Model.php:504
⇄⧉public countAllResults(bool $reset = true, bool $test = false): mixed Override countAllResults to account for soft deleted accounts.
/**
* Override countAllResults to account for soft deleted accounts.
*
* @return mixed
*/
Inherited from CodeIgniter\Model
Defined in <ROOT>/social/Model.php:538
⇄⧉public builder(?string $table = null): BaseBuilder Provides a shared instance of the Query Builder.
$value->builder(?string $table = null)
/**
* Provides a shared instance of the Query Builder.
*
* @return BaseBuilder
*
* @throws ModelException
*/
Inherited from CodeIgniter\Model
Defined in <ROOT>/social/Model.php:561
⇄⧉public set($key, $value = '', ?bool $escape = null): $this Captures the builder's set() method so that we can validate the data here. Th...
/**
* Captures the builder's set() method so that we can validate the
* data here. This allows it to be used with any of the other
* builder methods and still get validated data, like replace.
*
* @param mixed $key Field name, or an array of field/value pairs
* @param mixed $value Field value, if $key is a single field
* @param bool|null $escape Whether to escape values
*
* @return $this
*/
Inherited from CodeIgniter\Model
Defined in <ROOT>/social/Model.php:608
⇄⧉public insert($data = null, bool $returnID = true): BaseResult|false|int|object|string Inserts data into the database. If an object is provided, it will attempt to ...
/**
* Inserts data into the database. If an object is provided,
* it will attempt to convert it to an array.
*
* @param array|object|null $data
* @param bool $returnID Whether insert ID should be returned or not.
*
* @return BaseResult|false|int|object|string
*
* @throws ReflectionException
*/
Inherited from CodeIgniter\Model
Defined in <ROOT>/social/Model.php:653
⇄⧉public update($id = null, $data = null): bool Updates a single record in the database. If an object is provided, it will at...
$value->update($id = null, $data = null)
/**
* Updates a single record in the database. If an object is provided,
* it will attempt to convert it into an array.
*
* @param array|int|string|null $id
* @param array|object|null $data
*
* @throws ReflectionException
*/
Inherited from CodeIgniter\Model
Defined in <ROOT>/social/Model.php:679
⧉public __get(string $name): mixed Provides/instantiates the builder/db connection and model's table/primary key...
/**
* Provides/instantiates the builder/db connection and model's table/primary key names and return type.
*
* @param string $name Name
*
* @return mixed
*/
Inherited from CodeIgniter\Model
Defined in <ROOT>/social/Model.php:729
⧉public __isset(string $name): bool Checks for the existence of properties across this model, builder, and db con...
/**
* Checks for the existence of properties across this model, builder, and db connection.
*
* @param string $name Name
*/
Inherited from CodeIgniter\Model
Defined in <ROOT>/social/Model.php:747
⧉public __call(string $name, array $params): mixed Provides direct access to method in the builder (if available) and the databa...
/**
* Provides direct access to method in the builder (if available)
* and the database connection.
*
* @return mixed
*/
Inherited from CodeIgniter\Model
Defined in <ROOT>/social/Model.php:762
⇄⧉public find($id = null): array|object|null The resulting row of data, or null. Fetches the row of database
$value->find($id = null)
/**
* Fetches the row of database
*
* @param array|int|string|null $id One primary key or an array of primary keys
*
* @return array|object|null The resulting row of data, or null.
*/
Inherited from CodeIgniter\BaseModel
Defined in <ROOT>/social/BaseModel.php:505
⇄⧉public findColumn(string $columnName): array|null The resulting row of data, or null if no data found. Fetches the column of database
$value->findColumn(string $columnName)
/**
* Fetches the column of database
*
* @param string $columnName Column Name
*
* @return array|null The resulting row of data, or null if no data found.
*
* @throws DataException
*/
Inherited from CodeIgniter\BaseModel
Defined in <ROOT>/social/BaseModel.php:549
⇄⧉public findAll(int $limit0, int $offset0): array Fetches all results, while optionally limiting them.
$value->findAll(int $limit0, int $offset0)
/**
* Fetches all results, while optionally limiting them.
*
* @param int $limit Limit
* @param int $offset Offset
*
* @return array
*/
Inherited from CodeIgniter\BaseModel
Defined in <ROOT>/social/BaseModel.php:568
⇄⧉public first(): array|object|null Returns the first row of the result set.
$value->first()
/**
* Returns the first row of the result set.
*
* @return array|object|null
*/
Inherited from CodeIgniter\BaseModel
Defined in <ROOT>/social/BaseModel.php:608
⇄⧉public save($data): bool A convenience method that will attempt to determine whether the data should b...
$value->save($data)
/**
* A convenience method that will attempt to determine whether the
* data should be inserted or updated. Will work with either
* an array or object. When using with custom class objects,
* you must ensure that the class will provide access to the class
* variables, even if through a magic method.
*
* @param array|object $data Data
*
* @throws ReflectionException
*/
Inherited from CodeIgniter\BaseModel
Defined in <ROOT>/social/BaseModel.php:650
⇄⧉public getInsertID(): int|string Returns last insert ID or 0.
$value->getInsertID()
/**
* Returns last insert ID or 0.
*
* @return int|string
*/
Inherited from CodeIgniter\BaseModel
Defined in <ROOT>/social/BaseModel.php:685
⇄⧉public insertBatch(?array $set = null, ?bool $escape = null, int $batchSize = 100, bool $testing = false): bool|int Number of rows inserted or FALSE on failure Compiles batch insert runs the queries, validating each row prior.
/**
* Compiles batch insert runs the queries, validating each row prior.
*
* @param array|null $set an associative array of insert values
* @param bool|null $escape Whether to escape values
* @param int $batchSize The size of the batch to run
* @param bool $testing True means only number of records is returned, false will execute the query
*
* @return bool|int Number of rows inserted or FALSE on failure
*
* @throws ReflectionException
*/
Inherited from CodeIgniter\BaseModel
Defined in <ROOT>/social/BaseModel.php:785
⇄⧉public updateBatch(?array $set = null, ?string $index = null, int $batchSize = 100, bool $returnSQL = false): mixed Number of rows affected or FALSE on failure Compiles an update and runs the query
/**
* Compiles an update and runs the query
*
* @param array|null $set An associative array of update values
* @param string|null $index The where key
* @param int $batchSize The size of the batch to run
* @param bool $returnSQL True means SQL is returned, false will execute the query
*
* @return mixed Number of rows affected or FALSE on failure
*
* @throws DatabaseException
* @throws ReflectionException
*/
Inherited from CodeIgniter\BaseModel
Defined in <ROOT>/social/BaseModel.php:911
⇄⧉public delete($id = null, bool $purge = false): BaseResult|bool Deletes a single record from the database where $id matches
$value->delete($id = null, bool $purge = false)
/**
* Deletes a single record from the database where $id matches
*
* @param array|int|string|null $id The rows primary key(s)
* @param bool $purge Allows overriding the soft deletes setting.
*
* @return BaseResult|bool
*
* @throws DatabaseException
*/
Inherited from CodeIgniter\BaseModel
Defined in <ROOT>/social/BaseModel.php:965
⇄⧉public purgeDeleted(): mixed Permanently deletes all rows that have been marked as deleted through soft de...
$value->purgeDeleted()
/**
* Permanently deletes all rows that have been marked as deleted
* through soft deletes (deleted = 1)
*
* @return mixed
*/
Inherited from CodeIgniter\BaseModel
Defined in <ROOT>/social/BaseModel.php:1002
⇄⧉public withDeleted(bool $val = true): $this Sets $useSoftDeletes value so that we can temporarily override the soft delet...
$value->withDeleted(bool $val = true)
/**
* Sets $useSoftDeletes value so that we can temporarily override
* the soft deletes settings. Can be used for all find* methods.
*
* @param bool $val Value
*
* @return $this
*/
Inherited from CodeIgniter\BaseModel
Defined in <ROOT>/social/BaseModel.php:1019
⇄⧉public onlyDeleted(): $this Works with the find* methods to return only the rows that have been deleted.
$value->onlyDeleted()
/**
* Works with the find* methods to return only the rows that
* have been deleted.
*
* @return $this
*/
Inherited from CodeIgniter\BaseModel
Defined in <ROOT>/social/BaseModel.php:1032
⇄⧉public replace(?array $data = null, bool $returnSQL = false): mixed Compiles a replace and runs the query
/**
* Compiles a replace and runs the query
*
* @param array|null $data Data
* @param bool $returnSQL Set to true to return Query String
*
* @return mixed
*/
Inherited from CodeIgniter\BaseModel
Defined in <ROOT>/social/BaseModel.php:1048
⇄⧉public errors(bool $forceDB = false): array<string,string> Grabs the last error(s) that occurred. If data was validated, it will first c...
$value->errors(bool $forceDB = false)
/**
* Grabs the last error(s) that occurred. If data was validated,
* it will first check for errors there, otherwise will try to
* grab the last error from the Database connection.
* The return array should be in the following format:
* ['source' => 'message']
*
* @param bool $forceDB Always grab the db error, not validation
*
* @return array<string,string>
*/
Inherited from CodeIgniter\BaseModel
Defined in <ROOT>/social/BaseModel.php:1073
⇄⧉public paginate(?int $perPage = null, string $group = 'default', ?int $page = null, int $segment0): array|null Works with Pager to get the size and offset parameters. Expects a GET variabl...
/**
* Works with Pager to get the size and offset parameters.
* Expects a GET variable (?page=2) that specifies the page of results
* to display.
*
* @param int|null $perPage Items per page
* @param string $group Will be used by the pagination library to identify a unique pagination set.
* @param int|null $page Optional page number (useful when the page number is provided in different way)
* @param int $segment Optional URI segment number (if page number is provided by URI segment)
*
* @return array|null
*/
Inherited from CodeIgniter\BaseModel
Defined in <ROOT>/social/BaseModel.php:1095
⇄⧉public setAllowedFields(array $allowedFields): $this It could be used when you have to change default or override current allowed ...
$value->setAllowedFields(array $allowedFields)
/**
* It could be used when you have to change default or override current allowed fields.
*
* @param array $allowedFields Array with names of fields
*
* @return $this
*/
Inherited from CodeIgniter\BaseModel
Defined in <ROOT>/social/BaseModel.php:1120
⇄⧉public protect(bool $protect = true): $this Sets whether or not we should whitelist data set during updates or inserts ag...
$value->protect(bool $protect = true)
/**
* Sets whether or not we should whitelist data set during
* updates or inserts against $this->availableFields.
*
* @param bool $protect Value
*
* @return $this
*/
Inherited from CodeIgniter\BaseModel
Defined in <ROOT>/social/BaseModel.php:1135
⇄⧉public skipValidation(bool $skip = true): $this Set the value of the skipValidation flag.
$value->skipValidation(bool $skip = true)
/**
* Set the value of the skipValidation flag.
*
* @param bool $skip Value
*
* @return $this
*/
Inherited from CodeIgniter\BaseModel
Defined in <ROOT>/social/BaseModel.php:1258
⇄⧉public setValidationMessages(array $validationMessages): $this Allows to set validation messages. It could be used when you have to change d...
/**
* Allows to set validation messages.
* It could be used when you have to change default or override current validate messages.
*
* @param array $validationMessages Value
*
* @return $this
*/
Inherited from CodeIgniter\BaseModel
Defined in <ROOT>/social/BaseModel.php:1273
⇄⧉public setValidationMessage(string $field, array $fieldMessages): $this Allows to set field wise validation message. It could be used when you have t...
/**
* Allows to set field wise validation message.
* It could be used when you have to change default or override current validate messages.
*
* @param string $field Field Name
* @param array $fieldMessages Validation messages
*
* @return $this
*/
Inherited from CodeIgniter\BaseModel
Defined in <ROOT>/social/BaseModel.php:1289
⇄⧉public setValidationRules(array $validationRules): $this Allows to set validation rules. It could be used when you have to change defa...
/**
* Allows to set validation rules.
* It could be used when you have to change default or override current validate rules.
*
* @param array $validationRules Value
*
* @return $this
*/
Inherited from CodeIgniter\BaseModel
Defined in <ROOT>/social/BaseModel.php:1304
⇄⧉public setValidationRule(string $field, $fieldRules): $this Allows to set field wise validation rules. It could be used when you have to ...
/**
* Allows to set field wise validation rules.
* It could be used when you have to change default or override current validate rules.
*
* @param string $field Field Name
* @param array|string $fieldRules Validation rules
*
* @return $this
*/
Inherited from CodeIgniter\BaseModel
Defined in <ROOT>/social/BaseModel.php:1320
⇄⧉public cleanRules(bool $choice = false): $this Should validation rules be removed before saving? Most handy when doing updates.
$value->cleanRules(bool $choice = false)
/**
* Should validation rules be removed before saving?
* Most handy when doing updates.
*
* @param bool $choice Value
*
* @return $this
*/
Inherited from CodeIgniter\BaseModel
Defined in <ROOT>/social/BaseModel.php:1335
⇄⧉public validate($data): bool Validate the data against the validation rules (or the validation group) spec...
$value->validate($data)
/**
* Validate the data against the validation rules (or the validation group)
* specified in the class property, $validationRules.
*
* @param array|object $data Data
*/
Inherited from CodeIgniter\BaseModel
Defined in <ROOT>/social/BaseModel.php:1348
⇄⧉public getValidationRules(array $options = array()): array Returns the model's defined validation rules so that they can be used elsewhe...
/**
* Returns the model's defined validation rules so that they
* can be used elsewhere, if needed.
*
* @param array $options Options
*/
Inherited from CodeIgniter\BaseModel
Defined in <ROOT>/social/BaseModel.php:1380
⇄⧉public getValidationMessages(): array Returns the model's define validation messages so they can be used elsewhere,...
$value->getValidationMessages()
/**
* Returns the model's define validation messages so they
* can be used elsewhere, if needed.
*/
Inherited from CodeIgniter\BaseModel
Defined in <ROOT>/social/BaseModel.php:1403
⇄⧉public allowCallbacks(bool $val = true): $this Sets $tempAllowCallbacks value so that we can temporarily override the settin...
$value->allowCallbacks(bool $val = true)
/**
* Sets $tempAllowCallbacks value so that we can temporarily override
* the setting. Resets after the next method that uses triggers.
*
* @param bool $val value
*
* @return $this
*/
Inherited from CodeIgniter\BaseModel
Defined in <ROOT>/social/BaseModel.php:1439
⇄⧉public asArray(): $this Sets the return type of the results to be as an associative array.
$value->asArray()
/**
* Sets the return type of the results to be as an associative array.
*
* @return $this
*/
Inherited from CodeIgniter\BaseModel
Defined in <ROOT>/social/BaseModel.php:1491
⇄⧉public asObject(string $class = 'object'): $this Sets the return type to be of the specified type of object. Defaults to a sim...
$value->asObject(string $class = 'object')
/**
* Sets the return type to be of the specified type of object.
* Defaults to a simple object, but can be any class that has
* class vars with the same name as the collection columns,
* or at least allows them to be created.
*
* @param string $class Class Name
*
* @return $this
*/
Inherited from CodeIgniter\BaseModel
Defined in <ROOT>/social/BaseModel.php:1508
⧉protected doFind(bool $singleton, $id = null): array|object|null The resulting row of data, or null. Fetches the row of database from $this->table with a primary key matching $id...
/**
* Fetches the row of database from $this->table with a primary key
* matching $id.
* This method works only with dbCalls.
*
* @param bool $singleton Single or multiple results
* @param array|int|string|null $id One primary key or an array of primary keys
*
* @return array|object|null The resulting row of data, or null.
*/
Inherited from CodeIgniter\Model
Defined in <ROOT>/social/Model.php:168
⧉protected doFindColumn(string $columnName): array|null The resulting row of data, or null if no data found. Fetches the column of database from $this->table. This method works only with...
/**
* Fetches the column of database from $this->table.
* This method works only with dbCalls.
*
* @param string $columnName Column Name
*
* @return array|null The resulting row of data, or null if no data found.
*/
Inherited from CodeIgniter\Model
Defined in <ROOT>/social/Model.php:199
⧉protected doFindAll(int $limit0, int $offset0): array Works with the current Query Builder instance to return all results, while op...
/**
* Works with the current Query Builder instance to return
* all results, while optionally limiting them.
* This method works only with dbCalls.
*
* @param int $limit Limit
* @param int $offset Offset
*
* @return array
*/
Inherited from CodeIgniter\Model
Defined in <ROOT>/social/Model.php:214
⧉protected doFirst(): array|object|null Returns the first row of the result set. Will take any previous Query Builder...
/**
* Returns the first row of the result set. Will take any previous
* Query Builder calls into account when determining the result set.
* This method works only with dbCalls.
*
* @return array|object|null
*/
Inherited from CodeIgniter\Model
Defined in <ROOT>/social/Model.php:234
⧉protected doInsert(array $data): bool Inserts data into the current table. This method works only with dbCalls.
/**
* Inserts data into the current table.
* This method works only with dbCalls.
*
* @param array $data Data
*
* @return bool
*/
Inherited from CodeIgniter\Model
Defined in <ROOT>/social/Model.php:261
⧉protected doInsertBatch(?array $set = null, ?bool $escape = null, int $batchSize = 100, bool $testing = false): bool|int Number of rows inserted or FALSE on failure Compiles batch insert strings and runs the queries, validating each row prior...
/**
* Compiles batch insert strings and runs the queries, validating each row prior.
* This method works only with dbCalls.
*
* @param array|null $set An associative array of insert values
* @param bool|null $escape Whether to escape values
* @param int $batchSize The size of the batch to run
* @param bool $testing True means only number of records is returned, false will execute the query
*
* @return bool|int Number of rows inserted or FALSE on failure
*/
Inherited from CodeIgniter\Model
Defined in <ROOT>/social/Model.php:300
⧉protected doUpdate($id = null, $data = null): bool Updates a single record in $this->table. This method works only with dbCalls.
/**
* Updates a single record in $this->table.
* This method works only with dbCalls.
*
* @param array|int|string|null $id
* @param array|null $data
*/
Inherited from CodeIgniter\Model
Defined in <ROOT>/social/Model.php:322
⧉protected doUpdateBatch(?array $set = null, ?string $index = null, int $batchSize = 100, bool $returnSQL = false): mixed Number of rows affected or FALSE on failure Compiles an update string and runs the query This method works only with dbCa...
/**
* Compiles an update string and runs the query
* This method works only with dbCalls.
*
* @param array|null $set An associative array of update values
* @param string|null $index The where key
* @param int $batchSize The size of the batch to run
* @param bool $returnSQL True means SQL is returned, false will execute the query
*
* @return mixed Number of rows affected or FALSE on failure
*
* @throws DatabaseException
*/
Inherited from CodeIgniter\Model
Defined in <ROOT>/social/Model.php:354
⧉protected doDelete($id = null, bool $purge = false): bool|string Deletes a single record from $this->table where $id matches the table's prima...
/**
* Deletes a single record from $this->table where $id matches
* the table's primaryKey
* This method works only with dbCalls.
*
* @param array|int|string|null $id The rows primary key(s)
* @param bool $purge Allows overriding the soft deletes setting.
*
* @return bool|string
*
* @throws DatabaseException
*/
Inherited from CodeIgniter\Model
Defined in <ROOT>/social/Model.php:371
⧉protected doPurgeDeleted(): bool|string Returns a string if in test mode. Permanently deletes all rows that have been marked as deleted through soft de...
/**
* Permanently deletes all rows that have been marked as deleted
* through soft deletes (deleted = 1)
* This method works only with dbCalls.
*
* @return bool|string Returns a string if in test mode.
*/
Inherited from CodeIgniter\Model
Defined in <ROOT>/social/Model.php:411
⧉protected doOnlyDeleted() Works with the find* methods to return only the rows that have been deleted. ...
/**
* Works with the find* methods to return only the rows that
* have been deleted.
* This method works only with dbCalls.
*/
Inherited from CodeIgniter\Model
Defined in <ROOT>/social/Model.php:423
⧉protected doReplace(?array $data = null, bool $returnSQL = false): mixed Compiles a replace into string and runs the query This method works only with...
/**
* Compiles a replace into string and runs the query
* This method works only with dbCalls.
*
* @param array|null $data Data
* @param bool $returnSQL Set to true to return Query String
*
* @return mixed
*/
Inherited from CodeIgniter\Model
Defined in <ROOT>/social/Model.php:437
⧉protected doErrors(): array<string,string> Grabs the last error(s) that occurred from the Database connection. The retur...
/**
* Grabs the last error(s) that occurred from the Database connection.
* The return array should be in the following format:
* ['source' => 'message']
* This method works only with dbCalls.
*
* @return array<string,string>
*/
Inherited from CodeIgniter\Model
Defined in <ROOT>/social/Model.php:450
⧉protected idValue($data): array|int|string|null Returns the id value for the data array or object
/**
* Returns the id value for the data array or object
*
* @param array|object $data Data
*
* @return array|int|string|null
*
* @deprecated Use getIdValue() instead. Will be removed in version 5.0.
*/
Inherited from CodeIgniter\Model
Defined in <ROOT>/social/Model.php:471
⧉protected shouldUpdate($data): bool This method is called on save to determine if entry have to be updated If thi...
/**
* This method is called on save to determine if entry have to be updated
* If this method return false insert operation will be executed
*
* @param array|object $data Data
*/
Inherited from CodeIgniter\Model
Defined in <ROOT>/social/Model.php:627
⧉protected objectToRawArray($data, bool $onlyChanged = true, bool $recursive = false): ?array Takes a class an returns an array of it's public and protected properties as ...
/**
* Takes a class an returns an array of it's public and protected
* properties as an array with raw values.
*
* @param object|string $data
* @param bool $recursive If true, inner entities will be casted as array as well
*
* @return array|null Array
*
* @throws ReflectionException
*/
Inherited from CodeIgniter\Model
Defined in <ROOT>/social/Model.php:707
⧉protected initialize() Initializes the instance with any additional steps. Optionally implemented by...
/**
* Initializes the instance with any additional steps.
* Optionally implemented by child classes.
*/
Inherited from CodeIgniter\BaseModel
Defined in <ROOT>/social/BaseModel.php:309
⧉protected doProtectFields(array $data): array Ensures that only the fields that are allowed to be updated are in the data a...
/**
* Ensures that only the fields that are allowed to be updated
* are in the data array.
*
* Used by insert() and update() to protect against mass assignment
* vulnerabilities.
*
* @param array $data Data
*
* @throws DataException
*/
Inherited from CodeIgniter\BaseModel
Defined in <ROOT>/social/BaseModel.php:1153
⧉protected setDate(?int $userData = null): mixed Sets the date or current date if null value is passed
/**
* Sets the date or current date if null value is passed
*
* @param int|null $userData An optional PHP timestamp to be converted.
*
* @return mixed
*
* @throws ModelException
*/
Inherited from CodeIgniter\BaseModel
Defined in <ROOT>/social/BaseModel.php:1181
⧉protected intToDate(int $value): int|string A utility function to allow child models to use the type of date/time format ...
/**
* A utility function to allow child models to use the type of
* date/time format that they prefer. This is primarily used for
* setting created_at, updated_at and deleted_at values, but can be
* used by inheriting classes.
*
* The available time formats are:
* - 'int' - Stores the date as an integer timestamp
* - 'datetime' - Stores the data in the SQL datetime format
* - 'date' - Stores the date (only) in the SQL date format.
*
* @param int $value value
*
* @return int|string
*
* @throws ModelException
*/
Inherited from CodeIgniter\BaseModel
Defined in <ROOT>/social/BaseModel.php:1205
⧉protected timeToDate(CodeIgniter\I18n\Time $value): int|string Converts Time value to string using $this->dateFormat
/**
* Converts Time value to string using $this->dateFormat
*
* The available time formats are:
* - 'int' - Stores the date as an integer timestamp
* - 'datetime' - Stores the data in the SQL datetime format
* - 'date' - Stores the date (only) in the SQL date format.
*
* @param Time $value value
*
* @return int|string
*/
Inherited from CodeIgniter\BaseModel
Defined in <ROOT>/social/BaseModel.php:1234
⧉protected cleanValidationRules(array $rules, ?array $data = null): array Removes any rules that apply to fields that have not been set currently so th...
/**
* Removes any rules that apply to fields that have not been set
* currently so that rules don't block updating when only updating
* a partial row.
*
* @param array $rules Array containing field name and rule
* @param array|null $data Data
*/
Inherited from CodeIgniter\BaseModel
Defined in <ROOT>/social/BaseModel.php:1416
⧉protected trigger(string $event, array $eventData): mixed A simple event trigger for Model Events that allows additional data manipulat...
/**
* A simple event trigger for Model Events that allows additional
* data manipulation within the model. Specifically intended for
* usage by child models this can be used to format data,
* save/load related classes, etc.
*
* It is the responsibility of the callback methods to return
* the data itself.
*
* Each $eventData array MUST have a 'data' key with the relevant
* data for callback methods (like an array of key/value pairs to insert
* or update, an array of results, etc)
*
* If callbacks are not allowed then returns $eventData immediately.
*
* @param string $event Event
* @param array $eventData Event Data
*
* @return mixed
*
* @throws DataException
*/
Inherited from CodeIgniter\BaseModel
Defined in <ROOT>/social/BaseModel.php:1468
⧉protected objectToArray($data, bool $onlyChanged = true, bool $recursive = false): array Takes a class and returns an array of it's public and protected properties as...
/**
* Takes a class and returns an array of it's public and protected
* properties as an array suitable for use in creates and updates.
* This method uses objectToRawArray() internally and does conversion
* to string on all Time instances
*
* @param object|string $data Data
* @param bool $onlyChanged Only Changed Property
* @param bool $recursive If true, inner entities will be casted as array as well
*
* @return array Array
*
* @throws ReflectionException
*/
Inherited from CodeIgniter\BaseModel
Defined in <ROOT>/social/BaseModel.php:1529
⧉protected transformDataToArray($data, string $type): array Transform data to array
/**
* Transform data to array
*
* @param array|object|null $data Data
* @param string $type Type of data (insert|update)
*
* @throws DataException
* @throws InvalidArgumentException
* @throws ReflectionException
*/
Inherited from CodeIgniter\BaseModel
Defined in <ROOT>/social/BaseModel.php:1591
⧉protected fillPlaceholders(array $rules, array $data): array Replace any placeholders within the rules with the values that match the 'key...
/**
* Replace any placeholders within the rules with the values that
* match the 'key' of any properties being set. For example, if
* we had the following $data array:
*
* [ 'id' => 13 ]
*
* and the following rule:
*
* 'required|is_unique[users,email,id,{id}]'
*
* The value of {id} would be replaced with the actual id in the form data:
*
* 'required|is_unique[users,email,id,13]'
*
* @param array $rules Validation rules
* @param array $data Data
*
* @codeCoverageIgnore
*
* @deprecated use fillPlaceholders($rules, $data) from Validation instead
*/
Inherited from CodeIgniter\BaseModel
Defined in <ROOT>/social/BaseModel.php:1696
⇄⧉public static classToArray($data, $primaryKey = null, string $dateFormat = 'datetime', bool $onlyChanged = true): array Takes a class an returns an array of it's public and protected properties as ...
/**
* Takes a class an returns an array of it's public and protected
* properties as an array suitable for use in creates and updates.
*
* @param object|string $data
* @param string|null $primaryKey
*
* @throws ReflectionException
*
* @codeCoverageIgnore
*
* @deprecated since 4.1
*/
Inherited from CodeIgniter\Model
Defined in <ROOT>/social/Model.php:807
⇄⧉Answer => string (5209) "<p>In the sector of <strong>computer technological</strong> know-how, data s...
$value[0]['Answer']
<p>In the sector of <strong>computer technological</strong> know-how, data systems play a critical function in organizing and storing statistics correctly. Two of the maximum usually used statistics structures are stacks and queues. While each are used to manage collections of information, they operate on special principles and are perfect for specific duties. Understanding the differences among them assist you to pick the proper records structure primarily based at the specific necessities of your <a href="https://en.wikipedia.org/wiki/Software">software</a>.</p>
<h2><strong>What is a Stack?</strong></h2>
<p><img alt="What is a Stack" border="0" hspace="0" src="https://i.postimg.cc/5txb50n2/1713414291257.png" style="border:0px solid black; height:406px; margin-bottom:0px; margin-left:0px; margin-right:0px; margin-top:0px; width:700px" vspace="0" /></p>
<p>A stack is a linear records shape that follows the Last In, First Out (LIFO) precept. In simpler terms, it manner that the most these days introduced item is the primary one to be eliminated. Imagine a stack of plates at a buffet: the remaining plate you location on pinnacle is the first one you’ll take off.</p>
<p><strong>Read Also: <a href="https://www.yourquorum.com/question/what-responsibilities-do-businesses-have-to-protect-customer-data-when-utilizing-ai-tools">What responsibilities do businesses have to protect customer data when utilizing AI tools?</a></strong></p>
<h3><strong>Operations on a Stack:</strong></h3>
<ul>
<li>Push: Adds an item to the top of the stack.</li>
<li>Pop: Removes the object from the top of the stack.</li>
<li>Peek/Top: Returns the object at the pinnacle of the stack with out putting off it.</li>
<li>IsEmpty: Checks if the stack is empty.</li>
<li>Example of a Stack:</li>
<li>Let’s bear in mind a stack of numbers:</li>
</ul>
<p>If you push 15 onto the stack, the stack turns<br />
If then you definately pop an detail, 15 may be eliminated, leaving the stack as [5, 8, 12].<br />
This feature makes stacks useful in situations wherein the most latest information is needed to be processed first, like in undo mechanisms in programs, function calls in programming languages, and parsing expressions in compilers.</p>
<h3><strong>What is a Queue?</strong></h3>
<p>A queue is another linear records structure, but it follows the First In, First Out (FIFO) principle. This manner that the first object introduced is the first one to be eliminated. Think of a queue at a grocery keep checkout: the primary man or woman in line is the first one to be served.</p>
<h3><strong>Real-World Applications:</strong></h3>
<h4><strong>Stack:</strong></h4>
<p>Function Calls in Programming: The machine makes use of a stack to manipulate feature calls. When a feature is referred to as, its context is pushed onto the stack. Once the feature completes, its context is popped off.</p>
<p>Expression Evaluation: Stacks are vital in comparing expressions like postfix (Reverse Polish notation). For instance, to assess the expression three four + five *, a stack can preserve intermediate results as operations are done.</p>
<p>Undo Mechanism: Many programs, like text editors, use stacks to put into effect the undo feature. Each action (e.G., typing a letter, deleting text) is pushed onto a stack, and undoing an action pops the maximum current one.</p>
<h4><strong>Queue:</strong></h4>
<p>Task Scheduling: In working structures, queues are used to manage the execution of techniques. The first method that arrives is the primary one to be performed (FIFO).</p>
<p><strong>You May Also Like: <a href="https://www.yourquorum.com/question/can-i-major-in-computer-science-with-no-coding-experience">Can I major in computer science with no coding experience?</a></strong></p>
<p>Data Streaming: Queues are used in managing records streams where records is processed within the order it arrives. For example, in networking, facts packets are processed within the order they come at the receiver.</p>
<p>Print Queue: In a network of computer systems, documents despatched to a printer are stored in a queue, ensuring that the primary record despatched is outlined first.</p>
<h4><strong>Conclusion</strong>:</h4>
<p>Both stacks and queues are essential statistics structures that assist us manipulate facts efficiently, each with its personal use instances. Stacks are awesome for dealing with data where the most current object is processed first (LIFO), while queues are perfect for processing statistics within the order it arrives (FIFO). By knowledge those statistics systems and their characteristics, builders can make informed choices on which one to apply for particular obligations, optimizing both overall performance and capability in software program development.</p>
<p>Choosing the proper information structure is an vital ability in laptop science, and understanding when to use a stack as opposed to a queue can assist streamline methods on your applications.</p>
<div id="gtx-trans" style="left:657px; position:absolute; top:56.3906px">
<div class="gtx-trans-icon"> </div>
</div>
⧉public setQuery(string $sql, $binds = null, bool $setEscape = true): $this Sets the raw query string to use for this statement.
/**
* Sets the raw query string to use for this statement.
*
* @param mixed $binds
*
* @return $this
*/
Defined in <ROOT>/social/Database/Query.php:106
⧉public setBinds(array $binds, bool $setEscape = true): $this Will store the variables to bind into the query later.
/**
* Will store the variables to bind into the query later.
*
* @return $this
*/
Defined in <ROOT>/social/Database/Query.php:137
⧉public getQuery(): string Returns the final, processed query string after binding, etal has been perfor...
/**
* Returns the final, processed query string after binding, etal
* has been performed.
*/
Defined in <ROOT>/social/Database/Query.php:156
⧉public setDuration(float $start, ?float $end = null): $this Records the execution time of the statement using microtime(true) for it's st...
/**
* Records the execution time of the statement using microtime(true)
* for it's start and end values. If no end value is present, will
* use the current time to determine total duration.
*
* @param float $end
*
* @return $this
*/
Defined in <ROOT>/social/Database/Query.php:174
⧉public getStartTime(bool $returnRaw = false, int $decimals = 6): float|string Returns the start time in seconds with microseconds.
/**
* Returns the start time in seconds with microseconds.
*
* @return float|string
*/
Defined in <ROOT>/social/Database/Query.php:192
⧉public getDuration(int $decimals = 6): string Returns the duration of this query during execution, or null if the query has...
/**
* Returns the duration of this query during execution, or null if
* the query has not been executed yet.
*
* @param int $decimals The accuracy of the returned time.
*/
Defined in <ROOT>/social/Database/Query.php:207
⧉public setError(int $code, string $error): $this Stores the error description that happened for this query.
/**
* Stores the error description that happened for this query.
*
* @return $this
*/
Defined in <ROOT>/social/Database/Query.php:217
⧉public hasError(): bool Reports whether this statement created an error not.
/**
* Reports whether this statement created an error not.
*/
Defined in <ROOT>/social/Database/Query.php:228
⧉public getErrorCode(): int Returns the error code created while executing this statement.
/**
* Returns the error code created while executing this statement.
*/
Defined in <ROOT>/social/Database/Query.php:236
⧉public getErrorMessage(): string Returns the error message created while executing this statement.
/**
* Returns the error message created while executing this statement.
*/
Defined in <ROOT>/social/Database/Query.php:244
⧉public isWriteType(): bool Determines if the statement is a write-type query or not.
/**
* Determines if the statement is a write-type query or not.
*/
Defined in <ROOT>/social/Database/Query.php:252
⧉public swapPrefix(string $orig, string $swap): $this Swaps out one table prefix for a new one.
/**
* Swaps out one table prefix for a new one.
*
* @return $this
*/
Defined in <ROOT>/social/Database/Query.php:262
⧉public getOriginalQuery(): string Returns the original SQL that was passed into the system.
/**
* Returns the original SQL that was passed into the system.
*/
Defined in <ROOT>/social/Database/Query.php:279
⧉public debugToolbarDisplay(): string Returns string to display in debug toolbar
/**
* Returns string to display in debug toolbar
*/
Defined in <ROOT>/social/Database/Query.php:371
⧉public __toString(): string Return text representation of the query
/**
* Return text representation of the query
*/
Defined in <ROOT>/social/Database/Query.php:425
⧉protected compileBinds() Escapes and inserts any binds into the finalQueryString property.
/**
* Escapes and inserts any binds into the finalQueryString property.
*
* @see https://regex101.com/r/EUEhay/5
*/
Defined in <ROOT>/social/Database/Query.php:289
⧉protected matchNamedBinds(string $sql, array $binds): string Match bindings
/**
* Match bindings
*/
Defined in <ROOT>/social/Database/Query.php:317
⧉protected matchSimpleBinds(string $sql, array $binds, int $bindCount, int $ml): string Match bindings
/**
* Match bindings
*/
Defined in <ROOT>/social/Database/Query.php:341
⧉public connect(bool $persistent = false): mixed Connect to the database.
/**
* Connect to the database.
*
* @return mixed
*
* @throws DatabaseException
*/
Defined in <ROOT>/social/Database/MySQLi/Connection.php:79
⧉public reconnect() Keep or establish the connection if no queries have been sent for a length of...
/**
* Keep or establish the connection if no queries have been sent for
* a length of time exceeding the server's idle timeout.
*/
Defined in <ROOT>/social/Database/MySQLi/Connection.php:225
⧉public setDatabase(string $databaseName): bool Select a specific database table to use.
/**
* Select a specific database table to use.
*/
Defined in <ROOT>/social/Database/MySQLi/Connection.php:242
⧉public getVersion(): string Returns a string containing the version of the database being used.
/**
* Returns a string containing the version of the database being used.
*/
Defined in <ROOT>/social/Database/MySQLi/Connection.php:264
⧉public affectedRows(): int Returns the total number of rows affected by this query.
/**
* Returns the total number of rows affected by this query.
*/
Defined in <ROOT>/social/Database/MySQLi/Connection.php:321
⧉public escapeLikeStringDirect($str): string|string[] Escape Like String Direct There are a few instances where MySQLi queries cann...
/**
* Escape Like String Direct
* There are a few instances where MySQLi queries cannot take the
* additional "ESCAPE x" parameter for specifying the escape character
* in "LIKE" strings, and this handles those directly with a backslash.
*
* @param string|string[] $str Input string
*
* @return string|string[]
*/
Defined in <ROOT>/social/Database/MySQLi/Connection.php:348
⧉public error(): array Returns the last error code and message. Must return this format: ['code' => ...
/**
* Returns the last error code and message.
* Must return this format: ['code' => string|int, 'message' => string]
* intval(code) === 0 means "no error".
*
* @return array<string, int|string>
*/
Defined in <ROOT>/social/Database/MySQLi/Connection.php:551
⧉public insertID(): int Insert ID
/**
* Insert ID
*/
Defined in <ROOT>/social/Database/MySQLi/Connection.php:569
/**
* Saves our connection settings.
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:336
⧉public initialize(): mixed Initializes the database connection/settings.
/**
* Initializes the database connection/settings.
*
* @return mixed
*
* @throws DatabaseException
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:365
⧉public close() Close the database connection.
/**
* Close the database connection.
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:432
⧉public persistentConnect(): mixed Create a persistent database connection.
/**
* Create a persistent database connection.
*
* @return mixed
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:452
⧉public getConnection(?string $alias = null): mixed Returns the actual connection object. If both a 'read' and 'write' connection...
/**
* Returns the actual connection object. If both a 'read' and 'write'
* connection has been specified, you can pass either term in to
* get that connection. If you pass either alias in and only a single
* connection is present, it must return the sole connection.
*
* @return mixed
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:465
⧉public getDatabase(): string Returns the name of the current database being used.
/**
* Returns the name of the current database being used.
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:474
⧉public setPrefix(string $prefix = ''): string Set DB Prefix
/**
* Set DB Prefix
*
* Set's the DB Prefix to something new without needing to reconnect
*
* @param string $prefix The prefix
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:486
⧉public getPrefix(): string Returns the database prefix.
/**
* Returns the database prefix.
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:494
⧉public getPlatform(): string The name of the platform in use (MySQLi, Postgre, SQLite3, OCI8, etc)
/**
* The name of the platform in use (MySQLi, Postgre, SQLite3, OCI8, etc)
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:502
⧉public setAliasedTables(array $aliases): $this Sets the Table Aliases to use. These are typically collected during use of th...
/**
* Sets the Table Aliases to use. These are typically
* collected during use of the Builder, and set here
* so queries are built correctly.
*
* @return $this
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:514
⧉public addTableAlias(string $table): $this Add a table alias to our list.
/**
* Add a table alias to our list.
*
* @return $this
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:526
⧉public query(string $sql, $binds = null, bool $setEscapeFlags = true, string $queryClass = ''): BaseResult|bool|Query BaseResult when “read” type query, bool when “write” type query, Query when prepared query Orchestrates a query against the database. Queries must use Database\Statemen...
/**
* Orchestrates a query against the database. Queries must use
* Database\Statement objects to store the query and build it.
* This method works with the cache.
*
* Should automatically handle different connections for read/write
* queries if needed.
*
* @param mixed ...$binds
*
* @return BaseResult|bool|Query BaseResult when “read” type query, bool when “write” type query, Query when prepared query
*
* @todo BC set $queryClass default as null in 4.1
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:556
⧉public simpleQuery(string $sql): mixed Performs a basic query against the database. No binding or caching is perform...
/**
* Performs a basic query against the database. No binding or caching
* is performed, nor are transactions handled. Simply takes a raw
* query string and returns the database-specific result id.
*
* @return mixed
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:660
⧉public transOff() Disable Transactions
/**
* Disable Transactions
*
* This permits transactions to be disabled at run-time.
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:674
/**
* Enable/disable Transaction Strict Mode
*
* When strict mode is enabled, if you are running multiple groups of
* transactions, if one group fails all subsequent groups will be
* rolled back.
*
* If strict mode is disabled, each group is treated autonomously,
* meaning a failure of one group will not affect any others
*
* @param bool $mode = true
*
* @return $this
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:693
/**
* Complete Transaction
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:715
⧉public transStatus(): bool Lets you retrieve the transaction flag to determine if it has failed
/**
* Lets you retrieve the transaction flag to determine if it has failed
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:741
⧉public transBegin(bool $testMode = false): bool Begin Transaction
/**
* Begin Transaction
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:749
⧉public transCommit(): bool Commit Transaction
/**
* Commit Transaction
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:783
/**
* Rollback Transaction
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:802
⧉public table($tableName): BaseBuilder Returns a non-shared new instance of the query builder for this connection.
/**
* Returns a non-shared new instance of the query builder for this connection.
*
* @param array|string $tableName
*
* @return BaseBuilder
*
* @throws DatabaseException
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:842
⧉public newQuery(): CodeIgniter\Database\BaseBuilder Returns a new instance of the BaseBuilder class with a cleared FROM clause.
/**
* Returns a new instance of the BaseBuilder class with a cleared FROM clause.
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:856
⧉public prepare(Closure $func, array $options = array()): BasePreparedQuery|null Creates a prepared statement with the database that can then be used to execu...
/**
* Creates a prepared statement with the database that can then
* be used to execute multiple statements against. Within the
* closure, you would build the query in any normal way, though
* the Query Builder is the expected manner.
*
* Example:
* $stmt = $db->prepare(function($db)
* {
* return $db->table('users')
* ->where('id', 1)
* ->get();
* })
*
* @return BasePreparedQuery|null
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:882
⧉public getLastQuery(): Query Returns the last query's statement object.
/**
* Returns the last query's statement object.
*
* @return Query
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:910
⧉public showLastQuery(): string Returns a string representation of the last query's statement object.
/**
* Returns a string representation of the last query's statement object.
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:918
⧉public getConnectStart(): ?float Returns the time we started to connect to this database in seconds with micro...
/**
* Returns the time we started to connect to this database in
* seconds with microseconds.
*
* Used by the Debug Toolbar's timeline.
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:929
⧉public getConnectDuration(int $decimals = 6): string Returns the number of seconds with microseconds that it took to connect to th...
/**
* Returns the number of seconds with microseconds that it took
* to connect to the database.
*
* Used by the Debug Toolbar's timeline.
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:940
/**
* Protect Identifiers
*
* This function is used extensively by the Query Builder class, and by
* a couple functions in this class.
* It takes a column or table name (optionally with an alias) and inserts
* the table prefix onto it. Some logic is necessary in order to deal with
* column names that include the path. Consider a query like this:
*
* SELECT hostname.database.table.column AS c FROM hostname.database.table
*
* Or a query with aliasing:
*
* SELECT m.member_id, m.member_name FROM members AS m
*
* Since the column name can include up to four segments (host, DB, table, column)
* or also have an alias prefix, we need to do a bit of work to figure this out and
* insert the table prefix (if it exists) in the proper position, and escape only
* the correct identifiers.
*
* @param array|string $item
* @param bool $prefixSingle Prefix a table name with no segments?
* @param bool $protectIdentifiers Protect table or column names?
* @param bool $fieldExists Supplied $item contains a column name?
*
* @return array|string
* @phpstan-return ($item is array ? array : string)
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:973
⧉public escapeIdentifiers($item): array|string Escape the SQL Identifiers
/**
* Escape the SQL Identifiers
*
* This function escapes column and table names
*
* @param array|string $item
*
* @return array|string
* @phpstan-return ($item is array ? array : string)
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:1130
⧉public prefixTable(string $table = ''): string Prepends a database prefix if one exists in configuration
/**
* Prepends a database prefix if one exists in configuration
*
* @throws DatabaseException
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:1188
/**
* Escape String
*
* @param string|string[] $str Input string
* @param bool $like Whether or not the string will be used in a LIKE condition
*
* @return string|string[]
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:1238
⧉public escapeLikeString($str): string|string[] Escape LIKE String
/**
* Escape LIKE String
*
* Calls the individual driver for platform
* specific escaping for LIKE conditions
*
* @param string|string[] $str
*
* @return string|string[]
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:1280
⧉public callFunction(string $functionName, $params): bool This function enables you to call PHP database functions that are not nativel...
/**
* This function enables you to call PHP database functions that are not natively included
* in CodeIgniter, in a platform independent manner.
*
* @param array ...$params
*
* @throws DatabaseException
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:1303
⧉public listTables(bool $constrainByPrefix = false): array|bool Returns an array of table names
/**
* Returns an array of table names
*
* @return array|bool
*
* @throws DatabaseException
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:1341
⧉public tableExists(string $tableName, bool $cached = true): bool Determine if a particular table exists
/**
* Determine if a particular table exists
*
* @param bool $cached Whether to use data cache
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:1391
⧉public getFieldNames(string $table): array|false Fetch Field Names
/**
* Fetch Field Names
*
* @return array|false
*
* @throws DatabaseException
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:1432
⧉public fieldExists(string $fieldName, string $tableName): bool Determine if a particular field exists
/**
* Determine if a particular field exists
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:1477
⧉public getFieldData(string $table): stdClass[] Returns an object with field data
/**
* Returns an object with field data
*
* @return stdClass[]
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:1487
⧉public getIndexData(string $table): array Returns an object with key data
/**
* Returns an object with key data
*
* @return array
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:1497
⧉public getForeignKeyData(string $table): array Returns an object with foreign key data
/**
* Returns an object with foreign key data
*
* @return array
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:1507
/**
* Enables foreign key checks temporarily.
*
* @return bool
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:1534
⧉public pretend(bool $pretend = true): $this Allows the engine to be set into a mode where queries are not actually execut...
/**
* Allows the engine to be set into a mode where queries are not
* actually executed, but they are still generated, timed, etc.
*
* This is primarily used by the prepared query functionality.
*
* @return $this
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:1554
⧉public resetDataCache(): $this Empties our data cache. Especially helpful during testing.
/**
* Empties our data cache. Especially helpful during testing.
*
* @return $this
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:1566
⧉public isWriteType($sql): bool Determines if the statement is a write-type query or not.
/**
* Determines if the statement is a write-type query or not.
*
* @param string $sql
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:1578
⧉public __get(string $key): mixed Accessor for properties if they exist.
/**
* Accessor for properties if they exist.
*
* @return mixed
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:1674
⧉public __isset(string $key): bool Checker for properties existence.
/**
* Checker for properties existence.
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:1686
⧉protected _close() Close the database connection.
/**
* Close the database connection.
*/
Defined in <ROOT>/social/Database/MySQLi/Connection.php:234
⧉protected execute(string $sql): bool|object Executes the query against the database.
/**
* Executes the query against the database.
*
* @return bool|object
*/
Defined in <ROOT>/social/Database/MySQLi/Connection.php:282
⧉protected prepQuery(string $sql): string Prep the query. If needed, each database adapter can prep the query string
/**
* Prep the query. If needed, each database adapter can prep the query string
*/
Defined in <ROOT>/social/Database/MySQLi/Connection.php:307
/**
* Platform-dependant string escape
*/
Defined in <ROOT>/social/Database/MySQLi/Connection.php:329
⧉protected _listTables(bool $prefixLimit = false, ?string $tableName = null): string Generates the SQL for listing tables in a platform-dependent manner. Uses esc...
/**
* Generates the SQL for listing tables in a platform-dependent manner.
* Uses escapeLikeStringDirect().
*
* @param string|null $tableName If $tableName is provided will return only this table if exists.
*/
Defined in <ROOT>/social/Database/MySQLi/Connection.php:374
⧉protected _listColumns(string $table = ''): string Generates a platform-specific query string so that the column names can be fe...
/**
* Generates a platform-specific query string so that the column names can be fetched.
*/
Defined in <ROOT>/social/Database/MySQLi/Connection.php:392
⧉protected _fieldData(string $table): array Returns an array of objects with field data
/**
* Returns an array of objects with field data
*
* @return stdClass[]
*
* @throws DatabaseException
*/
Defined in <ROOT>/social/Database/MySQLi/Connection.php:404
⧉protected _indexData(string $table): array Returns an array of objects with index data
/**
* Returns an array of objects with index data
*
* @return stdClass[]
*
* @throws DatabaseException
* @throws LogicException
*/
Defined in <ROOT>/social/Database/MySQLi/Connection.php:437
⧉protected _foreignKeyData(string $table): array Returns an array of objects with Foreign key data
/**
* Returns an array of objects with Foreign key data
*
* @return stdClass[]
*
* @throws DatabaseException
*/
Defined in <ROOT>/social/Database/MySQLi/Connection.php:482
/**
* Rollback Transaction
*/
Defined in <ROOT>/social/Database/MySQLi/Connection.php:601
⧉protected getDriverFunctionPrefix(): string Get the prefix of the function to access the DB.
/**
* Get the prefix of the function to access the DB.
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:1325
/**
* Constructor
*
* @param array|string $tableName tablename or tablenames with or without aliases
*
* Examples of $tableName: `mytable`, `jobs j`, `jobs j, users u`, `['jobs j','users u']`
*
* @throws DatabaseException
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:280
⧉public db(): CodeIgniter\Database\ConnectionInterface Returns the current database connection
/**
* Returns the current database connection
*
* @return BaseConnection|ConnectionInterface
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:314
⧉public testMode(bool $mode = true): $this Sets a test mode status.
/**
* Sets a test mode status.
*
* @return $this
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:324
⧉public getTable(): string Gets the name of the primary table.
/**
* Gets the name of the primary table.
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:334
⧉public getBinds(): array Returns an array of bind values and their named parameters for binding in the...
/**
* Returns an array of bind values and their
* named parameters for binding in the Query object later.
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:343
⧉public ignore(bool $ignore = true): $this Ignore
/**
* Ignore
*
* Set ignore Flag for next insert,
* update or delete query.
*
* @return $this
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:356
⧉public select($select = '*', ?bool $escape = null): $this Generates the SELECT portion of the query
/**
* Generates the SELECT portion of the query
*
* @param array|RawSql|string $select
*
* @return $this
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:370
⧉public selectMax(string $select = '', string $alias = ''): $this Generates a SELECT MAX(field) portion of a query
/**
* Generates a SELECT MAX(field) portion of a query
*
* @return $this
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:416
⧉public selectMin(string $select = '', string $alias = ''): $this Generates a SELECT MIN(field) portion of a query
/**
* Generates a SELECT MIN(field) portion of a query
*
* @return $this
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:426
⧉public selectAvg(string $select = '', string $alias = ''): $this Generates a SELECT AVG(field) portion of a query
/**
* Generates a SELECT AVG(field) portion of a query
*
* @return $this
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:436
⧉public selectSum(string $select = '', string $alias = ''): $this Generates a SELECT SUM(field) portion of a query
/**
* Generates a SELECT SUM(field) portion of a query
*
* @return $this
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:446
⧉public selectCount(string $select = '', string $alias = ''): $this Generates a SELECT COUNT(field) portion of a query
/**
* Generates a SELECT COUNT(field) portion of a query
*
* @return $this
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:456
⧉public selectSubquery(CodeIgniter\Database\BaseBuilder $subquery, string $as): self Adds a subquery to the selection
/**
* Adds a subquery to the selection
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:464
⧉public distinct(bool $val = true): $this Sets a flag which tells the query string compiler to add DISTINCT
/**
* Sets a flag which tells the query string compiler to add DISTINCT
*
* @return $this
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:531
⧉public from($from, bool $overwrite = false): self Generates the FROM portion of the query
/**
* Generates the FROM portion of the query
*
* @param array|string $from
*
* @return $this
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:545
/**
* @param BaseBuilder $from Expected subquery
* @param string $alias Subquery alias
*
* @return $this
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:576
⧉public join(string $table, $cond, string $type = '', ?bool $escape = null): $this Generates the JOIN portion of the query
/**
* Generates the JOIN portion of the query
*
* @param RawSql|string $cond
*
* @return $this
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:593
⧉public where($key, $value = null, ?bool $escape = null): $this Generates the WHERE portion of the query. Separates multiple calls with 'AND'.
/**
* Generates the WHERE portion of the query.
* Separates multiple calls with 'AND'.
*
* @param array|RawSql|string $key
* @param mixed $value
*
* @return $this
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:672
⧉public orWhere($key, $value = null, ?bool $escape = null): $this OR WHERE
/**
* OR WHERE
*
* Generates the WHERE portion of the query.
* Separates multiple calls with 'OR'.
*
* @param array|RawSql|string $key
* @param mixed $value
* @param bool $escape
*
* @return $this
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:689
⧉public whereIn(?string $key = null, $values = null, ?bool $escape = null): $this Generates a WHERE field IN('item', 'item') SQL query, joined with 'AND' if ap...
/**
* Generates a WHERE field IN('item', 'item') SQL query,
* joined with 'AND' if appropriate.
*
* @param array|BaseBuilder|Closure|string $values The values searched on, or anonymous function with subquery
*
* @return $this
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:787
⧉public orWhereIn(?string $key = null, $values = null, ?bool $escape = null): $this Generates a WHERE field IN('item', 'item') SQL query, joined with 'OR' if app...
/**
* Generates a WHERE field IN('item', 'item') SQL query,
* joined with 'OR' if appropriate.
*
* @param array|BaseBuilder|Closure|string $values The values searched on, or anonymous function with subquery
*
* @return $this
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:800
⧉public whereNotIn(?string $key = null, $values = null, ?bool $escape = null): $this Generates a WHERE field NOT IN('item', 'item') SQL query, joined with 'AND' i...
/**
* Generates a WHERE field NOT IN('item', 'item') SQL query,
* joined with 'AND' if appropriate.
*
* @param array|BaseBuilder|Closure|string $values The values searched on, or anonymous function with subquery
*
* @return $this
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:813
⧉public orWhereNotIn(?string $key = null, $values = null, ?bool $escape = null): $this Generates a WHERE field NOT IN('item', 'item') SQL query, joined with 'OR' if...
/**
* Generates a WHERE field NOT IN('item', 'item') SQL query,
* joined with 'OR' if appropriate.
*
* @param array|BaseBuilder|Closure|string $values The values searched on, or anonymous function with subquery
*
* @return $this
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:826
⧉public havingIn(?string $key = null, $values = null, ?bool $escape = null): $this Generates a HAVING field IN('item', 'item') SQL query, joined with 'AND' if a...
/**
* Generates a HAVING field IN('item', 'item') SQL query,
* joined with 'AND' if appropriate.
*
* @param array|BaseBuilder|Closure|string $values The values searched on, or anonymous function with subquery
*
* @return $this
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:839
⧉public orHavingIn(?string $key = null, $values = null, ?bool $escape = null): $this Generates a HAVING field IN('item', 'item') SQL query, joined with 'OR' if ap...
/**
* Generates a HAVING field IN('item', 'item') SQL query,
* joined with 'OR' if appropriate.
*
* @param array|BaseBuilder|Closure|string $values The values searched on, or anonymous function with subquery
*
* @return $this
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:852
⧉public havingNotIn(?string $key = null, $values = null, ?bool $escape = null): $this Generates a HAVING field NOT IN('item', 'item') SQL query, joined with 'AND' ...
/**
* Generates a HAVING field NOT IN('item', 'item') SQL query,
* joined with 'AND' if appropriate.
*
* @param array|BaseBuilder|Closure|string $values The values searched on, or anonymous function with subquery
*
* @return $this
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:865
⧉public orHavingNotIn(?string $key = null, $values = null, ?bool $escape = null): $this Generates a HAVING field NOT IN('item', 'item') SQL query, joined with 'OR' i...
/**
* Generates a HAVING field NOT IN('item', 'item') SQL query,
* joined with 'OR' if appropriate.
*
* @param array|BaseBuilder|Closure|string $values The values searched on, or anonymous function with subquery
*
* @return $this
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:878
⧉public like($field, string $match = '', string $side = 'both', ?bool $escape = null, bool $insensitiveSearch = false): $this Generates a %LIKE% portion of the query. Separates multiple calls with 'AND'.
/**
* Generates a %LIKE% portion of the query.
* Separates multiple calls with 'AND'.
*
* @param array|RawSql|string $field
*
* @return $this
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:954
⧉public notLike($field, string $match = '', string $side = 'both', ?bool $escape = null, bool $insensitiveSearch = false): $this Generates a NOT LIKE portion of the query. Separates multiple calls with 'AND'.
/**
* Generates a NOT LIKE portion of the query.
* Separates multiple calls with 'AND'.
*
* @param array|RawSql|string $field
*
* @return $this
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:967
⧉public orLike($field, string $match = '', string $side = 'both', ?bool $escape = null, bool $insensitiveSearch = false): $this Generates a %LIKE% portion of the query. Separates multiple calls with 'OR'.
/**
* Generates a %LIKE% portion of the query.
* Separates multiple calls with 'OR'.
*
* @param array|RawSql|string $field
*
* @return $this
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:980
⧉public orNotLike($field, string $match = '', string $side = 'both', ?bool $escape = null, bool $insensitiveSearch = false): $this Generates a NOT LIKE portion of the query. Separates multiple calls with 'OR'.
/**
* Generates a NOT LIKE portion of the query.
* Separates multiple calls with 'OR'.
*
* @param array|RawSql|string $field
*
* @return $this
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:993
⧉public havingLike($field, string $match = '', string $side = 'both', ?bool $escape = null, bool $insensitiveSearch = false): $this Generates a %LIKE% portion of the query. Separates multiple calls with 'AND'.
/**
* Generates a %LIKE% portion of the query.
* Separates multiple calls with 'AND'.
*
* @param array|RawSql|string $field
*
* @return $this
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:1006
⧉public notHavingLike($field, string $match = '', string $side = 'both', ?bool $escape = null, bool $insensitiveSearch = false): $this Generates a NOT LIKE portion of the query. Separates multiple calls with 'AND'.
/**
* Generates a NOT LIKE portion of the query.
* Separates multiple calls with 'AND'.
*
* @param array|RawSql|string $field
*
* @return $this
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:1019
⧉public orHavingLike($field, string $match = '', string $side = 'both', ?bool $escape = null, bool $insensitiveSearch = false): $this Generates a %LIKE% portion of the query. Separates multiple calls with 'OR'.
/**
* Generates a %LIKE% portion of the query.
* Separates multiple calls with 'OR'.
*
* @param array|RawSql|string $field
*
* @return $this
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:1032
⧉public orNotHavingLike($field, string $match = '', string $side = 'both', ?bool $escape = null, bool $insensitiveSearch = false): $this Generates a NOT LIKE portion of the query. Separates multiple calls with 'OR'.
/**
* Generates a NOT LIKE portion of the query.
* Separates multiple calls with 'OR'.
*
* @param array|RawSql|string $field
*
* @return $this
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:1045
⧉public union($union): $this Add UNION statement
/**
* Add UNION statement
*
* @param BaseBuilder|Closure $union
*
* @return $this
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:1155
⧉public unionAll($union): $this Add UNION ALL statement
/**
* Add UNION ALL statement
*
* @param BaseBuilder|Closure $union
*
* @return $this
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:1167
⧉public groupStart(): $this Starts a query group.
/**
* Starts a query group.
*
* @return $this
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:1195
⧉public orGroupStart(): $this Starts a query group, but ORs the group
/**
* Starts a query group, but ORs the group
*
* @return $this
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:1205
⧉public notGroupStart(): $this Starts a query group, but NOTs the group
/**
* Starts a query group, but NOTs the group
*
* @return $this
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:1215
⧉public orNotGroupStart(): $this Starts a query group, but OR NOTs the group
/**
* Starts a query group, but OR NOTs the group
*
* @return $this
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:1225
⧉public groupEnd(): $this Ends a query group
/**
* Ends a query group
*
* @return $this
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:1235
⧉public havingGroupStart(): $this Starts a query group for HAVING clause.
/**
* Starts a query group for HAVING clause.
*
* @return $this
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:1245
⧉public orHavingGroupStart(): $this Starts a query group for HAVING clause, but ORs the group.
/**
* Starts a query group for HAVING clause, but ORs the group.
*
* @return $this
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:1255
⧉public notHavingGroupStart(): $this Starts a query group for HAVING clause, but NOTs the group.
/**
* Starts a query group for HAVING clause, but NOTs the group.
*
* @return $this
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:1265
⧉public orNotHavingGroupStart(): $this Starts a query group for HAVING clause, but OR NOTs the group.
/**
* Starts a query group for HAVING clause, but OR NOTs the group.
*
* @return $this
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:1275
⧉public havingGroupEnd(): $this Ends a query group for HAVING clause.
/**
* Ends a query group for HAVING clause.
*
* @return $this
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:1285
⧉public groupBy($by, ?bool $escape = null): $this
/**
* @param array|string $by
*
* @return $this
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:1351
/**
* @param string $direction ASC, DESC or RANDOM
*
* @return $this
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:1408
/**
* @return $this
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:1460
⧉public offset(int $offset): $this Sets the OFFSET value
/**
* Sets the OFFSET value
*
* @return $this
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:1478
⧉public set($key, $value = '', ?bool $escape = null): $this Allows key/value pairs to be set for insert(), update() or replace().
/**
* Allows key/value pairs to be set for insert(), update() or replace().
*
* @param array|object|string $key Field name, or an array of field/value pairs
* @param mixed $value Field value, if $key is a single field
* @param bool|null $escape Whether to escape values
*
* @return $this
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:1504
⧉public getSetData(bool $clean = false): array Returns the previously set() data, alternatively resetting it if needed.
/**
* Returns the previously set() data, alternatively resetting it if needed.
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:1530
⧉public getCompiledSelect(bool $reset = true): string Compiles a SELECT query string and returns the sql.
/**
* Compiles a SELECT query string and returns the sql.
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:1544
⧉public get(?int $limit = null, int $offset0, bool $reset = true): false|ResultInterface Compiles the select statement based on the other functions called and runs th...
/**
* Compiles the select statement based on the other functions called
* and runs the query
*
* @return false|ResultInterface
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:1577
⧉public countAll(bool $reset = true): int|string Generates a platform-specific query string that counts all records in the par...
/**
* Generates a platform-specific query string that counts all records in
* the particular table
*
* @return int|string
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:1603
⧉public countAllResults(bool $reset = true): int|string Generates a platform-specific query string that counts all records returned b...
/**
* Generates a platform-specific query string that counts all records
* returned by an Query Builder query.
*
* @return int|string
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:1635
⧉public getCompiledQBWhere(): array Compiles the set conditions and returns the sql statement
/**
* Compiles the set conditions and returns the sql statement
*
* @return array
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:1694
⧉public getWhere($where = null, ?int $limit = null, ?int $offset0, bool $reset = true): ResultInterface Allows the where clause, limit and offset to be added directly
/**
* Allows the where clause, limit and offset to be added directly
*
* @param array|string $where
*
* @return ResultInterface
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:1706
⧉public insertBatch(?array $set = null, ?bool $escape = null, int $batchSize = 100): false|int|string[] Number of rows inserted or FALSE on failure, SQL array when testMode Compiles batch insert strings and runs the queries
/**
* Compiles batch insert strings and runs the queries
*
* @return false|int|string[] Number of rows inserted or FALSE on failure, SQL array when testMode
*
* @throws DatabaseException
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:1737
⧉public setInsertBatch($key, string $value = '', ?bool $escape = null): $this|null Allows key/value pairs to be set for batch inserts
/**
* Allows key/value pairs to be set for batch inserts
*
* @param mixed $key
*
* @return $this|null
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:1810
⧉public getCompiledInsert(bool $reset = true): bool|string Compiles an insert query and returns the sql
/**
* Compiles an insert query and returns the sql
*
* @return bool|string
*
* @throws DatabaseException
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:1859
⧉public insert($set = null, ?bool $escape = null): bool Compiles an insert string and runs the query
/**
* Compiles an insert string and runs the query
*
* @param array|object|null $set
*
* @return bool
*
* @throws DatabaseException
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:1892
⧉public replace(?array $set = null): BaseResult|false|Query|string Compiles a replace into string and runs the query
/**
* Compiles a replace into string and runs the query
*
* @return BaseResult|false|Query|string
*
* @throws DatabaseException
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:1982
⧉public getCompiledUpdate(bool $reset = true): bool|string Compiles an update query and returns the sql
/**
* Compiles an update query and returns the sql
*
* @return bool|string
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:2029
⧉public update($set = null, $where = null, ?int $limit = null): bool Compiles an update string and runs the query.
/**
* Compiles an update string and runs the query.
*
* @param array|object|null $set
* @param array|RawSql|string|null $where
*
* @throws DatabaseException
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:2052
⧉public updateBatch(?array $set = null, ?string $index = null, int $batchSize = 100): false|int|string[] Number of rows affected or FALSE on failure, SQL array when testMode Compiles an update string and runs the query
/**
* Compiles an update string and runs the query
*
* @return false|int|string[] Number of rows affected or FALSE on failure, SQL array when testMode
*
* @throws DatabaseException
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:2138
⧉public setUpdateBatch($key, string $index = '', ?bool $escape = null): $this|null Allows key/value pairs to be set for batch updating
/**
* Allows key/value pairs to be set for batch updating
*
* @param array|object $key
*
* @return $this|null
*
* @throws DatabaseException
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:2249
⧉public emptyTable(): bool|string TRUE on success, FALSE on failure, string on testMode Compiles a delete string and runs "DELETE FROM table"
/**
* Compiles a delete string and runs "DELETE FROM table"
*
* @return bool|string TRUE on success, FALSE on failure, string on testMode
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:2289
⧉public truncate(): bool|string TRUE on success, FALSE on failure, string on testMode Compiles a truncate string and runs the query If the database does not suppor...
/**
* Compiles a truncate string and runs the query
* If the database does not support the truncate() command
* This function maps to "DELETE FROM table"
*
* @return bool|string TRUE on success, FALSE on failure, string on testMode
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:2311
⧉public getCompiledDelete(bool $reset = true): string Compiles a delete query string and returns the sql
/**
* Compiles a delete query string and returns the sql
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:2340
⧉public delete($where = '', ?int $limit = null, bool $resetData = true): bool|string Returns a string if in test mode. Compiles a delete string and runs the query
/**
* Compiles a delete string and runs the query
*
* @param mixed $where
*
* @return bool|string Returns a string if in test mode.
*
* @throws DatabaseException
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:2357
⧉public increment(string $column, int $value = 1): bool Increments a numeric column by the specified value.
/**
* Increments a numeric column by the specified value.
*
* @return bool
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:2399
⧉public decrement(string $column, int $value = 1): bool Decrements a numeric column by the specified value.
/**
* Decrements a numeric column by the specified value.
*
* @return bool
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:2419
⧉public resetQuery(): $this Publicly-visible method to reset the QB values.
/**
* Publicly-visible method to reset the QB values.
*
* @return $this
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:2772
⧉protected _fromTables(): string FROM tables
/**
* FROM tables
*
* Groups tables in FROM clauses if needed, so there is no confusion
* about operator precedence.
*
* Note: This is only used (and overridden) by MySQL.
*/
Defined in <ROOT>/social/Database/MySQLi/Builder.php:48
⧉protected createAliasFromTable(string $item): string Determines the alias name based on the table
/**
* Determines the alias name based on the table
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:515
/**
* Platform independent LIKE statement builder.
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:1139
/**
* @used-by union()
* @used-by unionAll()
*
* @param BaseBuilder|Closure $union
*
* @return $this
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:1180
⧉protected groupStartPrepare(string $not = '', string $type = 'AND ', string $clause = 'QBWhere'): $this Prepate a query group start.
/**
* Prepate a query group start.
*
* @return $this
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:1295
⧉protected groupEndPrepare(string $clause = 'QBWhere'): $this Prepate a query group end.
/**
* Prepate a query group end.
*
* @return $this
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:1316
⧉protected groupGetType(string $type): string
/**
* @used-by groupStart()
* @used-by _like()
* @used-by whereHaving()
* @used-by _whereIn()
* @used-by havingGroupStart()
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:1336
/**
* Generates a platform-specific LIMIT clause.
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:1490
⧉protected compileFinalQuery(string $sql): string Returns a finalized, compiled query string with the bindings inserted and pre...
/**
* Returns a finalized, compiled query string with the bindings
* inserted and prefixes swapped out.
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:1559
⧉protected _insertBatch(string $table, array $keys, array $values): string Generates a platform-specific insert string from the supplied data.
/**
* Generates a platform-specific insert string from the supplied data.
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:1798
⧉protected removeAlias(string $from): string
/**
* @internal This is a temporary solution.
*
* @see https://github.com/codeigniter4/CodeIgniter4/pull/5376
*
* @TODO Fix a root cause, and this method should be removed.
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:1934
⧉protected validateInsert(): bool This method is used by both insert() and getCompiledInsert() to validate that...
/**
* This method is used by both insert() and getCompiledInsert() to
* validate that the there data is actually being set and that table
* has been chosen to be inserted into.
*
* @throws DatabaseException
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:1954
⧉protected _insert(string $table, array $keys, array $unescapedKeys): string Generates a platform-specific insert string from the supplied data
/**
* Generates a platform-specific insert string from the supplied data
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:1970
⧉protected _replace(string $table, array $keys, array $values): string Generates a platform-specific replace string from the supplied data
/**
* Generates a platform-specific replace string from the supplied data
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:2008
⧉protected _update(string $table, array $values): string Generates a platform-specific update string from the supplied data
/**
* Generates a platform-specific update string from the supplied data
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:2097
⧉protected validateUpdate(): bool This method is used by both update() and getCompiledUpdate() to validate that...
/**
* This method is used by both update() and getCompiledUpdate() to
* validate that data is actually being set and that a table has been
* chosen to be update.
*
* @throws DatabaseException
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:2118
⧉protected _updateBatch(string $table, array $values, string $index): string Generates a platform-specific batch update string from the supplied data
/**
* Generates a platform-specific batch update string from the supplied data
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:2212
⧉protected _truncate(string $table): string Generates a platform-specific truncate string from the supplied data
/**
* Generates a platform-specific truncate string from the supplied data
*
* If the database does not support the truncate() command,
* then this method maps to 'DELETE FROM table'
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:2332
⧉protected _delete(string $table): string Generates a platform-specific delete string from the supplied data
/**
* Generates a platform-specific delete string from the supplied data
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:2437
⧉protected trackAliases($table): string|void Used to track SQL statements written with aliased tables.
/**
* Used to track SQL statements written with aliased tables.
*
* @param array|string $table The table to inspect
*
* @return string|void
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:2449
⧉protected compileSelect($selectOverride = false): string Compile the SELECT statement
/**
* Compile the SELECT statement
*
* Generates a query string based on which functions were used.
* Should not be called directly.
*
* @param mixed $selectOverride
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:2486
⧉protected compileIgnore(string $statement): string Checks if the ignore option is supported by the Database Driver for the speci...
/**
* Checks if the ignore option is supported by
* the Database Driver for the specific statement.
*
* @return string
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:2536
⧉protected compileWhereHaving(string $qbKey): string Escapes identifiers in WHERE and HAVING statements at execution time.
/**
* Escapes identifiers in WHERE and HAVING statements at execution time.
*
* Required so that aliases are tracked properly, regardless of whether
* where(), orWhere(), having(), orHaving are called prior to from(),
* join() and prefixTable is added only if needed.
*
* @param string $qbKey 'QBWhere' or 'QBHaving'
*
* @return string SQL statement
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:2556
⧉protected compileGroupBy(): string Escapes identifiers in GROUP BY statements at execution time.
/**
* Escapes identifiers in GROUP BY statements at execution time.
*
* Required so that aliases are tracked properly, regardless of whether
* groupBy() is called prior to from(), join() and prefixTable is added
* only if needed.
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:2634
⧉protected compileOrderBy(): string Escapes identifiers in ORDER BY statements at execution time.
/**
* Escapes identifiers in ORDER BY statements at execution time.
*
* Required so that aliases are tracked properly, regardless of whether
* orderBy() is called prior to from(), join() and prefixTable is added
* only if needed.
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:2661
⧉protected unionInjection(string $sql): string
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:2682
⧉protected objectToArray($object): array Takes an object as input and converts the class variables to array key/vals
/**
* Takes an object as input and converts the class variables to array key/vals
*
* @param object $object
*
* @return array
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:2700
⧉protected batchObjectToArray($object): array Takes an object as input and converts the class variables to array key/vals
/**
* Takes an object as input and converts the class variables to array key/vals
*
* @param object $object
*
* @return array
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:2724
⧉protected isLiteral(string $str): bool Determines if a string represents a literal value or a field name
/**
* Determines if a string represents a literal value or a field name
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:2748
⧉protected resetRun(array $qbResetItems) Resets the query builder values. Called by the get() function
/**
* Resets the query builder values. Called by the get() function
*
* @param array $qbResetItems An array of fields to reset
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:2785
⧉protected resetSelect() Resets the query builder values. Called by the get() function
/**
* Resets the query builder values. Called by the get() function
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:2795
⧉protected resetWrite() Resets the query builder "write" values.
/**
* Resets the query builder "write" values.
*
* Called by the insert() update() insertBatch() updateBatch() and delete() functions
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:2826
⧉protected hasOperator(string $str): bool Tests whether the string has an SQL operator
/**
* Tests whether the string has an SQL operator
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:2842
/**
* Returns the SQL string operator
*
* @return mixed
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:2855
⧉protected setBind(string $key, $value = null, bool $escape = true): string Stores a bind value after ensuring that it's unique. While it might be nicer ...
/**
* Stores a bind value after ensuring that it's unique.
* While it might be nicer to have named keys for our binds array
* with PHP 7+ we get a huge memory/performance gain with indexed
* arrays instead, so lets take advantage of that here.
*
* @param mixed $value
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:2892
⧉protected cleanClone(): $this Returns a clone of a Base Builder with reset query builder values.
/**
* Returns a clone of a Base Builder with reset query builder values.
*
* @return $this
*
* @deprecated
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:2924
⧉protected isSubquery($value): bool
/**
* @param mixed $value
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:2932
/**
* @param BaseBuilder|Closure $builder
* @param bool $wrapped Wrap the subquery in brackets
* @param string $alias Subquery alias
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:2942
⧉public setQuery(string $sql, $binds = null, bool $setEscape = true): $this Sets the raw query string to use for this statement.
/**
* Sets the raw query string to use for this statement.
*
* @param mixed $binds
*
* @return $this
*/
Defined in <ROOT>/social/Database/Query.php:106
⧉public setBinds(array $binds, bool $setEscape = true): $this Will store the variables to bind into the query later.
/**
* Will store the variables to bind into the query later.
*
* @return $this
*/
Defined in <ROOT>/social/Database/Query.php:137
⧉public getQuery(): string Returns the final, processed query string after binding, etal has been perfor...
/**
* Returns the final, processed query string after binding, etal
* has been performed.
*/
Defined in <ROOT>/social/Database/Query.php:156
⧉public setDuration(float $start, ?float $end = null): $this Records the execution time of the statement using microtime(true) for it's st...
/**
* Records the execution time of the statement using microtime(true)
* for it's start and end values. If no end value is present, will
* use the current time to determine total duration.
*
* @param float $end
*
* @return $this
*/
Defined in <ROOT>/social/Database/Query.php:174
⧉public getStartTime(bool $returnRaw = false, int $decimals = 6): float|string Returns the start time in seconds with microseconds.
/**
* Returns the start time in seconds with microseconds.
*
* @return float|string
*/
Defined in <ROOT>/social/Database/Query.php:192
⧉public getDuration(int $decimals = 6): string Returns the duration of this query during execution, or null if the query has...
/**
* Returns the duration of this query during execution, or null if
* the query has not been executed yet.
*
* @param int $decimals The accuracy of the returned time.
*/
Defined in <ROOT>/social/Database/Query.php:207
⧉public setError(int $code, string $error): $this Stores the error description that happened for this query.
/**
* Stores the error description that happened for this query.
*
* @return $this
*/
Defined in <ROOT>/social/Database/Query.php:217
⧉public hasError(): bool Reports whether this statement created an error not.
/**
* Reports whether this statement created an error not.
*/
Defined in <ROOT>/social/Database/Query.php:228
⧉public getErrorCode(): int Returns the error code created while executing this statement.
/**
* Returns the error code created while executing this statement.
*/
Defined in <ROOT>/social/Database/Query.php:236
⧉public getErrorMessage(): string Returns the error message created while executing this statement.
/**
* Returns the error message created while executing this statement.
*/
Defined in <ROOT>/social/Database/Query.php:244
⧉public isWriteType(): bool Determines if the statement is a write-type query or not.
/**
* Determines if the statement is a write-type query or not.
*/
Defined in <ROOT>/social/Database/Query.php:252
⧉public swapPrefix(string $orig, string $swap): $this Swaps out one table prefix for a new one.
/**
* Swaps out one table prefix for a new one.
*
* @return $this
*/
Defined in <ROOT>/social/Database/Query.php:262
⧉public getOriginalQuery(): string Returns the original SQL that was passed into the system.
/**
* Returns the original SQL that was passed into the system.
*/
Defined in <ROOT>/social/Database/Query.php:279
⧉public debugToolbarDisplay(): string Returns string to display in debug toolbar
/**
* Returns string to display in debug toolbar
*/
Defined in <ROOT>/social/Database/Query.php:371
⧉public __toString(): string Return text representation of the query
/**
* Return text representation of the query
*/
Defined in <ROOT>/social/Database/Query.php:425
⧉protected compileBinds() Escapes and inserts any binds into the finalQueryString property.
/**
* Escapes and inserts any binds into the finalQueryString property.
*
* @see https://regex101.com/r/EUEhay/5
*/
Defined in <ROOT>/social/Database/Query.php:289
⧉protected matchNamedBinds(string $sql, array $binds): string Match bindings
/**
* Match bindings
*/
Defined in <ROOT>/social/Database/Query.php:317
⧉protected matchSimpleBinds(string $sql, array $binds, int $bindCount, int $ml): string Match bindings
/**
* Match bindings
*/
Defined in <ROOT>/social/Database/Query.php:341
⧉public connect(bool $persistent = false): mixed Connect to the database.
/**
* Connect to the database.
*
* @return mixed
*
* @throws DatabaseException
*/
Defined in <ROOT>/social/Database/MySQLi/Connection.php:79
⧉public reconnect() Keep or establish the connection if no queries have been sent for a length of...
/**
* Keep or establish the connection if no queries have been sent for
* a length of time exceeding the server's idle timeout.
*/
Defined in <ROOT>/social/Database/MySQLi/Connection.php:225
⧉public setDatabase(string $databaseName): bool Select a specific database table to use.
/**
* Select a specific database table to use.
*/
Defined in <ROOT>/social/Database/MySQLi/Connection.php:242
⧉public getVersion(): string Returns a string containing the version of the database being used.
/**
* Returns a string containing the version of the database being used.
*/
Defined in <ROOT>/social/Database/MySQLi/Connection.php:264
⧉public affectedRows(): int Returns the total number of rows affected by this query.
/**
* Returns the total number of rows affected by this query.
*/
Defined in <ROOT>/social/Database/MySQLi/Connection.php:321
⧉public escapeLikeStringDirect($str): string|string[] Escape Like String Direct There are a few instances where MySQLi queries cann...
/**
* Escape Like String Direct
* There are a few instances where MySQLi queries cannot take the
* additional "ESCAPE x" parameter for specifying the escape character
* in "LIKE" strings, and this handles those directly with a backslash.
*
* @param string|string[] $str Input string
*
* @return string|string[]
*/
Defined in <ROOT>/social/Database/MySQLi/Connection.php:348
⧉public error(): array Returns the last error code and message. Must return this format: ['code' => ...
/**
* Returns the last error code and message.
* Must return this format: ['code' => string|int, 'message' => string]
* intval(code) === 0 means "no error".
*
* @return array<string, int|string>
*/
Defined in <ROOT>/social/Database/MySQLi/Connection.php:551
⧉public insertID(): int Insert ID
/**
* Insert ID
*/
Defined in <ROOT>/social/Database/MySQLi/Connection.php:569
/**
* Saves our connection settings.
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:336
⧉public initialize(): mixed Initializes the database connection/settings.
/**
* Initializes the database connection/settings.
*
* @return mixed
*
* @throws DatabaseException
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:365
⧉public close() Close the database connection.
/**
* Close the database connection.
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:432
⧉public persistentConnect(): mixed Create a persistent database connection.
/**
* Create a persistent database connection.
*
* @return mixed
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:452
⧉public getConnection(?string $alias = null): mixed Returns the actual connection object. If both a 'read' and 'write' connection...
/**
* Returns the actual connection object. If both a 'read' and 'write'
* connection has been specified, you can pass either term in to
* get that connection. If you pass either alias in and only a single
* connection is present, it must return the sole connection.
*
* @return mixed
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:465
⧉public getDatabase(): string Returns the name of the current database being used.
/**
* Returns the name of the current database being used.
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:474
⧉public setPrefix(string $prefix = ''): string Set DB Prefix
/**
* Set DB Prefix
*
* Set's the DB Prefix to something new without needing to reconnect
*
* @param string $prefix The prefix
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:486
⧉public getPrefix(): string Returns the database prefix.
/**
* Returns the database prefix.
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:494
⧉public getPlatform(): string The name of the platform in use (MySQLi, Postgre, SQLite3, OCI8, etc)
/**
* The name of the platform in use (MySQLi, Postgre, SQLite3, OCI8, etc)
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:502
⧉public setAliasedTables(array $aliases): $this Sets the Table Aliases to use. These are typically collected during use of th...
/**
* Sets the Table Aliases to use. These are typically
* collected during use of the Builder, and set here
* so queries are built correctly.
*
* @return $this
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:514
⧉public addTableAlias(string $table): $this Add a table alias to our list.
/**
* Add a table alias to our list.
*
* @return $this
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:526
⧉public query(string $sql, $binds = null, bool $setEscapeFlags = true, string $queryClass = ''): BaseResult|bool|Query BaseResult when “read” type query, bool when “write” type query, Query when prepared query Orchestrates a query against the database. Queries must use Database\Statemen...
/**
* Orchestrates a query against the database. Queries must use
* Database\Statement objects to store the query and build it.
* This method works with the cache.
*
* Should automatically handle different connections for read/write
* queries if needed.
*
* @param mixed ...$binds
*
* @return BaseResult|bool|Query BaseResult when “read” type query, bool when “write” type query, Query when prepared query
*
* @todo BC set $queryClass default as null in 4.1
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:556
⧉public simpleQuery(string $sql): mixed Performs a basic query against the database. No binding or caching is perform...
/**
* Performs a basic query against the database. No binding or caching
* is performed, nor are transactions handled. Simply takes a raw
* query string and returns the database-specific result id.
*
* @return mixed
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:660
⧉public transOff() Disable Transactions
/**
* Disable Transactions
*
* This permits transactions to be disabled at run-time.
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:674
/**
* Enable/disable Transaction Strict Mode
*
* When strict mode is enabled, if you are running multiple groups of
* transactions, if one group fails all subsequent groups will be
* rolled back.
*
* If strict mode is disabled, each group is treated autonomously,
* meaning a failure of one group will not affect any others
*
* @param bool $mode = true
*
* @return $this
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:693
/**
* Complete Transaction
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:715
⧉public transStatus(): bool Lets you retrieve the transaction flag to determine if it has failed
/**
* Lets you retrieve the transaction flag to determine if it has failed
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:741
⧉public transBegin(bool $testMode = false): bool Begin Transaction
/**
* Begin Transaction
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:749
⧉public transCommit(): bool Commit Transaction
/**
* Commit Transaction
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:783
/**
* Rollback Transaction
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:802
⧉public table($tableName): BaseBuilder Returns a non-shared new instance of the query builder for this connection.
/**
* Returns a non-shared new instance of the query builder for this connection.
*
* @param array|string $tableName
*
* @return BaseBuilder
*
* @throws DatabaseException
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:842
⧉public newQuery(): CodeIgniter\Database\BaseBuilder Returns a new instance of the BaseBuilder class with a cleared FROM clause.
/**
* Returns a new instance of the BaseBuilder class with a cleared FROM clause.
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:856
⧉public prepare(Closure $func, array $options = array()): BasePreparedQuery|null Creates a prepared statement with the database that can then be used to execu...
/**
* Creates a prepared statement with the database that can then
* be used to execute multiple statements against. Within the
* closure, you would build the query in any normal way, though
* the Query Builder is the expected manner.
*
* Example:
* $stmt = $db->prepare(function($db)
* {
* return $db->table('users')
* ->where('id', 1)
* ->get();
* })
*
* @return BasePreparedQuery|null
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:882
⧉public getLastQuery(): Query Returns the last query's statement object.
/**
* Returns the last query's statement object.
*
* @return Query
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:910
⧉public showLastQuery(): string Returns a string representation of the last query's statement object.
/**
* Returns a string representation of the last query's statement object.
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:918
⧉public getConnectStart(): ?float Returns the time we started to connect to this database in seconds with micro...
/**
* Returns the time we started to connect to this database in
* seconds with microseconds.
*
* Used by the Debug Toolbar's timeline.
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:929
⧉public getConnectDuration(int $decimals = 6): string Returns the number of seconds with microseconds that it took to connect to th...
/**
* Returns the number of seconds with microseconds that it took
* to connect to the database.
*
* Used by the Debug Toolbar's timeline.
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:940
/**
* Protect Identifiers
*
* This function is used extensively by the Query Builder class, and by
* a couple functions in this class.
* It takes a column or table name (optionally with an alias) and inserts
* the table prefix onto it. Some logic is necessary in order to deal with
* column names that include the path. Consider a query like this:
*
* SELECT hostname.database.table.column AS c FROM hostname.database.table
*
* Or a query with aliasing:
*
* SELECT m.member_id, m.member_name FROM members AS m
*
* Since the column name can include up to four segments (host, DB, table, column)
* or also have an alias prefix, we need to do a bit of work to figure this out and
* insert the table prefix (if it exists) in the proper position, and escape only
* the correct identifiers.
*
* @param array|string $item
* @param bool $prefixSingle Prefix a table name with no segments?
* @param bool $protectIdentifiers Protect table or column names?
* @param bool $fieldExists Supplied $item contains a column name?
*
* @return array|string
* @phpstan-return ($item is array ? array : string)
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:973
⧉public escapeIdentifiers($item): array|string Escape the SQL Identifiers
/**
* Escape the SQL Identifiers
*
* This function escapes column and table names
*
* @param array|string $item
*
* @return array|string
* @phpstan-return ($item is array ? array : string)
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:1130
⧉public prefixTable(string $table = ''): string Prepends a database prefix if one exists in configuration
/**
* Prepends a database prefix if one exists in configuration
*
* @throws DatabaseException
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:1188
/**
* Escape String
*
* @param string|string[] $str Input string
* @param bool $like Whether or not the string will be used in a LIKE condition
*
* @return string|string[]
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:1238
⧉public escapeLikeString($str): string|string[] Escape LIKE String
/**
* Escape LIKE String
*
* Calls the individual driver for platform
* specific escaping for LIKE conditions
*
* @param string|string[] $str
*
* @return string|string[]
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:1280
⧉public callFunction(string $functionName, $params): bool This function enables you to call PHP database functions that are not nativel...
/**
* This function enables you to call PHP database functions that are not natively included
* in CodeIgniter, in a platform independent manner.
*
* @param array ...$params
*
* @throws DatabaseException
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:1303
⧉public listTables(bool $constrainByPrefix = false): array|bool Returns an array of table names
/**
* Returns an array of table names
*
* @return array|bool
*
* @throws DatabaseException
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:1341
⧉public tableExists(string $tableName, bool $cached = true): bool Determine if a particular table exists
/**
* Determine if a particular table exists
*
* @param bool $cached Whether to use data cache
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:1391
⧉public getFieldNames(string $table): array|false Fetch Field Names
/**
* Fetch Field Names
*
* @return array|false
*
* @throws DatabaseException
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:1432
⧉public fieldExists(string $fieldName, string $tableName): bool Determine if a particular field exists
/**
* Determine if a particular field exists
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:1477
⧉public getFieldData(string $table): stdClass[] Returns an object with field data
/**
* Returns an object with field data
*
* @return stdClass[]
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:1487
⧉public getIndexData(string $table): array Returns an object with key data
/**
* Returns an object with key data
*
* @return array
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:1497
⧉public getForeignKeyData(string $table): array Returns an object with foreign key data
/**
* Returns an object with foreign key data
*
* @return array
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:1507
/**
* Enables foreign key checks temporarily.
*
* @return bool
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:1534
⧉public pretend(bool $pretend = true): $this Allows the engine to be set into a mode where queries are not actually execut...
/**
* Allows the engine to be set into a mode where queries are not
* actually executed, but they are still generated, timed, etc.
*
* This is primarily used by the prepared query functionality.
*
* @return $this
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:1554
⧉public resetDataCache(): $this Empties our data cache. Especially helpful during testing.
/**
* Empties our data cache. Especially helpful during testing.
*
* @return $this
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:1566
⧉public isWriteType($sql): bool Determines if the statement is a write-type query or not.
/**
* Determines if the statement is a write-type query or not.
*
* @param string $sql
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:1578
⧉public __get(string $key): mixed Accessor for properties if they exist.
/**
* Accessor for properties if they exist.
*
* @return mixed
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:1674
⧉public __isset(string $key): bool Checker for properties existence.
/**
* Checker for properties existence.
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:1686
⧉protected _close() Close the database connection.
/**
* Close the database connection.
*/
Defined in <ROOT>/social/Database/MySQLi/Connection.php:234
⧉protected execute(string $sql): bool|object Executes the query against the database.
/**
* Executes the query against the database.
*
* @return bool|object
*/
Defined in <ROOT>/social/Database/MySQLi/Connection.php:282
⧉protected prepQuery(string $sql): string Prep the query. If needed, each database adapter can prep the query string
/**
* Prep the query. If needed, each database adapter can prep the query string
*/
Defined in <ROOT>/social/Database/MySQLi/Connection.php:307
/**
* Platform-dependant string escape
*/
Defined in <ROOT>/social/Database/MySQLi/Connection.php:329
⧉protected _listTables(bool $prefixLimit = false, ?string $tableName = null): string Generates the SQL for listing tables in a platform-dependent manner. Uses esc...
/**
* Generates the SQL for listing tables in a platform-dependent manner.
* Uses escapeLikeStringDirect().
*
* @param string|null $tableName If $tableName is provided will return only this table if exists.
*/
Defined in <ROOT>/social/Database/MySQLi/Connection.php:374
⧉protected _listColumns(string $table = ''): string Generates a platform-specific query string so that the column names can be fe...
/**
* Generates a platform-specific query string so that the column names can be fetched.
*/
Defined in <ROOT>/social/Database/MySQLi/Connection.php:392
⧉protected _fieldData(string $table): array Returns an array of objects with field data
/**
* Returns an array of objects with field data
*
* @return stdClass[]
*
* @throws DatabaseException
*/
Defined in <ROOT>/social/Database/MySQLi/Connection.php:404
⧉protected _indexData(string $table): array Returns an array of objects with index data
/**
* Returns an array of objects with index data
*
* @return stdClass[]
*
* @throws DatabaseException
* @throws LogicException
*/
Defined in <ROOT>/social/Database/MySQLi/Connection.php:437
⧉protected _foreignKeyData(string $table): array Returns an array of objects with Foreign key data
/**
* Returns an array of objects with Foreign key data
*
* @return stdClass[]
*
* @throws DatabaseException
*/
Defined in <ROOT>/social/Database/MySQLi/Connection.php:482
/**
* Rollback Transaction
*/
Defined in <ROOT>/social/Database/MySQLi/Connection.php:601
⧉protected getDriverFunctionPrefix(): string Get the prefix of the function to access the DB.
/**
* Get the prefix of the function to access the DB.
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:1325
list => string (33) "CodeIgniter\Validation\Views\list"
single => string (35) "CodeIgniter\Validation\Views\single"
⧉public __construct() Will attempt to get environment variables with names that match the propertie...
/**
* Will attempt to get environment variables with names
* that match the properties of the child class.
*
* The "shortPrefix" is the lowercase-only config class name.
*/
Inherited from CodeIgniter\Config\BaseConfig
Defined in <ROOT>/social/Config/BaseConfig.php:60
/**
* Retrieve an environment-specific configuration setting
*
* @return string|null
*/
Inherited from CodeIgniter\Config\BaseConfig
Defined in <ROOT>/social/Config/BaseConfig.php:128
⧉protected registerProperties() Provides external libraries a simple way to register one or more options into...
/**
* Provides external libraries a simple way to register one or more
* options into a config file.
*
* @throws ReflectionException
*/
Inherited from CodeIgniter\Config\BaseConfig
Defined in <ROOT>/social/Config/BaseConfig.php:174
⧉public shouldDiscover(string $alias): bool Should the application auto-discover the requested resource.
/**
* Should the application auto-discover the requested resource.
*/
Inherited from CodeIgniter\Modules\Modules
Defined in <ROOT>/social/Modules/Modules.php:45
⧉public __construct() Merge the built-in and developer-configured filters and plugins, with prefere...
/**
* Merge the built-in and developer-configured filters and plugins,
* with preference to the developer ones.
*/
Inherited from CodeIgniter\Config\View
Defined in <ROOT>/social/Config/View.php:108
/**
* Retrieve an environment-specific configuration setting
*
* @return string|null
*/
Inherited from CodeIgniter\Config\BaseConfig
Defined in <ROOT>/social/Config/BaseConfig.php:128
⧉protected registerProperties() Provides external libraries a simple way to register one or more options into...
/**
* Provides external libraries a simple way to register one or more
* options into a config file.
*
* @throws ReflectionException
*/
Inherited from CodeIgniter\Config\BaseConfig
Defined in <ROOT>/social/Config/BaseConfig.php:174
⧉public shouldDiscover(string $alias): bool Should the application auto-discover the requested resource.
/**
* Should the application auto-discover the requested resource.
*/
Inherited from CodeIgniter\Modules\Modules
Defined in <ROOT>/social/Modules/Modules.php:45
/**
* Constructor
*
* @param array|string $tableName tablename or tablenames with or without aliases
*
* Examples of $tableName: `mytable`, `jobs j`, `jobs j, users u`, `['jobs j','users u']`
*
* @throws DatabaseException
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:280
⧉public db(): CodeIgniter\Database\ConnectionInterface Returns the current database connection
/**
* Returns the current database connection
*
* @return BaseConnection|ConnectionInterface
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:314
⧉public testMode(bool $mode = true): $this Sets a test mode status.
/**
* Sets a test mode status.
*
* @return $this
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:324
⧉public getTable(): string Gets the name of the primary table.
/**
* Gets the name of the primary table.
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:334
⧉public getBinds(): array Returns an array of bind values and their named parameters for binding in the...
/**
* Returns an array of bind values and their
* named parameters for binding in the Query object later.
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:343
⧉public ignore(bool $ignore = true): $this Ignore
/**
* Ignore
*
* Set ignore Flag for next insert,
* update or delete query.
*
* @return $this
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:356
⧉public select($select = '*', ?bool $escape = null): $this Generates the SELECT portion of the query
/**
* Generates the SELECT portion of the query
*
* @param array|RawSql|string $select
*
* @return $this
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:370
⧉public selectMax(string $select = '', string $alias = ''): $this Generates a SELECT MAX(field) portion of a query
/**
* Generates a SELECT MAX(field) portion of a query
*
* @return $this
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:416
⧉public selectMin(string $select = '', string $alias = ''): $this Generates a SELECT MIN(field) portion of a query
/**
* Generates a SELECT MIN(field) portion of a query
*
* @return $this
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:426
⧉public selectAvg(string $select = '', string $alias = ''): $this Generates a SELECT AVG(field) portion of a query
/**
* Generates a SELECT AVG(field) portion of a query
*
* @return $this
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:436
⧉public selectSum(string $select = '', string $alias = ''): $this Generates a SELECT SUM(field) portion of a query
/**
* Generates a SELECT SUM(field) portion of a query
*
* @return $this
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:446
⧉public selectCount(string $select = '', string $alias = ''): $this Generates a SELECT COUNT(field) portion of a query
/**
* Generates a SELECT COUNT(field) portion of a query
*
* @return $this
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:456
⧉public selectSubquery(CodeIgniter\Database\BaseBuilder $subquery, string $as): self Adds a subquery to the selection
/**
* Adds a subquery to the selection
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:464
⧉public distinct(bool $val = true): $this Sets a flag which tells the query string compiler to add DISTINCT
/**
* Sets a flag which tells the query string compiler to add DISTINCT
*
* @return $this
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:531
⧉public from($from, bool $overwrite = false): self Generates the FROM portion of the query
/**
* Generates the FROM portion of the query
*
* @param array|string $from
*
* @return $this
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:545
/**
* @param BaseBuilder $from Expected subquery
* @param string $alias Subquery alias
*
* @return $this
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:576
⧉public join(string $table, $cond, string $type = '', ?bool $escape = null): $this Generates the JOIN portion of the query
/**
* Generates the JOIN portion of the query
*
* @param RawSql|string $cond
*
* @return $this
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:593
⧉public where($key, $value = null, ?bool $escape = null): $this Generates the WHERE portion of the query. Separates multiple calls with 'AND'.
/**
* Generates the WHERE portion of the query.
* Separates multiple calls with 'AND'.
*
* @param array|RawSql|string $key
* @param mixed $value
*
* @return $this
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:672
⧉public orWhere($key, $value = null, ?bool $escape = null): $this OR WHERE
/**
* OR WHERE
*
* Generates the WHERE portion of the query.
* Separates multiple calls with 'OR'.
*
* @param array|RawSql|string $key
* @param mixed $value
* @param bool $escape
*
* @return $this
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:689
⧉public whereIn(?string $key = null, $values = null, ?bool $escape = null): $this Generates a WHERE field IN('item', 'item') SQL query, joined with 'AND' if ap...
/**
* Generates a WHERE field IN('item', 'item') SQL query,
* joined with 'AND' if appropriate.
*
* @param array|BaseBuilder|Closure|string $values The values searched on, or anonymous function with subquery
*
* @return $this
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:787
⧉public orWhereIn(?string $key = null, $values = null, ?bool $escape = null): $this Generates a WHERE field IN('item', 'item') SQL query, joined with 'OR' if app...
/**
* Generates a WHERE field IN('item', 'item') SQL query,
* joined with 'OR' if appropriate.
*
* @param array|BaseBuilder|Closure|string $values The values searched on, or anonymous function with subquery
*
* @return $this
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:800
⧉public whereNotIn(?string $key = null, $values = null, ?bool $escape = null): $this Generates a WHERE field NOT IN('item', 'item') SQL query, joined with 'AND' i...
/**
* Generates a WHERE field NOT IN('item', 'item') SQL query,
* joined with 'AND' if appropriate.
*
* @param array|BaseBuilder|Closure|string $values The values searched on, or anonymous function with subquery
*
* @return $this
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:813
⧉public orWhereNotIn(?string $key = null, $values = null, ?bool $escape = null): $this Generates a WHERE field NOT IN('item', 'item') SQL query, joined with 'OR' if...
/**
* Generates a WHERE field NOT IN('item', 'item') SQL query,
* joined with 'OR' if appropriate.
*
* @param array|BaseBuilder|Closure|string $values The values searched on, or anonymous function with subquery
*
* @return $this
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:826
⧉public havingIn(?string $key = null, $values = null, ?bool $escape = null): $this Generates a HAVING field IN('item', 'item') SQL query, joined with 'AND' if a...
/**
* Generates a HAVING field IN('item', 'item') SQL query,
* joined with 'AND' if appropriate.
*
* @param array|BaseBuilder|Closure|string $values The values searched on, or anonymous function with subquery
*
* @return $this
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:839
⧉public orHavingIn(?string $key = null, $values = null, ?bool $escape = null): $this Generates a HAVING field IN('item', 'item') SQL query, joined with 'OR' if ap...
/**
* Generates a HAVING field IN('item', 'item') SQL query,
* joined with 'OR' if appropriate.
*
* @param array|BaseBuilder|Closure|string $values The values searched on, or anonymous function with subquery
*
* @return $this
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:852
⧉public havingNotIn(?string $key = null, $values = null, ?bool $escape = null): $this Generates a HAVING field NOT IN('item', 'item') SQL query, joined with 'AND' ...
/**
* Generates a HAVING field NOT IN('item', 'item') SQL query,
* joined with 'AND' if appropriate.
*
* @param array|BaseBuilder|Closure|string $values The values searched on, or anonymous function with subquery
*
* @return $this
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:865
⧉public orHavingNotIn(?string $key = null, $values = null, ?bool $escape = null): $this Generates a HAVING field NOT IN('item', 'item') SQL query, joined with 'OR' i...
/**
* Generates a HAVING field NOT IN('item', 'item') SQL query,
* joined with 'OR' if appropriate.
*
* @param array|BaseBuilder|Closure|string $values The values searched on, or anonymous function with subquery
*
* @return $this
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:878
⧉public like($field, string $match = '', string $side = 'both', ?bool $escape = null, bool $insensitiveSearch = false): $this Generates a %LIKE% portion of the query. Separates multiple calls with 'AND'.
/**
* Generates a %LIKE% portion of the query.
* Separates multiple calls with 'AND'.
*
* @param array|RawSql|string $field
*
* @return $this
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:954
⧉public notLike($field, string $match = '', string $side = 'both', ?bool $escape = null, bool $insensitiveSearch = false): $this Generates a NOT LIKE portion of the query. Separates multiple calls with 'AND'.
/**
* Generates a NOT LIKE portion of the query.
* Separates multiple calls with 'AND'.
*
* @param array|RawSql|string $field
*
* @return $this
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:967
⧉public orLike($field, string $match = '', string $side = 'both', ?bool $escape = null, bool $insensitiveSearch = false): $this Generates a %LIKE% portion of the query. Separates multiple calls with 'OR'.
/**
* Generates a %LIKE% portion of the query.
* Separates multiple calls with 'OR'.
*
* @param array|RawSql|string $field
*
* @return $this
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:980
⧉public orNotLike($field, string $match = '', string $side = 'both', ?bool $escape = null, bool $insensitiveSearch = false): $this Generates a NOT LIKE portion of the query. Separates multiple calls with 'OR'.
/**
* Generates a NOT LIKE portion of the query.
* Separates multiple calls with 'OR'.
*
* @param array|RawSql|string $field
*
* @return $this
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:993
⧉public havingLike($field, string $match = '', string $side = 'both', ?bool $escape = null, bool $insensitiveSearch = false): $this Generates a %LIKE% portion of the query. Separates multiple calls with 'AND'.
/**
* Generates a %LIKE% portion of the query.
* Separates multiple calls with 'AND'.
*
* @param array|RawSql|string $field
*
* @return $this
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:1006
⧉public notHavingLike($field, string $match = '', string $side = 'both', ?bool $escape = null, bool $insensitiveSearch = false): $this Generates a NOT LIKE portion of the query. Separates multiple calls with 'AND'.
/**
* Generates a NOT LIKE portion of the query.
* Separates multiple calls with 'AND'.
*
* @param array|RawSql|string $field
*
* @return $this
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:1019
⧉public orHavingLike($field, string $match = '', string $side = 'both', ?bool $escape = null, bool $insensitiveSearch = false): $this Generates a %LIKE% portion of the query. Separates multiple calls with 'OR'.
/**
* Generates a %LIKE% portion of the query.
* Separates multiple calls with 'OR'.
*
* @param array|RawSql|string $field
*
* @return $this
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:1032
⧉public orNotHavingLike($field, string $match = '', string $side = 'both', ?bool $escape = null, bool $insensitiveSearch = false): $this Generates a NOT LIKE portion of the query. Separates multiple calls with 'OR'.
/**
* Generates a NOT LIKE portion of the query.
* Separates multiple calls with 'OR'.
*
* @param array|RawSql|string $field
*
* @return $this
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:1045
⧉public union($union): $this Add UNION statement
/**
* Add UNION statement
*
* @param BaseBuilder|Closure $union
*
* @return $this
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:1155
⧉public unionAll($union): $this Add UNION ALL statement
/**
* Add UNION ALL statement
*
* @param BaseBuilder|Closure $union
*
* @return $this
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:1167
⧉public groupStart(): $this Starts a query group.
/**
* Starts a query group.
*
* @return $this
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:1195
⧉public orGroupStart(): $this Starts a query group, but ORs the group
/**
* Starts a query group, but ORs the group
*
* @return $this
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:1205
⧉public notGroupStart(): $this Starts a query group, but NOTs the group
/**
* Starts a query group, but NOTs the group
*
* @return $this
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:1215
⧉public orNotGroupStart(): $this Starts a query group, but OR NOTs the group
/**
* Starts a query group, but OR NOTs the group
*
* @return $this
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:1225
⧉public groupEnd(): $this Ends a query group
/**
* Ends a query group
*
* @return $this
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:1235
⧉public havingGroupStart(): $this Starts a query group for HAVING clause.
/**
* Starts a query group for HAVING clause.
*
* @return $this
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:1245
⧉public orHavingGroupStart(): $this Starts a query group for HAVING clause, but ORs the group.
/**
* Starts a query group for HAVING clause, but ORs the group.
*
* @return $this
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:1255
⧉public notHavingGroupStart(): $this Starts a query group for HAVING clause, but NOTs the group.
/**
* Starts a query group for HAVING clause, but NOTs the group.
*
* @return $this
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:1265
⧉public orNotHavingGroupStart(): $this Starts a query group for HAVING clause, but OR NOTs the group.
/**
* Starts a query group for HAVING clause, but OR NOTs the group.
*
* @return $this
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:1275
⧉public havingGroupEnd(): $this Ends a query group for HAVING clause.
/**
* Ends a query group for HAVING clause.
*
* @return $this
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:1285
⧉public groupBy($by, ?bool $escape = null): $this
/**
* @param array|string $by
*
* @return $this
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:1351
/**
* @param string $direction ASC, DESC or RANDOM
*
* @return $this
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:1408
/**
* @return $this
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:1460
⧉public offset(int $offset): $this Sets the OFFSET value
/**
* Sets the OFFSET value
*
* @return $this
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:1478
⧉public set($key, $value = '', ?bool $escape = null): $this Allows key/value pairs to be set for insert(), update() or replace().
/**
* Allows key/value pairs to be set for insert(), update() or replace().
*
* @param array|object|string $key Field name, or an array of field/value pairs
* @param mixed $value Field value, if $key is a single field
* @param bool|null $escape Whether to escape values
*
* @return $this
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:1504
⧉public getSetData(bool $clean = false): array Returns the previously set() data, alternatively resetting it if needed.
/**
* Returns the previously set() data, alternatively resetting it if needed.
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:1530
⧉public getCompiledSelect(bool $reset = true): string Compiles a SELECT query string and returns the sql.
/**
* Compiles a SELECT query string and returns the sql.
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:1544
⧉public get(?int $limit = null, int $offset0, bool $reset = true): false|ResultInterface Compiles the select statement based on the other functions called and runs th...
/**
* Compiles the select statement based on the other functions called
* and runs the query
*
* @return false|ResultInterface
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:1577
⧉public countAll(bool $reset = true): int|string Generates a platform-specific query string that counts all records in the par...
/**
* Generates a platform-specific query string that counts all records in
* the particular table
*
* @return int|string
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:1603
⧉public countAllResults(bool $reset = true): int|string Generates a platform-specific query string that counts all records returned b...
/**
* Generates a platform-specific query string that counts all records
* returned by an Query Builder query.
*
* @return int|string
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:1635
⧉public getCompiledQBWhere(): array Compiles the set conditions and returns the sql statement
/**
* Compiles the set conditions and returns the sql statement
*
* @return array
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:1694
⧉public getWhere($where = null, ?int $limit = null, ?int $offset0, bool $reset = true): ResultInterface Allows the where clause, limit and offset to be added directly
/**
* Allows the where clause, limit and offset to be added directly
*
* @param array|string $where
*
* @return ResultInterface
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:1706
⧉public insertBatch(?array $set = null, ?bool $escape = null, int $batchSize = 100): false|int|string[] Number of rows inserted or FALSE on failure, SQL array when testMode Compiles batch insert strings and runs the queries
/**
* Compiles batch insert strings and runs the queries
*
* @return false|int|string[] Number of rows inserted or FALSE on failure, SQL array when testMode
*
* @throws DatabaseException
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:1737
⧉public setInsertBatch($key, string $value = '', ?bool $escape = null): $this|null Allows key/value pairs to be set for batch inserts
/**
* Allows key/value pairs to be set for batch inserts
*
* @param mixed $key
*
* @return $this|null
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:1810
⧉public getCompiledInsert(bool $reset = true): bool|string Compiles an insert query and returns the sql
/**
* Compiles an insert query and returns the sql
*
* @return bool|string
*
* @throws DatabaseException
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:1859
⧉public insert($set = null, ?bool $escape = null): bool Compiles an insert string and runs the query
/**
* Compiles an insert string and runs the query
*
* @param array|object|null $set
*
* @return bool
*
* @throws DatabaseException
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:1892
⧉public replace(?array $set = null): BaseResult|false|Query|string Compiles a replace into string and runs the query
/**
* Compiles a replace into string and runs the query
*
* @return BaseResult|false|Query|string
*
* @throws DatabaseException
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:1982
⧉public getCompiledUpdate(bool $reset = true): bool|string Compiles an update query and returns the sql
/**
* Compiles an update query and returns the sql
*
* @return bool|string
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:2029
⧉public update($set = null, $where = null, ?int $limit = null): bool Compiles an update string and runs the query.
/**
* Compiles an update string and runs the query.
*
* @param array|object|null $set
* @param array|RawSql|string|null $where
*
* @throws DatabaseException
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:2052
⧉public updateBatch(?array $set = null, ?string $index = null, int $batchSize = 100): false|int|string[] Number of rows affected or FALSE on failure, SQL array when testMode Compiles an update string and runs the query
/**
* Compiles an update string and runs the query
*
* @return false|int|string[] Number of rows affected or FALSE on failure, SQL array when testMode
*
* @throws DatabaseException
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:2138
⧉public setUpdateBatch($key, string $index = '', ?bool $escape = null): $this|null Allows key/value pairs to be set for batch updating
/**
* Allows key/value pairs to be set for batch updating
*
* @param array|object $key
*
* @return $this|null
*
* @throws DatabaseException
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:2249
⧉public emptyTable(): bool|string TRUE on success, FALSE on failure, string on testMode Compiles a delete string and runs "DELETE FROM table"
/**
* Compiles a delete string and runs "DELETE FROM table"
*
* @return bool|string TRUE on success, FALSE on failure, string on testMode
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:2289
⧉public truncate(): bool|string TRUE on success, FALSE on failure, string on testMode Compiles a truncate string and runs the query If the database does not suppor...
/**
* Compiles a truncate string and runs the query
* If the database does not support the truncate() command
* This function maps to "DELETE FROM table"
*
* @return bool|string TRUE on success, FALSE on failure, string on testMode
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:2311
⧉public getCompiledDelete(bool $reset = true): string Compiles a delete query string and returns the sql
/**
* Compiles a delete query string and returns the sql
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:2340
⧉public delete($where = '', ?int $limit = null, bool $resetData = true): bool|string Returns a string if in test mode. Compiles a delete string and runs the query
/**
* Compiles a delete string and runs the query
*
* @param mixed $where
*
* @return bool|string Returns a string if in test mode.
*
* @throws DatabaseException
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:2357
⧉public increment(string $column, int $value = 1): bool Increments a numeric column by the specified value.
/**
* Increments a numeric column by the specified value.
*
* @return bool
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:2399
⧉public decrement(string $column, int $value = 1): bool Decrements a numeric column by the specified value.
/**
* Decrements a numeric column by the specified value.
*
* @return bool
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:2419
⧉public resetQuery(): $this Publicly-visible method to reset the QB values.
/**
* Publicly-visible method to reset the QB values.
*
* @return $this
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:2772
⧉protected _fromTables(): string FROM tables
/**
* FROM tables
*
* Groups tables in FROM clauses if needed, so there is no confusion
* about operator precedence.
*
* Note: This is only used (and overridden) by MySQL.
*/
Defined in <ROOT>/social/Database/MySQLi/Builder.php:48
⧉protected createAliasFromTable(string $item): string Determines the alias name based on the table
/**
* Determines the alias name based on the table
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:515
/**
* Platform independent LIKE statement builder.
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:1139
/**
* @used-by union()
* @used-by unionAll()
*
* @param BaseBuilder|Closure $union
*
* @return $this
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:1180
⧉protected groupStartPrepare(string $not = '', string $type = 'AND ', string $clause = 'QBWhere'): $this Prepate a query group start.
/**
* Prepate a query group start.
*
* @return $this
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:1295
⧉protected groupEndPrepare(string $clause = 'QBWhere'): $this Prepate a query group end.
/**
* Prepate a query group end.
*
* @return $this
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:1316
⧉protected groupGetType(string $type): string
/**
* @used-by groupStart()
* @used-by _like()
* @used-by whereHaving()
* @used-by _whereIn()
* @used-by havingGroupStart()
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:1336
/**
* Generates a platform-specific LIMIT clause.
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:1490
⧉protected compileFinalQuery(string $sql): string Returns a finalized, compiled query string with the bindings inserted and pre...
/**
* Returns a finalized, compiled query string with the bindings
* inserted and prefixes swapped out.
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:1559
⧉protected _insertBatch(string $table, array $keys, array $values): string Generates a platform-specific insert string from the supplied data.
/**
* Generates a platform-specific insert string from the supplied data.
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:1798
⧉protected removeAlias(string $from): string
/**
* @internal This is a temporary solution.
*
* @see https://github.com/codeigniter4/CodeIgniter4/pull/5376
*
* @TODO Fix a root cause, and this method should be removed.
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:1934
⧉protected validateInsert(): bool This method is used by both insert() and getCompiledInsert() to validate that...
/**
* This method is used by both insert() and getCompiledInsert() to
* validate that the there data is actually being set and that table
* has been chosen to be inserted into.
*
* @throws DatabaseException
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:1954
⧉protected _insert(string $table, array $keys, array $unescapedKeys): string Generates a platform-specific insert string from the supplied data
/**
* Generates a platform-specific insert string from the supplied data
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:1970
⧉protected _replace(string $table, array $keys, array $values): string Generates a platform-specific replace string from the supplied data
/**
* Generates a platform-specific replace string from the supplied data
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:2008
⧉protected _update(string $table, array $values): string Generates a platform-specific update string from the supplied data
/**
* Generates a platform-specific update string from the supplied data
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:2097
⧉protected validateUpdate(): bool This method is used by both update() and getCompiledUpdate() to validate that...
/**
* This method is used by both update() and getCompiledUpdate() to
* validate that data is actually being set and that a table has been
* chosen to be update.
*
* @throws DatabaseException
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:2118
⧉protected _updateBatch(string $table, array $values, string $index): string Generates a platform-specific batch update string from the supplied data
/**
* Generates a platform-specific batch update string from the supplied data
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:2212
⧉protected _truncate(string $table): string Generates a platform-specific truncate string from the supplied data
/**
* Generates a platform-specific truncate string from the supplied data
*
* If the database does not support the truncate() command,
* then this method maps to 'DELETE FROM table'
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:2332
⧉protected _delete(string $table): string Generates a platform-specific delete string from the supplied data
/**
* Generates a platform-specific delete string from the supplied data
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:2437
⧉protected trackAliases($table): string|void Used to track SQL statements written with aliased tables.
/**
* Used to track SQL statements written with aliased tables.
*
* @param array|string $table The table to inspect
*
* @return string|void
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:2449
⧉protected compileSelect($selectOverride = false): string Compile the SELECT statement
/**
* Compile the SELECT statement
*
* Generates a query string based on which functions were used.
* Should not be called directly.
*
* @param mixed $selectOverride
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:2486
⧉protected compileIgnore(string $statement): string Checks if the ignore option is supported by the Database Driver for the speci...
/**
* Checks if the ignore option is supported by
* the Database Driver for the specific statement.
*
* @return string
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:2536
⧉protected compileWhereHaving(string $qbKey): string Escapes identifiers in WHERE and HAVING statements at execution time.
/**
* Escapes identifiers in WHERE and HAVING statements at execution time.
*
* Required so that aliases are tracked properly, regardless of whether
* where(), orWhere(), having(), orHaving are called prior to from(),
* join() and prefixTable is added only if needed.
*
* @param string $qbKey 'QBWhere' or 'QBHaving'
*
* @return string SQL statement
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:2556
⧉protected compileGroupBy(): string Escapes identifiers in GROUP BY statements at execution time.
/**
* Escapes identifiers in GROUP BY statements at execution time.
*
* Required so that aliases are tracked properly, regardless of whether
* groupBy() is called prior to from(), join() and prefixTable is added
* only if needed.
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:2634
⧉protected compileOrderBy(): string Escapes identifiers in ORDER BY statements at execution time.
/**
* Escapes identifiers in ORDER BY statements at execution time.
*
* Required so that aliases are tracked properly, regardless of whether
* orderBy() is called prior to from(), join() and prefixTable is added
* only if needed.
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:2661
⧉protected unionInjection(string $sql): string
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:2682
⧉protected objectToArray($object): array Takes an object as input and converts the class variables to array key/vals
/**
* Takes an object as input and converts the class variables to array key/vals
*
* @param object $object
*
* @return array
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:2700
⧉protected batchObjectToArray($object): array Takes an object as input and converts the class variables to array key/vals
/**
* Takes an object as input and converts the class variables to array key/vals
*
* @param object $object
*
* @return array
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:2724
⧉protected isLiteral(string $str): bool Determines if a string represents a literal value or a field name
/**
* Determines if a string represents a literal value or a field name
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:2748
⧉protected resetRun(array $qbResetItems) Resets the query builder values. Called by the get() function
/**
* Resets the query builder values. Called by the get() function
*
* @param array $qbResetItems An array of fields to reset
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:2785
⧉protected resetSelect() Resets the query builder values. Called by the get() function
/**
* Resets the query builder values. Called by the get() function
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:2795
⧉protected resetWrite() Resets the query builder "write" values.
/**
* Resets the query builder "write" values.
*
* Called by the insert() update() insertBatch() updateBatch() and delete() functions
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:2826
⧉protected hasOperator(string $str): bool Tests whether the string has an SQL operator
/**
* Tests whether the string has an SQL operator
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:2842
/**
* Returns the SQL string operator
*
* @return mixed
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:2855
⧉protected setBind(string $key, $value = null, bool $escape = true): string Stores a bind value after ensuring that it's unique. While it might be nicer ...
/**
* Stores a bind value after ensuring that it's unique.
* While it might be nicer to have named keys for our binds array
* with PHP 7+ we get a huge memory/performance gain with indexed
* arrays instead, so lets take advantage of that here.
*
* @param mixed $value
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:2892
⧉protected cleanClone(): $this Returns a clone of a Base Builder with reset query builder values.
/**
* Returns a clone of a Base Builder with reset query builder values.
*
* @return $this
*
* @deprecated
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:2924
⧉protected isSubquery($value): bool
/**
* @param mixed $value
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:2932
/**
* @param BaseBuilder|Closure $builder
* @param bool $wrapped Wrap the subquery in brackets
* @param string $alias Subquery alias
*/
Inherited from CodeIgniter\Database\BaseBuilder
Defined in <ROOT>/social/Database/BaseBuilder.php:2942
⧉public connect(bool $persistent = false): mixed Connect to the database.
/**
* Connect to the database.
*
* @return mixed
*
* @throws DatabaseException
*/
Defined in <ROOT>/social/Database/MySQLi/Connection.php:79
⧉public reconnect() Keep or establish the connection if no queries have been sent for a length of...
/**
* Keep or establish the connection if no queries have been sent for
* a length of time exceeding the server's idle timeout.
*/
Defined in <ROOT>/social/Database/MySQLi/Connection.php:225
⧉public setDatabase(string $databaseName): bool Select a specific database table to use.
/**
* Select a specific database table to use.
*/
Defined in <ROOT>/social/Database/MySQLi/Connection.php:242
⧉public getVersion(): string Returns a string containing the version of the database being used.
/**
* Returns a string containing the version of the database being used.
*/
Defined in <ROOT>/social/Database/MySQLi/Connection.php:264
⧉public affectedRows(): int Returns the total number of rows affected by this query.
/**
* Returns the total number of rows affected by this query.
*/
Defined in <ROOT>/social/Database/MySQLi/Connection.php:321
⧉public escapeLikeStringDirect($str): string|string[] Escape Like String Direct There are a few instances where MySQLi queries cann...
/**
* Escape Like String Direct
* There are a few instances where MySQLi queries cannot take the
* additional "ESCAPE x" parameter for specifying the escape character
* in "LIKE" strings, and this handles those directly with a backslash.
*
* @param string|string[] $str Input string
*
* @return string|string[]
*/
Defined in <ROOT>/social/Database/MySQLi/Connection.php:348
⧉public error(): array Returns the last error code and message. Must return this format: ['code' => ...
/**
* Returns the last error code and message.
* Must return this format: ['code' => string|int, 'message' => string]
* intval(code) === 0 means "no error".
*
* @return array<string, int|string>
*/
Defined in <ROOT>/social/Database/MySQLi/Connection.php:551
⧉public insertID(): int Insert ID
/**
* Insert ID
*/
Defined in <ROOT>/social/Database/MySQLi/Connection.php:569
/**
* Saves our connection settings.
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:336
⧉public initialize(): mixed Initializes the database connection/settings.
/**
* Initializes the database connection/settings.
*
* @return mixed
*
* @throws DatabaseException
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:365
⧉public close() Close the database connection.
/**
* Close the database connection.
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:432
⧉public persistentConnect(): mixed Create a persistent database connection.
/**
* Create a persistent database connection.
*
* @return mixed
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:452
⧉public getConnection(?string $alias = null): mixed Returns the actual connection object. If both a 'read' and 'write' connection...
/**
* Returns the actual connection object. If both a 'read' and 'write'
* connection has been specified, you can pass either term in to
* get that connection. If you pass either alias in and only a single
* connection is present, it must return the sole connection.
*
* @return mixed
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:465
⧉public getDatabase(): string Returns the name of the current database being used.
/**
* Returns the name of the current database being used.
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:474
⧉public setPrefix(string $prefix = ''): string Set DB Prefix
/**
* Set DB Prefix
*
* Set's the DB Prefix to something new without needing to reconnect
*
* @param string $prefix The prefix
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:486
⧉public getPrefix(): string Returns the database prefix.
/**
* Returns the database prefix.
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:494
⧉public getPlatform(): string The name of the platform in use (MySQLi, Postgre, SQLite3, OCI8, etc)
/**
* The name of the platform in use (MySQLi, Postgre, SQLite3, OCI8, etc)
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:502
⧉public setAliasedTables(array $aliases): $this Sets the Table Aliases to use. These are typically collected during use of th...
/**
* Sets the Table Aliases to use. These are typically
* collected during use of the Builder, and set here
* so queries are built correctly.
*
* @return $this
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:514
⧉public addTableAlias(string $table): $this Add a table alias to our list.
/**
* Add a table alias to our list.
*
* @return $this
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:526
⧉public query(string $sql, $binds = null, bool $setEscapeFlags = true, string $queryClass = ''): BaseResult|bool|Query BaseResult when “read” type query, bool when “write” type query, Query when prepared query Orchestrates a query against the database. Queries must use Database\Statemen...
/**
* Orchestrates a query against the database. Queries must use
* Database\Statement objects to store the query and build it.
* This method works with the cache.
*
* Should automatically handle different connections for read/write
* queries if needed.
*
* @param mixed ...$binds
*
* @return BaseResult|bool|Query BaseResult when “read” type query, bool when “write” type query, Query when prepared query
*
* @todo BC set $queryClass default as null in 4.1
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:556
⧉public simpleQuery(string $sql): mixed Performs a basic query against the database. No binding or caching is perform...
/**
* Performs a basic query against the database. No binding or caching
* is performed, nor are transactions handled. Simply takes a raw
* query string and returns the database-specific result id.
*
* @return mixed
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:660
⧉public transOff() Disable Transactions
/**
* Disable Transactions
*
* This permits transactions to be disabled at run-time.
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:674
/**
* Enable/disable Transaction Strict Mode
*
* When strict mode is enabled, if you are running multiple groups of
* transactions, if one group fails all subsequent groups will be
* rolled back.
*
* If strict mode is disabled, each group is treated autonomously,
* meaning a failure of one group will not affect any others
*
* @param bool $mode = true
*
* @return $this
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:693
/**
* Complete Transaction
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:715
⧉public transStatus(): bool Lets you retrieve the transaction flag to determine if it has failed
/**
* Lets you retrieve the transaction flag to determine if it has failed
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:741
⧉public transBegin(bool $testMode = false): bool Begin Transaction
/**
* Begin Transaction
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:749
⧉public transCommit(): bool Commit Transaction
/**
* Commit Transaction
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:783
/**
* Rollback Transaction
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:802
⧉public table($tableName): BaseBuilder Returns a non-shared new instance of the query builder for this connection.
/**
* Returns a non-shared new instance of the query builder for this connection.
*
* @param array|string $tableName
*
* @return BaseBuilder
*
* @throws DatabaseException
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:842
⧉public newQuery(): CodeIgniter\Database\BaseBuilder Returns a new instance of the BaseBuilder class with a cleared FROM clause.
/**
* Returns a new instance of the BaseBuilder class with a cleared FROM clause.
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:856
⧉public prepare(Closure $func, array $options = array()): BasePreparedQuery|null Creates a prepared statement with the database that can then be used to execu...
/**
* Creates a prepared statement with the database that can then
* be used to execute multiple statements against. Within the
* closure, you would build the query in any normal way, though
* the Query Builder is the expected manner.
*
* Example:
* $stmt = $db->prepare(function($db)
* {
* return $db->table('users')
* ->where('id', 1)
* ->get();
* })
*
* @return BasePreparedQuery|null
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:882
⧉public getLastQuery(): Query Returns the last query's statement object.
/**
* Returns the last query's statement object.
*
* @return Query
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:910
⧉public showLastQuery(): string Returns a string representation of the last query's statement object.
/**
* Returns a string representation of the last query's statement object.
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:918
⧉public getConnectStart(): ?float Returns the time we started to connect to this database in seconds with micro...
/**
* Returns the time we started to connect to this database in
* seconds with microseconds.
*
* Used by the Debug Toolbar's timeline.
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:929
⧉public getConnectDuration(int $decimals = 6): string Returns the number of seconds with microseconds that it took to connect to th...
/**
* Returns the number of seconds with microseconds that it took
* to connect to the database.
*
* Used by the Debug Toolbar's timeline.
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:940
/**
* Protect Identifiers
*
* This function is used extensively by the Query Builder class, and by
* a couple functions in this class.
* It takes a column or table name (optionally with an alias) and inserts
* the table prefix onto it. Some logic is necessary in order to deal with
* column names that include the path. Consider a query like this:
*
* SELECT hostname.database.table.column AS c FROM hostname.database.table
*
* Or a query with aliasing:
*
* SELECT m.member_id, m.member_name FROM members AS m
*
* Since the column name can include up to four segments (host, DB, table, column)
* or also have an alias prefix, we need to do a bit of work to figure this out and
* insert the table prefix (if it exists) in the proper position, and escape only
* the correct identifiers.
*
* @param array|string $item
* @param bool $prefixSingle Prefix a table name with no segments?
* @param bool $protectIdentifiers Protect table or column names?
* @param bool $fieldExists Supplied $item contains a column name?
*
* @return array|string
* @phpstan-return ($item is array ? array : string)
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:973
⧉public escapeIdentifiers($item): array|string Escape the SQL Identifiers
/**
* Escape the SQL Identifiers
*
* This function escapes column and table names
*
* @param array|string $item
*
* @return array|string
* @phpstan-return ($item is array ? array : string)
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:1130
⧉public prefixTable(string $table = ''): string Prepends a database prefix if one exists in configuration
/**
* Prepends a database prefix if one exists in configuration
*
* @throws DatabaseException
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:1188
/**
* Escape String
*
* @param string|string[] $str Input string
* @param bool $like Whether or not the string will be used in a LIKE condition
*
* @return string|string[]
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:1238
⧉public escapeLikeString($str): string|string[] Escape LIKE String
/**
* Escape LIKE String
*
* Calls the individual driver for platform
* specific escaping for LIKE conditions
*
* @param string|string[] $str
*
* @return string|string[]
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:1280
⧉public callFunction(string $functionName, $params): bool This function enables you to call PHP database functions that are not nativel...
/**
* This function enables you to call PHP database functions that are not natively included
* in CodeIgniter, in a platform independent manner.
*
* @param array ...$params
*
* @throws DatabaseException
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:1303
⧉public listTables(bool $constrainByPrefix = false): array|bool Returns an array of table names
/**
* Returns an array of table names
*
* @return array|bool
*
* @throws DatabaseException
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:1341
⧉public tableExists(string $tableName, bool $cached = true): bool Determine if a particular table exists
/**
* Determine if a particular table exists
*
* @param bool $cached Whether to use data cache
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:1391
⧉public getFieldNames(string $table): array|false Fetch Field Names
/**
* Fetch Field Names
*
* @return array|false
*
* @throws DatabaseException
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:1432
⧉public fieldExists(string $fieldName, string $tableName): bool Determine if a particular field exists
/**
* Determine if a particular field exists
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:1477
⧉public getFieldData(string $table): stdClass[] Returns an object with field data
/**
* Returns an object with field data
*
* @return stdClass[]
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:1487
⧉public getIndexData(string $table): array Returns an object with key data
/**
* Returns an object with key data
*
* @return array
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:1497
⧉public getForeignKeyData(string $table): array Returns an object with foreign key data
/**
* Returns an object with foreign key data
*
* @return array
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:1507
/**
* Enables foreign key checks temporarily.
*
* @return bool
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:1534
⧉public pretend(bool $pretend = true): $this Allows the engine to be set into a mode where queries are not actually execut...
/**
* Allows the engine to be set into a mode where queries are not
* actually executed, but they are still generated, timed, etc.
*
* This is primarily used by the prepared query functionality.
*
* @return $this
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:1554
⧉public resetDataCache(): $this Empties our data cache. Especially helpful during testing.
/**
* Empties our data cache. Especially helpful during testing.
*
* @return $this
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:1566
⧉public isWriteType($sql): bool Determines if the statement is a write-type query or not.
/**
* Determines if the statement is a write-type query or not.
*
* @param string $sql
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:1578
⧉public __get(string $key): mixed Accessor for properties if they exist.
/**
* Accessor for properties if they exist.
*
* @return mixed
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:1674
⧉public __isset(string $key): bool Checker for properties existence.
/**
* Checker for properties existence.
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:1686
⧉protected _close() Close the database connection.
/**
* Close the database connection.
*/
Defined in <ROOT>/social/Database/MySQLi/Connection.php:234
⧉protected execute(string $sql): bool|object Executes the query against the database.
/**
* Executes the query against the database.
*
* @return bool|object
*/
Defined in <ROOT>/social/Database/MySQLi/Connection.php:282
⧉protected prepQuery(string $sql): string Prep the query. If needed, each database adapter can prep the query string
/**
* Prep the query. If needed, each database adapter can prep the query string
*/
Defined in <ROOT>/social/Database/MySQLi/Connection.php:307
/**
* Platform-dependant string escape
*/
Defined in <ROOT>/social/Database/MySQLi/Connection.php:329
⧉protected _listTables(bool $prefixLimit = false, ?string $tableName = null): string Generates the SQL for listing tables in a platform-dependent manner. Uses esc...
/**
* Generates the SQL for listing tables in a platform-dependent manner.
* Uses escapeLikeStringDirect().
*
* @param string|null $tableName If $tableName is provided will return only this table if exists.
*/
Defined in <ROOT>/social/Database/MySQLi/Connection.php:374
⧉protected _listColumns(string $table = ''): string Generates a platform-specific query string so that the column names can be fe...
/**
* Generates a platform-specific query string so that the column names can be fetched.
*/
Defined in <ROOT>/social/Database/MySQLi/Connection.php:392
⧉protected _fieldData(string $table): array Returns an array of objects with field data
/**
* Returns an array of objects with field data
*
* @return stdClass[]
*
* @throws DatabaseException
*/
Defined in <ROOT>/social/Database/MySQLi/Connection.php:404
⧉protected _indexData(string $table): array Returns an array of objects with index data
/**
* Returns an array of objects with index data
*
* @return stdClass[]
*
* @throws DatabaseException
* @throws LogicException
*/
Defined in <ROOT>/social/Database/MySQLi/Connection.php:437
⧉protected _foreignKeyData(string $table): array Returns an array of objects with Foreign key data
/**
* Returns an array of objects with Foreign key data
*
* @return stdClass[]
*
* @throws DatabaseException
*/
Defined in <ROOT>/social/Database/MySQLi/Connection.php:482
/**
* Rollback Transaction
*/
Defined in <ROOT>/social/Database/MySQLi/Connection.php:601
⧉protected getDriverFunctionPrefix(): string Get the prefix of the function to access the DB.
/**
* Get the prefix of the function to access the DB.
*/
Inherited from CodeIgniter\Database\BaseConnection
Defined in <ROOT>/social/Database/BaseConnection.php:1325
/**
* Runs the validation process, returning true/false determining whether
* validation was successful or not.
*
* @param array|null $data The array of data to validate.
* @param string|null $group The predefined group of rules to apply.
* @param string|null $dbGroup The database group to use.
*/
Defined in <ROOT>/social/Validation/Validation.php:109
⧉public check($value, string $rule, array $errors = array()): bool Runs the validation process, returning true or false determining whether vali...
/**
* Runs the validation process, returning true or false
* determining whether validation was successful or not.
*
* @param array|bool|float|int|object|string|null $value
* @param string[] $errors
*/
Defined in <ROOT>/social/Validation/Validation.php:189
⧉public withRequest(CodeIgniter\HTTP\RequestInterface $request): CodeIgniter\Validation\ValidationInterface Takes a Request object and grabs the input data to use from its array values.
/**
* Takes a Request object and grabs the input data to use from its
* array values.
*/
Defined in <ROOT>/social/Validation/Validation.php:386
⧉public setRule(string $field, ?string $label, $rules, array $errors = array()): $this Sets an individual rule and custom error messages for a single field.
/**
* Sets an individual rule and custom error messages for a single field.
*
* The custom error message should be just the messages that apply to
* this field, like so:
*
* [
* 'rule' => 'message',
* 'rule' => 'message'
* ]
*
* @param array|string $rules
*
* @return $this
*
* @throws TypeError
*/
Defined in <ROOT>/social/Validation/Validation.php:423
⧉public setRules(array $rules, array $errors = array()): CodeIgniter\Validation\ValidationInterface Stores the rules that should be used to validate the items. Rules should be a...
/**
* Stores the rules that should be used to validate the items.
* Rules should be an array formatted like:
*
* [
* 'field' => 'rule1|rule2'
* ]
*
* The $errors array should be formatted like:
* [
* 'field' => [
* 'rule' => 'message',
* 'rule' => 'message
* ],
* ]
*
* @param array $errors // An array of custom error messages
*/
Defined in <ROOT>/social/Validation/Validation.php:463
⧉public getRules(): array Returns all of the rules currently defined.
/**
* Returns all of the rules currently defined.
*/
Defined in <ROOT>/social/Validation/Validation.php:490
⧉public hasRule(string $field): bool Checks to see if the rule for key $field has been set or not.
/**
* Checks to see if the rule for key $field has been set or not.
*/
Defined in <ROOT>/social/Validation/Validation.php:498
⧉public getRuleGroup(string $group): array Get rule group.
/**
* Get rule group.
*
* @param string $group Group.
*
* @return string[] Rule group.
*
* @throws InvalidArgumentException If group not found.
*/
Defined in <ROOT>/social/Validation/Validation.php:512
⧉public setRuleGroup(string $group) Set rule group.
/**
* Set rule group.
*
* @param string $group Group.
*
* @throws InvalidArgumentException If group not found.
*/
Defined in <ROOT>/social/Validation/Validation.php:532
⧉public listErrors(string $template = 'list'): string Returns the rendered HTML of the errors as defined in $template.
/**
* Returns the rendered HTML of the errors as defined in $template.
*/
Defined in <ROOT>/social/Validation/Validation.php:546
⧉public showError(string $field, string $template = 'single'): string Displays a single error in formatted HTML as defined in the $template view.
/**
* Displays a single error in formatted HTML as defined in the $template view.
*/
Defined in <ROOT>/social/Validation/Validation.php:560
⧉public loadRuleGroup(?string $group = null): array|ValidationException|null Loads custom rule groups (if set) into the current rules.
/**
* Loads custom rule groups (if set) into the current rules.
*
* Rules can be pre-defined in Config\Validation and can
* be any name, but must all still be an array of the
* same format used with setRules(). Additionally, check
* for {group}_errors for an array of custom error messages.
*
* @return array|ValidationException|null
*/
Defined in <ROOT>/social/Validation/Validation.php:600
⧉public hasError(string $field): bool Checks to see if an error exists for the given field.
/**
* Checks to see if an error exists for the given field.
*/
Defined in <ROOT>/social/Validation/Validation.php:680
⧉public getError(?string $field = null): string Returns the error(s) for a specified $field (or empty string if not set).
/**
* Returns the error(s) for a specified $field (or empty string if not
* set).
*/
Defined in <ROOT>/social/Validation/Validation.php:691
⧉public getErrors(): array Returns the array of errors that were encountered during a run() call. The ar...
/**
* Returns the array of errors that were encountered during
* a run() call. The array should be in the following format:
*
* [
* 'field1' => 'error message',
* 'field2' => 'error message',
* ]
*
* @return array<string, string>
*
* @codeCoverageIgnore
*/
Defined in <ROOT>/social/Validation/Validation.php:718
⧉public setError(string $field, string $error): CodeIgniter\Validation\ValidationInterface Sets the error for a specific field. Used by custom validation methods.
/**
* Sets the error for a specific field. Used by custom validation methods.
*/
Defined in <ROOT>/social/Validation/Validation.php:733
⧉public reset(): CodeIgniter\Validation\ValidationInterface Resets the class to a blank slate. Should be called whenever you need to proc...
/**
* Resets the class to a blank slate. Should be called whenever
* you need to process more than one array.
*/
Defined in <ROOT>/social/Validation/Validation.php:822
⧉protected processRules(string $field, ?string $label, $value, $rules = null, ?array $data = null, ?string $originalField = null): bool Runs all of $rules against $field, until one fails, or all of them have been ...
/**
* Runs all of $rules against $field, until one fails, or
* all of them have been processed. If one fails, it adds
* the error to $this->errors and moves on to the next,
* so that we can collect all of the first errors.
*
* @param array|string $value
* @param array|null $rules
* @param array $data The array of data to validate, with `DBGroup`.
* @param string|null $originalField The original asterisk field name like "foo.*.bar".
*/
Defined in <ROOT>/social/Validation/Validation.php:207
⧉protected loadRuleSets() Loads all of the rulesets classes that have been defined in the Config\Valida...
/**
* Loads all of the rulesets classes that have been defined in the
* Config\Validation and stores them locally so we can use them.
*/
Defined in <ROOT>/social/Validation/Validation.php:579
⧉protected fillPlaceholders(array $rules, array $data): array Replace any placeholders within the rules with the values that match the 'key...
/**
* Replace any placeholders within the rules with the values that
* match the 'key' of any properties being set. For example, if
* we had the following $data array:
*
* [ 'id' => 13 ]
*
* and the following rule:
*
* 'required|is_unique[users,email,id,{id}]'
*
* The value of {id} would be replaced with the actual id in the form data:
*
* 'required|is_unique[users,email,id,13]'
*/
Defined in <ROOT>/social/Validation/Validation.php:642
/**
* Attempts to find the appropriate error message
*
* @param string|null $value The value that caused the validation to fail.
*/
Defined in <ROOT>/social/Validation/Validation.php:745
⧉protected splitRules(string $rules): array Split rules string by pipe operator.
/**
* Split rules string by pipe operator.
*/
Defined in <ROOT>/social/Validation/Validation.php:780
⧉private isStringList(array $array): bool Is the array a string list `list<string>`?
/**
* Is the array a string list `list<string>`?
*/
Defined in <ROOT>/social/Validation/Validation.php:359
protected validationMessages -> array (0)
protected validationRules -> array (0)
⧉private builderMethodsNotAvailable -> array (3)
0 => string (17) "getCompiledInsert"
1 => string (17) "getCompiledSelect"
2 => string (17) "getCompiledUpdate"
⧉public __constructor()
Defined in <ROOT>/fourm/Models/UserModel.php:16
⧉public setSummaryViews($UserId, $field, $action)
Defined in <ROOT>/fourm/Models/UserModel.php:20
⧉public __construct()
Inherited from App\Models\CiModel
Defined in <ROOT>/fourm/Models/CiModel.php:21
⧉public add($table, $date_array)
Inherited from App\Models\CiModel
Defined in <ROOT>/fourm/Models/CiModel.php:26
⧉public edit($table, $data_array, $expr)
Inherited from App\Models\CiModel
Defined in <ROOT>/fourm/Models/CiModel.php:32
⧉public getData($table, $expr, $cols = '*')
Inherited from App\Models\CiModel
Defined in <ROOT>/fourm/Models/CiModel.php:40
⧉public tags()
Inherited from App\Models\CiModel
Defined in <ROOT>/fourm/Models/CiModel.php:47
⧉public getTag()
Inherited from App\Models\CiModel
Defined in <ROOT>/fourm/Models/CiModel.php:61
⧉public getTopMembers()
Inherited from App\Models\CiModel
Defined in <ROOT>/fourm/Models/CiModel.php:69
⧉public jsonTag()
Inherited from App\Models\CiModel
Defined in <ROOT>/fourm/Models/CiModel.php:80
⧉public tagList()
Inherited from App\Models\CiModel
Defined in <ROOT>/fourm/Models/CiModel.php:92
Inherited from App\Models\CiModel
Defined in <ROOT>/fourm/Models/CiModel.php:127
⧉public lastAction($table, $expression)
Inherited from App\Models\CiModel
Defined in <ROOT>/fourm/Models/CiModel.php:136
⧉public getPrevious($table, $postId)
Inherited from App\Models\CiModel
Defined in <ROOT>/fourm/Models/CiModel.php:151
⧉public setTable(string $table): $this Specify the table associated with a model
/**
* Specify the table associated with a model
*
* @param string $table Table
*
* @return $this
*/
Inherited from CodeIgniter\Model
Defined in <ROOT>/social/Model.php:151
⧉public getIdValue($data): array|int|string|null Returns the id value for the data array or object
/**
* Returns the id value for the data array or object
*
* @param array|object $data Data
*
* @return array|int|string|null
*/
Inherited from CodeIgniter\Model
Defined in <ROOT>/social/Model.php:483
⧉public chunk(int $size, Closure $userFunc) Loops over records in batches, allowing you to operate on them. Works with $t...
/**
* Loops over records in batches, allowing you to operate on them.
* Works with $this->builder to get the Compiled select to
* determine the rows to operate on.
* This method works only with dbCalls.
*
* @throws DataException
*/
Inherited from CodeIgniter\Model
Defined in <ROOT>/social/Model.php:504
⧉public countAllResults(bool $reset = true, bool $test = false): mixed Override countAllResults to account for soft deleted accounts.
/**
* Override countAllResults to account for soft deleted accounts.
*
* @return mixed
*/
Inherited from CodeIgniter\Model
Defined in <ROOT>/social/Model.php:538
⧉public builder(?string $table = null): BaseBuilder Provides a shared instance of the Query Builder.
/**
* Provides a shared instance of the Query Builder.
*
* @return BaseBuilder
*
* @throws ModelException
*/
Inherited from CodeIgniter\Model
Defined in <ROOT>/social/Model.php:561
⧉public set($key, $value = '', ?bool $escape = null): $this Captures the builder's set() method so that we can validate the data here. Th...
/**
* Captures the builder's set() method so that we can validate the
* data here. This allows it to be used with any of the other
* builder methods and still get validated data, like replace.
*
* @param mixed $key Field name, or an array of field/value pairs
* @param mixed $value Field value, if $key is a single field
* @param bool|null $escape Whether to escape values
*
* @return $this
*/
Inherited from CodeIgniter\Model
Defined in <ROOT>/social/Model.php:608
⧉public insert($data = null, bool $returnID = true): BaseResult|false|int|object|string Inserts data into the database. If an object is provided, it will attempt to ...
/**
* Inserts data into the database. If an object is provided,
* it will attempt to convert it to an array.
*
* @param array|object|null $data
* @param bool $returnID Whether insert ID should be returned or not.
*
* @return BaseResult|false|int|object|string
*
* @throws ReflectionException
*/
Inherited from CodeIgniter\Model
Defined in <ROOT>/social/Model.php:653
⧉public update($id = null, $data = null): bool Updates a single record in the database. If an object is provided, it will at...
/**
* Updates a single record in the database. If an object is provided,
* it will attempt to convert it into an array.
*
* @param array|int|string|null $id
* @param array|object|null $data
*
* @throws ReflectionException
*/
Inherited from CodeIgniter\Model
Defined in <ROOT>/social/Model.php:679
⧉public __get(string $name): mixed Provides/instantiates the builder/db connection and model's table/primary key...
/**
* Provides/instantiates the builder/db connection and model's table/primary key names and return type.
*
* @param string $name Name
*
* @return mixed
*/
Inherited from CodeIgniter\Model
Defined in <ROOT>/social/Model.php:729
⧉public __isset(string $name): bool Checks for the existence of properties across this model, builder, and db con...
/**
* Checks for the existence of properties across this model, builder, and db connection.
*
* @param string $name Name
*/
Inherited from CodeIgniter\Model
Defined in <ROOT>/social/Model.php:747
⧉public __call(string $name, array $params): mixed Provides direct access to method in the builder (if available) and the databa...
/**
* Provides direct access to method in the builder (if available)
* and the database connection.
*
* @return mixed
*/
Inherited from CodeIgniter\Model
Defined in <ROOT>/social/Model.php:762
⧉public find($id = null): array|object|null The resulting row of data, or null. Fetches the row of database
/**
* Fetches the row of database
*
* @param array|int|string|null $id One primary key or an array of primary keys
*
* @return array|object|null The resulting row of data, or null.
*/
Inherited from CodeIgniter\BaseModel
Defined in <ROOT>/social/BaseModel.php:505
⧉public findColumn(string $columnName): array|null The resulting row of data, or null if no data found. Fetches the column of database
/**
* Fetches the column of database
*
* @param string $columnName Column Name
*
* @return array|null The resulting row of data, or null if no data found.
*
* @throws DataException
*/
Inherited from CodeIgniter\BaseModel
Defined in <ROOT>/social/BaseModel.php:549
⧉public findAll(int $limit0, int $offset0): array Fetches all results, while optionally limiting them.
/**
* Fetches all results, while optionally limiting them.
*
* @param int $limit Limit
* @param int $offset Offset
*
* @return array
*/
Inherited from CodeIgniter\BaseModel
Defined in <ROOT>/social/BaseModel.php:568
⧉public first(): array|object|null Returns the first row of the result set.
/**
* Returns the first row of the result set.
*
* @return array|object|null
*/
Inherited from CodeIgniter\BaseModel
Defined in <ROOT>/social/BaseModel.php:608
⧉public save($data): bool A convenience method that will attempt to determine whether the data should b...
/**
* A convenience method that will attempt to determine whether the
* data should be inserted or updated. Will work with either
* an array or object. When using with custom class objects,
* you must ensure that the class will provide access to the class
* variables, even if through a magic method.
*
* @param array|object $data Data
*
* @throws ReflectionException
*/
Inherited from CodeIgniter\BaseModel
Defined in <ROOT>/social/BaseModel.php:650
⧉public getInsertID(): int|string Returns last insert ID or 0.
/**
* Returns last insert ID or 0.
*
* @return int|string
*/
Inherited from CodeIgniter\BaseModel
Defined in <ROOT>/social/BaseModel.php:685
⧉public insertBatch(?array $set = null, ?bool $escape = null, int $batchSize = 100, bool $testing = false): bool|int Number of rows inserted or FALSE on failure Compiles batch insert runs the queries, validating each row prior.
/**
* Compiles batch insert runs the queries, validating each row prior.
*
* @param array|null $set an associative array of insert values
* @param bool|null $escape Whether to escape values
* @param int $batchSize The size of the batch to run
* @param bool $testing True means only number of records is returned, false will execute the query
*
* @return bool|int Number of rows inserted or FALSE on failure
*
* @throws ReflectionException
*/
Inherited from CodeIgniter\BaseModel
Defined in <ROOT>/social/BaseModel.php:785
⧉public updateBatch(?array $set = null, ?string $index = null, int $batchSize = 100, bool $returnSQL = false): mixed Number of rows affected or FALSE on failure Compiles an update and runs the query
/**
* Compiles an update and runs the query
*
* @param array|null $set An associative array of update values
* @param string|null $index The where key
* @param int $batchSize The size of the batch to run
* @param bool $returnSQL True means SQL is returned, false will execute the query
*
* @return mixed Number of rows affected or FALSE on failure
*
* @throws DatabaseException
* @throws ReflectionException
*/
Inherited from CodeIgniter\BaseModel
Defined in <ROOT>/social/BaseModel.php:911
⧉public delete($id = null, bool $purge = false): BaseResult|bool Deletes a single record from the database where $id matches
/**
* Deletes a single record from the database where $id matches
*
* @param array|int|string|null $id The rows primary key(s)
* @param bool $purge Allows overriding the soft deletes setting.
*
* @return BaseResult|bool
*
* @throws DatabaseException
*/
Inherited from CodeIgniter\BaseModel
Defined in <ROOT>/social/BaseModel.php:965
⧉public purgeDeleted(): mixed Permanently deletes all rows that have been marked as deleted through soft de...
/**
* Permanently deletes all rows that have been marked as deleted
* through soft deletes (deleted = 1)
*
* @return mixed
*/
Inherited from CodeIgniter\BaseModel
Defined in <ROOT>/social/BaseModel.php:1002
⧉public withDeleted(bool $val = true): $this Sets $useSoftDeletes value so that we can temporarily override the soft delet...
/**
* Sets $useSoftDeletes value so that we can temporarily override
* the soft deletes settings. Can be used for all find* methods.
*
* @param bool $val Value
*
* @return $this
*/
Inherited from CodeIgniter\BaseModel
Defined in <ROOT>/social/BaseModel.php:1019
⧉public onlyDeleted(): $this Works with the find* methods to return only the rows that have been deleted.
/**
* Works with the find* methods to return only the rows that
* have been deleted.
*
* @return $this
*/
Inherited from CodeIgniter\BaseModel
Defined in <ROOT>/social/BaseModel.php:1032
⧉public replace(?array $data = null, bool $returnSQL = false): mixed Compiles a replace and runs the query
/**
* Compiles a replace and runs the query
*
* @param array|null $data Data
* @param bool $returnSQL Set to true to return Query String
*
* @return mixed
*/
Inherited from CodeIgniter\BaseModel
Defined in <ROOT>/social/BaseModel.php:1048
⧉public errors(bool $forceDB = false): array<string,string> Grabs the last error(s) that occurred. If data was validated, it will first c...
/**
* Grabs the last error(s) that occurred. If data was validated,
* it will first check for errors there, otherwise will try to
* grab the last error from the Database connection.
* The return array should be in the following format:
* ['source' => 'message']
*
* @param bool $forceDB Always grab the db error, not validation
*
* @return array<string,string>
*/
Inherited from CodeIgniter\BaseModel
Defined in <ROOT>/social/BaseModel.php:1073
⧉public paginate(?int $perPage = null, string $group = 'default', ?int $page = null, int $segment0): array|null Works with Pager to get the size and offset parameters. Expects a GET variabl...
/**
* Works with Pager to get the size and offset parameters.
* Expects a GET variable (?page=2) that specifies the page of results
* to display.
*
* @param int|null $perPage Items per page
* @param string $group Will be used by the pagination library to identify a unique pagination set.
* @param int|null $page Optional page number (useful when the page number is provided in different way)
* @param int $segment Optional URI segment number (if page number is provided by URI segment)
*
* @return array|null
*/
Inherited from CodeIgniter\BaseModel
Defined in <ROOT>/social/BaseModel.php:1095
⧉public setAllowedFields(array $allowedFields): $this It could be used when you have to change default or override current allowed ...
/**
* It could be used when you have to change default or override current allowed fields.
*
* @param array $allowedFields Array with names of fields
*
* @return $this
*/
Inherited from CodeIgniter\BaseModel
Defined in <ROOT>/social/BaseModel.php:1120
⧉public protect(bool $protect = true): $this Sets whether or not we should whitelist data set during updates or inserts ag...
/**
* Sets whether or not we should whitelist data set during
* updates or inserts against $this->availableFields.
*
* @param bool $protect Value
*
* @return $this
*/
Inherited from CodeIgniter\BaseModel
Defined in <ROOT>/social/BaseModel.php:1135
⧉public skipValidation(bool $skip = true): $this Set the value of the skipValidation flag.
/**
* Set the value of the skipValidation flag.
*
* @param bool $skip Value
*
* @return $this
*/
Inherited from CodeIgniter\BaseModel
Defined in <ROOT>/social/BaseModel.php:1258
⧉public setValidationMessages(array $validationMessages): $this Allows to set validation messages. It could be used when you have to change d...
/**
* Allows to set validation messages.
* It could be used when you have to change default or override current validate messages.
*
* @param array $validationMessages Value
*
* @return $this
*/
Inherited from CodeIgniter\BaseModel
Defined in <ROOT>/social/BaseModel.php:1273
⧉public setValidationMessage(string $field, array $fieldMessages): $this Allows to set field wise validation message. It could be used when you have t...
/**
* Allows to set field wise validation message.
* It could be used when you have to change default or override current validate messages.
*
* @param string $field Field Name
* @param array $fieldMessages Validation messages
*
* @return $this
*/
Inherited from CodeIgniter\BaseModel
Defined in <ROOT>/social/BaseModel.php:1289
⧉public setValidationRules(array $validationRules): $this Allows to set validation rules. It could be used when you have to change defa...
/**
* Allows to set validation rules.
* It could be used when you have to change default or override current validate rules.
*
* @param array $validationRules Value
*
* @return $this
*/
Inherited from CodeIgniter\BaseModel
Defined in <ROOT>/social/BaseModel.php:1304
⧉public setValidationRule(string $field, $fieldRules): $this Allows to set field wise validation rules. It could be used when you have to ...
/**
* Allows to set field wise validation rules.
* It could be used when you have to change default or override current validate rules.
*
* @param string $field Field Name
* @param array|string $fieldRules Validation rules
*
* @return $this
*/
Inherited from CodeIgniter\BaseModel
Defined in <ROOT>/social/BaseModel.php:1320
⧉public cleanRules(bool $choice = false): $this Should validation rules be removed before saving? Most handy when doing updates.
/**
* Should validation rules be removed before saving?
* Most handy when doing updates.
*
* @param bool $choice Value
*
* @return $this
*/
Inherited from CodeIgniter\BaseModel
Defined in <ROOT>/social/BaseModel.php:1335
⧉public validate($data): bool Validate the data against the validation rules (or the validation group) spec...
/**
* Validate the data against the validation rules (or the validation group)
* specified in the class property, $validationRules.
*
* @param array|object $data Data
*/
Inherited from CodeIgniter\BaseModel
Defined in <ROOT>/social/BaseModel.php:1348
⧉public getValidationRules(array $options = array()): array Returns the model's defined validation rules so that they can be used elsewhe...
/**
* Returns the model's defined validation rules so that they
* can be used elsewhere, if needed.
*
* @param array $options Options
*/
Inherited from CodeIgniter\BaseModel
Defined in <ROOT>/social/BaseModel.php:1380
⧉public getValidationMessages(): array Returns the model's define validation messages so they can be used elsewhere,...
/**
* Returns the model's define validation messages so they
* can be used elsewhere, if needed.
*/
Inherited from CodeIgniter\BaseModel
Defined in <ROOT>/social/BaseModel.php:1403
⧉public allowCallbacks(bool $val = true): $this Sets $tempAllowCallbacks value so that we can temporarily override the settin...
/**
* Sets $tempAllowCallbacks value so that we can temporarily override
* the setting. Resets after the next method that uses triggers.
*
* @param bool $val value
*
* @return $this
*/
Inherited from CodeIgniter\BaseModel
Defined in <ROOT>/social/BaseModel.php:1439
⧉public asArray(): $this Sets the return type of the results to be as an associative array.
/**
* Sets the return type of the results to be as an associative array.
*
* @return $this
*/
Inherited from CodeIgniter\BaseModel
Defined in <ROOT>/social/BaseModel.php:1491
⧉public asObject(string $class = 'object'): $this Sets the return type to be of the specified type of object. Defaults to a sim...
/**
* Sets the return type to be of the specified type of object.
* Defaults to a simple object, but can be any class that has
* class vars with the same name as the collection columns,
* or at least allows them to be created.
*
* @param string $class Class Name
*
* @return $this
*/
Inherited from CodeIgniter\BaseModel
Defined in <ROOT>/social/BaseModel.php:1508
⧉protected doFind(bool $singleton, $id = null): array|object|null The resulting row of data, or null. Fetches the row of database from $this->table with a primary key matching $id...
/**
* Fetches the row of database from $this->table with a primary key
* matching $id.
* This method works only with dbCalls.
*
* @param bool $singleton Single or multiple results
* @param array|int|string|null $id One primary key or an array of primary keys
*
* @return array|object|null The resulting row of data, or null.
*/
Inherited from CodeIgniter\Model
Defined in <ROOT>/social/Model.php:168
⧉protected doFindColumn(string $columnName): array|null The resulting row of data, or null if no data found. Fetches the column of database from $this->table. This method works only with...
/**
* Fetches the column of database from $this->table.
* This method works only with dbCalls.
*
* @param string $columnName Column Name
*
* @return array|null The resulting row of data, or null if no data found.
*/
Inherited from CodeIgniter\Model
Defined in <ROOT>/social/Model.php:199
⧉protected doFindAll(int $limit0, int $offset0): array Works with the current Query Builder instance to return all results, while op...
/**
* Works with the current Query Builder instance to return
* all results, while optionally limiting them.
* This method works only with dbCalls.
*
* @param int $limit Limit
* @param int $offset Offset
*
* @return array
*/
Inherited from CodeIgniter\Model
Defined in <ROOT>/social/Model.php:214
⧉protected doFirst(): array|object|null Returns the first row of the result set. Will take any previous Query Builder...
/**
* Returns the first row of the result set. Will take any previous
* Query Builder calls into account when determining the result set.
* This method works only with dbCalls.
*
* @return array|object|null
*/
Inherited from CodeIgniter\Model
Defined in <ROOT>/social/Model.php:234
⧉protected doInsert(array $data): bool Inserts data into the current table. This method works only with dbCalls.
/**
* Inserts data into the current table.
* This method works only with dbCalls.
*
* @param array $data Data
*
* @return bool
*/
Inherited from CodeIgniter\Model
Defined in <ROOT>/social/Model.php:261
⧉protected doInsertBatch(?array $set = null, ?bool $escape = null, int $batchSize = 100, bool $testing = false): bool|int Number of rows inserted or FALSE on failure Compiles batch insert strings and runs the queries, validating each row prior...
/**
* Compiles batch insert strings and runs the queries, validating each row prior.
* This method works only with dbCalls.
*
* @param array|null $set An associative array of insert values
* @param bool|null $escape Whether to escape values
* @param int $batchSize The size of the batch to run
* @param bool $testing True means only number of records is returned, false will execute the query
*
* @return bool|int Number of rows inserted or FALSE on failure
*/
Inherited from CodeIgniter\Model
Defined in <ROOT>/social/Model.php:300
⧉protected doUpdate($id = null, $data = null): bool Updates a single record in $this->table. This method works only with dbCalls.
/**
* Updates a single record in $this->table.
* This method works only with dbCalls.
*
* @param array|int|string|null $id
* @param array|null $data
*/
Inherited from CodeIgniter\Model
Defined in <ROOT>/social/Model.php:322
⧉protected doUpdateBatch(?array $set = null, ?string $index = null, int $batchSize = 100, bool $returnSQL = false): mixed Number of rows affected or FALSE on failure Compiles an update string and runs the query This method works only with dbCa...
/**
* Compiles an update string and runs the query
* This method works only with dbCalls.
*
* @param array|null $set An associative array of update values
* @param string|null $index The where key
* @param int $batchSize The size of the batch to run
* @param bool $returnSQL True means SQL is returned, false will execute the query
*
* @return mixed Number of rows affected or FALSE on failure
*
* @throws DatabaseException
*/
Inherited from CodeIgniter\Model
Defined in <ROOT>/social/Model.php:354
⧉protected doDelete($id = null, bool $purge = false): bool|string Deletes a single record from $this->table where $id matches the table's prima...
/**
* Deletes a single record from $this->table where $id matches
* the table's primaryKey
* This method works only with dbCalls.
*
* @param array|int|string|null $id The rows primary key(s)
* @param bool $purge Allows overriding the soft deletes setting.
*
* @return bool|string
*
* @throws DatabaseException
*/
Inherited from CodeIgniter\Model
Defined in <ROOT>/social/Model.php:371
⧉protected doPurgeDeleted(): bool|string Returns a string if in test mode. Permanently deletes all rows that have been marked as deleted through soft de...
/**
* Permanently deletes all rows that have been marked as deleted
* through soft deletes (deleted = 1)
* This method works only with dbCalls.
*
* @return bool|string Returns a string if in test mode.
*/
Inherited from CodeIgniter\Model
Defined in <ROOT>/social/Model.php:411
⧉protected doOnlyDeleted() Works with the find* methods to return only the rows that have been deleted. ...
/**
* Works with the find* methods to return only the rows that
* have been deleted.
* This method works only with dbCalls.
*/
Inherited from CodeIgniter\Model
Defined in <ROOT>/social/Model.php:423
⧉protected doReplace(?array $data = null, bool $returnSQL = false): mixed Compiles a replace into string and runs the query This method works only with...
/**
* Compiles a replace into string and runs the query
* This method works only with dbCalls.
*
* @param array|null $data Data
* @param bool $returnSQL Set to true to return Query String
*
* @return mixed
*/
Inherited from CodeIgniter\Model
Defined in <ROOT>/social/Model.php:437
⧉protected doErrors(): array<string,string> Grabs the last error(s) that occurred from the Database connection. The retur...
/**
* Grabs the last error(s) that occurred from the Database connection.
* The return array should be in the following format:
* ['source' => 'message']
* This method works only with dbCalls.
*
* @return array<string,string>
*/
Inherited from CodeIgniter\Model
Defined in <ROOT>/social/Model.php:450
⧉protected idValue($data): array|int|string|null Returns the id value for the data array or object
/**
* Returns the id value for the data array or object
*
* @param array|object $data Data
*
* @return array|int|string|null
*
* @deprecated Use getIdValue() instead. Will be removed in version 5.0.
*/
Inherited from CodeIgniter\Model
Defined in <ROOT>/social/Model.php:471
⧉protected shouldUpdate($data): bool This method is called on save to determine if entry have to be updated If thi...
/**
* This method is called on save to determine if entry have to be updated
* If this method return false insert operation will be executed
*
* @param array|object $data Data
*/
Inherited from CodeIgniter\Model
Defined in <ROOT>/social/Model.php:627
⧉protected objectToRawArray($data, bool $onlyChanged = true, bool $recursive = false): ?array Takes a class an returns an array of it's public and protected properties as ...
/**
* Takes a class an returns an array of it's public and protected
* properties as an array with raw values.
*
* @param object|string $data
* @param bool $recursive If true, inner entities will be casted as array as well
*
* @return array|null Array
*
* @throws ReflectionException
*/
Inherited from CodeIgniter\Model
Defined in <ROOT>/social/Model.php:707
⧉protected initialize() Initializes the instance with any additional steps. Optionally implemented by...
/**
* Initializes the instance with any additional steps.
* Optionally implemented by child classes.
*/
Inherited from CodeIgniter\BaseModel
Defined in <ROOT>/social/BaseModel.php:309
⧉protected doProtectFields(array $data): array Ensures that only the fields that are allowed to be updated are in the data a...
/**
* Ensures that only the fields that are allowed to be updated
* are in the data array.
*
* Used by insert() and update() to protect against mass assignment
* vulnerabilities.
*
* @param array $data Data
*
* @throws DataException
*/
Inherited from CodeIgniter\BaseModel
Defined in <ROOT>/social/BaseModel.php:1153
⧉protected setDate(?int $userData = null): mixed Sets the date or current date if null value is passed
/**
* Sets the date or current date if null value is passed
*
* @param int|null $userData An optional PHP timestamp to be converted.
*
* @return mixed
*
* @throws ModelException
*/
Inherited from CodeIgniter\BaseModel
Defined in <ROOT>/social/BaseModel.php:1181
⧉protected intToDate(int $value): int|string A utility function to allow child models to use the type of date/time format ...
/**
* A utility function to allow child models to use the type of
* date/time format that they prefer. This is primarily used for
* setting created_at, updated_at and deleted_at values, but can be
* used by inheriting classes.
*
* The available time formats are:
* - 'int' - Stores the date as an integer timestamp
* - 'datetime' - Stores the data in the SQL datetime format
* - 'date' - Stores the date (only) in the SQL date format.
*
* @param int $value value
*
* @return int|string
*
* @throws ModelException
*/
Inherited from CodeIgniter\BaseModel
Defined in <ROOT>/social/BaseModel.php:1205
⧉protected timeToDate(CodeIgniter\I18n\Time $value): int|string Converts Time value to string using $this->dateFormat
/**
* Converts Time value to string using $this->dateFormat
*
* The available time formats are:
* - 'int' - Stores the date as an integer timestamp
* - 'datetime' - Stores the data in the SQL datetime format
* - 'date' - Stores the date (only) in the SQL date format.
*
* @param Time $value value
*
* @return int|string
*/
Inherited from CodeIgniter\BaseModel
Defined in <ROOT>/social/BaseModel.php:1234
⧉protected cleanValidationRules(array $rules, ?array $data = null): array Removes any rules that apply to fields that have not been set currently so th...
/**
* Removes any rules that apply to fields that have not been set
* currently so that rules don't block updating when only updating
* a partial row.
*
* @param array $rules Array containing field name and rule
* @param array|null $data Data
*/
Inherited from CodeIgniter\BaseModel
Defined in <ROOT>/social/BaseModel.php:1416
⧉protected trigger(string $event, array $eventData): mixed A simple event trigger for Model Events that allows additional data manipulat...
/**
* A simple event trigger for Model Events that allows additional
* data manipulation within the model. Specifically intended for
* usage by child models this can be used to format data,
* save/load related classes, etc.
*
* It is the responsibility of the callback methods to return
* the data itself.
*
* Each $eventData array MUST have a 'data' key with the relevant
* data for callback methods (like an array of key/value pairs to insert
* or update, an array of results, etc)
*
* If callbacks are not allowed then returns $eventData immediately.
*
* @param string $event Event
* @param array $eventData Event Data
*
* @return mixed
*
* @throws DataException
*/
Inherited from CodeIgniter\BaseModel
Defined in <ROOT>/social/BaseModel.php:1468
⧉protected objectToArray($data, bool $onlyChanged = true, bool $recursive = false): array Takes a class and returns an array of it's public and protected properties as...
/**
* Takes a class and returns an array of it's public and protected
* properties as an array suitable for use in creates and updates.
* This method uses objectToRawArray() internally and does conversion
* to string on all Time instances
*
* @param object|string $data Data
* @param bool $onlyChanged Only Changed Property
* @param bool $recursive If true, inner entities will be casted as array as well
*
* @return array Array
*
* @throws ReflectionException
*/
Inherited from CodeIgniter\BaseModel
Defined in <ROOT>/social/BaseModel.php:1529
⧉protected transformDataToArray($data, string $type): array Transform data to array
/**
* Transform data to array
*
* @param array|object|null $data Data
* @param string $type Type of data (insert|update)
*
* @throws DataException
* @throws InvalidArgumentException
* @throws ReflectionException
*/
Inherited from CodeIgniter\BaseModel
Defined in <ROOT>/social/BaseModel.php:1591
⧉protected fillPlaceholders(array $rules, array $data): array Replace any placeholders within the rules with the values that match the 'key...
/**
* Replace any placeholders within the rules with the values that
* match the 'key' of any properties being set. For example, if
* we had the following $data array:
*
* [ 'id' => 13 ]
*
* and the following rule:
*
* 'required|is_unique[users,email,id,{id}]'
*
* The value of {id} would be replaced with the actual id in the form data:
*
* 'required|is_unique[users,email,id,13]'
*
* @param array $rules Validation rules
* @param array $data Data
*
* @codeCoverageIgnore
*
* @deprecated use fillPlaceholders($rules, $data) from Validation instead
*/
Inherited from CodeIgniter\BaseModel
Defined in <ROOT>/social/BaseModel.php:1696
⇄⧉public static classToArray($data, $primaryKey = null, string $dateFormat = 'datetime', bool $onlyChanged = true): array Takes a class an returns an array of it's public and protected properties as ...
/**
* Takes a class an returns an array of it's public and protected
* properties as an array suitable for use in creates and updates.
*
* @param object|string $data
* @param string|null $primaryKey
*
* @throws ReflectionException
*
* @codeCoverageIgnore
*
* @deprecated since 4.1
*/
Inherited from CodeIgniter\Model
Defined in <ROOT>/social/Model.php:807
⧉Answer => string (5209) "<p>In the sector of <strong>computer technological</strong> know-how, data s...
<p>In the sector of <strong>computer technological</strong> know-how, data systems play a critical function in organizing and storing statistics correctly. Two of the maximum usually used statistics structures are stacks and queues. While each are used to manage collections of information, they operate on special principles and are perfect for specific duties. Understanding the differences among them assist you to pick the proper records structure primarily based at the specific necessities of your <a href="https://en.wikipedia.org/wiki/Software">software</a>.</p>
<h2><strong>What is a Stack?</strong></h2>
<p><img alt="What is a Stack" border="0" hspace="0" src="https://i.postimg.cc/5txb50n2/1713414291257.png" style="border:0px solid black; height:406px; margin-bottom:0px; margin-left:0px; margin-right:0px; margin-top:0px; width:700px" vspace="0" /></p>
<p>A stack is a linear records shape that follows the Last In, First Out (LIFO) precept. In simpler terms, it manner that the most these days introduced item is the primary one to be eliminated. Imagine a stack of plates at a buffet: the remaining plate you location on pinnacle is the first one you’ll take off.</p>
<p><strong>Read Also: <a href="https://www.yourquorum.com/question/what-responsibilities-do-businesses-have-to-protect-customer-data-when-utilizing-ai-tools">What responsibilities do businesses have to protect customer data when utilizing AI tools?</a></strong></p>
<h3><strong>Operations on a Stack:</strong></h3>
<ul>
<li>Push: Adds an item to the top of the stack.</li>
<li>Pop: Removes the object from the top of the stack.</li>
<li>Peek/Top: Returns the object at the pinnacle of the stack with out putting off it.</li>
<li>IsEmpty: Checks if the stack is empty.</li>
<li>Example of a Stack:</li>
<li>Let’s bear in mind a stack of numbers:</li>
</ul>
<p>If you push 15 onto the stack, the stack turns<br />
If then you definately pop an detail, 15 may be eliminated, leaving the stack as [5, 8, 12].<br />
This feature makes stacks useful in situations wherein the most latest information is needed to be processed first, like in undo mechanisms in programs, function calls in programming languages, and parsing expressions in compilers.</p>
<h3><strong>What is a Queue?</strong></h3>
<p>A queue is another linear records structure, but it follows the First In, First Out (FIFO) principle. This manner that the first object introduced is the first one to be eliminated. Think of a queue at a grocery keep checkout: the primary man or woman in line is the first one to be served.</p>
<h3><strong>Real-World Applications:</strong></h3>
<h4><strong>Stack:</strong></h4>
<p>Function Calls in Programming: The machine makes use of a stack to manipulate feature calls. When a feature is referred to as, its context is pushed onto the stack. Once the feature completes, its context is popped off.</p>
<p>Expression Evaluation: Stacks are vital in comparing expressions like postfix (Reverse Polish notation). For instance, to assess the expression three four + five *, a stack can preserve intermediate results as operations are done.</p>
<p>Undo Mechanism: Many programs, like text editors, use stacks to put into effect the undo feature. Each action (e.G., typing a letter, deleting text) is pushed onto a stack, and undoing an action pops the maximum current one.</p>
<h4><strong>Queue:</strong></h4>
<p>Task Scheduling: In working structures, queues are used to manage the execution of techniques. The first method that arrives is the primary one to be performed (FIFO).</p>
<p><strong>You May Also Like: <a href="https://www.yourquorum.com/question/can-i-major-in-computer-science-with-no-coding-experience">Can I major in computer science with no coding experience?</a></strong></p>
<p>Data Streaming: Queues are used in managing records streams where records is processed within the order it arrives. For example, in networking, facts packets are processed within the order they come at the receiver.</p>
<p>Print Queue: In a network of computer systems, documents despatched to a printer are stored in a queue, ensuring that the primary record despatched is outlined first.</p>
<h4><strong>Conclusion</strong>:</h4>
<p>Both stacks and queues are essential statistics structures that assist us manipulate facts efficiently, each with its personal use instances. Stacks are awesome for dealing with data where the most current object is processed first (LIFO), while queues are perfect for processing statistics within the order it arrives (FIFO). By knowledge those statistics systems and their characteristics, builders can make informed choices on which one to apply for particular obligations, optimizing both overall performance and capability in software program development.</p>
<p>Choosing the proper information structure is an vital ability in laptop science, and understanding when to use a stack as opposed to a queue can assist streamline methods on your applications.</p>
<div id="gtx-trans" style="left:657px; position:absolute; top:56.3906px">
<div class="gtx-trans-icon"> </div>
</div>
⧉MetaDesc => string (167) "In the sector of computer technological know-how, data systems play a critic...
In the sector of computer technological know-how, data systems play a critical function in organizing and storing statistics correctly. Two of the maximum usually used
what-is-the-difference-between-canine-flu-and-kennel-cough => string (59) "What is the difference between canine flu and kennel cough?"
what-is-the-difference-between-aeronautical-and-astronautical => string (62) "What is the difference between aeronautical and astronautical?"
what-is-the-difference-between-hawaiian-mac-salad-and-regular-mac-salad => string (72) "What is the difference between Hawaiian mac salad and regular Mac salad?"
what-is-difference-between-ai-and-ml => string (37) "What is difference between AI and ML?"
what-is-the-difference-between-gigi-and-bella-hadid => string (52) "What is the difference between Gigi and Bella Hadid?"
⧉public getFieldCount(): int Gets the number of fields in the result set.
/**
* Gets the number of fields in the result set.
*/
Defined in <ROOT>/social/Database/MySQLi/Result.php:26
⧉public getFieldNames(): array Generates an array of column names in the result set.
/**
* Generates an array of column names in the result set.
*/
Defined in <ROOT>/social/Database/MySQLi/Result.php:34
⧉public getFieldData(): array Generates an array of objects representing field meta-data.
/**
* Generates an array of objects representing field meta-data.
*/
Defined in <ROOT>/social/Database/MySQLi/Result.php:49
⧉public freeResult() Frees the current result.
/**
* Frees the current result.
*/
Defined in <ROOT>/social/Database/MySQLi/Result.php:103
⧉public dataSeek(int $n0): mixed Moves the internal pointer to the desired offset. This is called internally b...
/**
* Moves the internal pointer to the desired offset. This is called
* internally before fetching results to make sure the result set
* starts at zero.
*
* @return mixed
*/
Defined in <ROOT>/social/Database/MySQLi/Result.php:118
⧉public getNumRows(): int Returns the number of rows in the resultID (i.e., mysqli_result object)
/**
* Returns the number of rows in the resultID (i.e., mysqli_result object)
*/
Defined in <ROOT>/social/Database/MySQLi/Result.php:154
/**
* Constructor
*
* @param object|resource $connID
* @param object|resource $resultID
*/
Inherited from CodeIgniter\Database\BaseResult
Defined in <ROOT>/social/Database/BaseResult.php:83
⧉public getResult(string $type = 'object'): array Retrieve the results of the query. Typically an array of individual data rows...
/**
* Retrieve the results of the query. Typically an array of
* individual data rows, which can be either an 'array', an
* 'object', or a custom class name.
*
* @param string $type The row type. Either 'array', 'object', or a class name to use
*/
Inherited from CodeIgniter\Database\BaseResult
Defined in <ROOT>/social/Database/BaseResult.php:96
⧉public getCustomResultObject(string $className): mixed Returns the results as an array of custom objects.
/**
* Returns the results as an array of custom objects.
*
* @return mixed
*/
Inherited from CodeIgniter\Database\BaseResult
Defined in <ROOT>/social/Database/BaseResult.php:114
⧉public getResultArray(): array Returns the results as an array of arrays.
/**
* Returns the results as an array of arrays.
*
* If no results, an empty array is returned.
*/
Inherited from CodeIgniter\Database\BaseResult
Defined in <ROOT>/social/Database/BaseResult.php:165
⧉public getResultObject(): array Returns the results as an array of objects.
/**
* Returns the results as an array of objects.
*
* If no results, an empty array is returned.
*/
Inherited from CodeIgniter\Database\BaseResult
Defined in <ROOT>/social/Database/BaseResult.php:202
⧉public getRow($n0, string $type = 'object'): mixed Wrapper object to return a row as either an array, an object, or a custom class.
/**
* Wrapper object to return a row as either an array, an object, or
* a custom class.
*
* If row doesn't exist, returns null.
*
* @param mixed $n The index of the results to return
* @param string $type The type of result object. 'array', 'object' or class name.
*
* @return mixed
*/
Inherited from CodeIgniter\Database\BaseResult
Defined in <ROOT>/social/Database/BaseResult.php:249
⧉public getCustomRowObject(int $n, string $className): mixed Returns a row as a custom class instance.
/**
* Returns a row as a custom class instance.
*
* If row doesn't exists, returns null.
*
* @return mixed
*/
Inherited from CodeIgniter\Database\BaseResult
Defined in <ROOT>/social/Database/BaseResult.php:283
⧉public getRowArray(int $n0): mixed Returns a single row from the results as an array.
/**
* Returns a single row from the results as an array.
*
* If row doesn't exist, returns null.
*
* @return mixed
*/
Inherited from CodeIgniter\Database\BaseResult
Defined in <ROOT>/social/Database/BaseResult.php:307
⧉public getRowObject(int $n0): mixed Returns a single row from the results as an object.
/**
* Returns a single row from the results as an object.
*
* If row doesn't exist, returns null.
*
* @return mixed
*/
Inherited from CodeIgniter\Database\BaseResult
Defined in <ROOT>/social/Database/BaseResult.php:328
⧉public setRow($key, $value = null): mixed Assigns an item into a particular column slot.
/**
* Assigns an item into a particular column slot.
*
* @param mixed $key
* @param mixed $value
*
* @return mixed
*/
Inherited from CodeIgniter\Database\BaseResult
Defined in <ROOT>/social/Database/BaseResult.php:350
⧉public getFirstRow(string $type = 'object'): mixed Returns the "first" row of the current results.
/**
* Returns the "first" row of the current results.
*
* @return mixed
*/
Inherited from CodeIgniter\Database\BaseResult
Defined in <ROOT>/social/Database/BaseResult.php:375
⧉public getLastRow(string $type = 'object'): mixed Returns the "last" row of the current results.
/**
* Returns the "last" row of the current results.
*
* @return mixed
*/
Inherited from CodeIgniter\Database\BaseResult
Defined in <ROOT>/social/Database/BaseResult.php:387
⧉public getNextRow(string $type = 'object'): mixed Returns the "next" row of the current results.
/**
* Returns the "next" row of the current results.
*
* @return mixed
*/
Inherited from CodeIgniter\Database\BaseResult
Defined in <ROOT>/social/Database/BaseResult.php:399
⧉public getPreviousRow(string $type = 'object'): mixed Returns the "previous" row of the current results.
/**
* Returns the "previous" row of the current results.
*
* @return mixed
*/
Inherited from CodeIgniter\Database\BaseResult
Defined in <ROOT>/social/Database/BaseResult.php:414
⧉public getUnbufferedRow(string $type = 'object'): mixed Returns an unbuffered row and move the pointer to the next row.
/**
* Returns an unbuffered row and move the pointer to the next row.
*
* @return mixed
*/
Inherited from CodeIgniter\Database\BaseResult
Defined in <ROOT>/social/Database/BaseResult.php:433
⧉protected fetchAssoc(): mixed Returns the result set as an array.
/**
* Returns the result set as an array.
*
* Overridden by driver classes.
*
* @return mixed
*/
Defined in <ROOT>/social/Database/MySQLi/Result.php:130
⧉protected fetchObject(string $className = 'stdClass'): bool|Entity|object Returns the result set as an object.
/**
* Returns the result set as an object.
*
* Overridden by child classes.
*
* @return bool|Entity|object
*/
Defined in <ROOT>/social/Database/MySQLi/Result.php:142
-rwxrwxrwx 0 0 11.7KB Nov 05 2022 /var/www/html/yourquorum.com/social/ThirdParty/Escaper/Escaper.php
protected files -> array (0)
⧉protected prefixes -> array (4)
⧉CodeIgniter => array (1) Depth Limit
⧉App => array (1) Depth Limit
⧉Config => array (1) Depth Limit
⧉Modules\Admin => array (1) Depth Limit
⧉public initialize(Config\Autoload $config, Config\Modules $modules): $this Reads in the configuration array (described above) and stores the valid parts...
/**
* Reads in the configuration array (described above) and stores
* the valid parts that we'll need.
*
* @return $this
*/
Defined in <ROOT>/social/Autoloader/Autoloader.php:83
⧉public register() Register the loader with the SPL autoloader stack.
/**
* Register the loader with the SPL autoloader stack.
*/
Defined in <ROOT>/social/Autoloader/Autoloader.php:134
⧉public addNamespace($namespace, ?string $path = null): $this Registers namespaces with the autoloader.
/**
* Registers namespaces with the autoloader.
*
* @param array|string $namespace
*
* @return $this
*/
Defined in <ROOT>/social/Autoloader/Autoloader.php:155
⧉public getNamespace(?string $prefix = null): array Get namespaces with prefixes as keys and paths as values.
/**
* Get namespaces with prefixes as keys and paths as values.
*
* If a prefix param is set, returns only paths to the given prefix.
*
* @return array
*/
Defined in <ROOT>/social/Autoloader/Autoloader.php:185
⧉public removeNamespace(string $namespace): $this Removes a single namespace from the psr4 settings.
/**
* Removes a single namespace from the psr4 settings.
*
* @return $this
*/
Defined in <ROOT>/social/Autoloader/Autoloader.php:199
⧉public loadClassmap(string $class): false|string Load a class using available class mapping.
/**
* Load a class using available class mapping.
*
* @return false|string
*/
Defined in <ROOT>/social/Autoloader/Autoloader.php:213
⧉public loadClass(string $class): false|string The mapped file on success, or boolean false Loads the class file for a given class name.
/**
* Loads the class file for a given class name.
*
* @param string $class The fully qualified class name.
*
* @return false|string The mapped file on success, or boolean false
* on failure.
*/
Defined in <ROOT>/social/Autoloader/Autoloader.php:232
⧉public sanitizeFilename(string $filename): string Sanitizes a filename, replacing spaces with dashes.
/**
* Sanitizes a filename, replacing spaces with dashes.
*
* Removes special characters that are illegal in filenames on certain
* operating systems and special characters requiring special escaping
* to manipulate at the command line. Replaces spaces and consecutive
* dashes with a single dash. Trim period, dash and underscore from beginning
* and end of filename.
*
* @return string The sanitized filename
*/
Defined in <ROOT>/social/Autoloader/Autoloader.php:301
⧉protected loadInNamespace(string $class): false|string The mapped file name on success, or boolean false on fail Loads the class file for a given class name.
/**
* Loads the class file for a given class name.
*
* @param string $class The fully-qualified class name
*
* @return false|string The mapped file name on success, or boolean false on fail
*/
Defined in <ROOT>/social/Autoloader/Autoloader.php:247
⧉protected includeFile(string $file): false|string The filename on success, false if the file is not loaded A central way to include a file. Split out primarily for testing purposes.
/**
* A central way to include a file. Split out primarily for testing purposes.
*
* @return false|string The filename on success, false if the file is not loaded
*/
Defined in <ROOT>/social/Autoloader/Autoloader.php:277
⧉protected discoverComposerNamespaces() Locates autoload information from Composer, if available.
/**
* Locates autoload information from Composer, if available.
*
* @deprecated No longer used.
*/
Defined in <ROOT>/social/Autoloader/Autoloader.php:344
Defined in <ROOT>/social/Autoloader/FileLocator.php:27
⧉public locateFile(string $file, ?string $folder = null, string $ext = 'php'): false|string The path to the file, or false if not found. Attempts to locate a file by examining the name for a namespace and looking t...
/**
* Attempts to locate a file by examining the name for a namespace
* and looking through the PSR-4 namespaced files that we know about.
*
* @param string $file The namespaced file to locate
* @param string|null $folder The folder within the namespace that we should look for the file.
* @param string $ext The file extension the file should have.
*
* @return false|string The path to the file, or false if not found.
*/
Defined in <ROOT>/social/Autoloader/FileLocator.php:42
⧉public getClassname(string $file): string Examines a file and returns the fully qualified class name.
/**
* Examines a file and returns the fully qualified class name.
*/
Defined in <ROOT>/social/Autoloader/FileLocator.php:113
⧉public search(string $path, string $ext = 'php', bool $prioritizeApp = true): array Searches through all of the defined namespaces looking for a file. Returns an...
/**
* Searches through all of the defined namespaces looking for a file.
* Returns an array of all found locations for the defined file.
*
* Example:
*
* $locator->search('Config/Routes.php');
* // Assuming PSR4 namespaces include foo and bar, might return:
* [
* 'app/Modules/foo/Config/Routes.php',
* 'app/Modules/bar/Config/Routes.php',
* ]
*/
Defined in <ROOT>/social/Autoloader/FileLocator.php:166
⧉public findQualifiedNameFromPath(string $path): false|string The qualified name or false if the path is not found Find the qualified name of a file according to the namespace of the first mat...
/**
* Find the qualified name of a file according to
* the namespace of the first matched namespace path.
*
* @return false|string The qualified name or false if the path is not found
*/
Defined in <ROOT>/social/Autoloader/FileLocator.php:253
⧉public listFiles(string $path): array Scans the defined namespaces, returning a list of all files that are containe...
/**
* Scans the defined namespaces, returning a list of all files
* that are contained within the subpath specified by $path.
*
* @return string[] List of file paths
*/
Defined in <ROOT>/social/Autoloader/FileLocator.php:295
⧉public listNamespaceFiles(string $prefix, string $path): array Scans the provided namespace, returning a list of all files that are containe...
/**
* Scans the provided namespace, returning a list of all files
* that are contained within the sub path specified by $path.
*
* @return string[] List of file paths
*/
Defined in <ROOT>/social/Autoloader/FileLocator.php:328
⧉protected ensureExt(string $path, string $ext): string Ensures a extension is at the end of a filename
/**
* Ensures a extension is at the end of a filename
*/
Defined in <ROOT>/social/Autoloader/FileLocator.php:199
⧉protected getNamespaces(): array<int, array<string, string>> Return the namespace mappings we know about.
/**
* Return the namespace mappings we know about.
*
* @return array<int, array<string, string>>
*/
Defined in <ROOT>/social/Autoloader/FileLocator.php:217
⧉protected legacyLocate(string $file, ?string $folder = null): false|string The path to the file, or false if not found. Checks the app folder to see if the file can be found. Only for use with file...
/**
* Checks the app folder to see if the file can be found.
* Only for use with filenames that DO NOT include namespacing.
*
* @return false|string The path to the file, or false if not found.
*/
Defined in <ROOT>/social/Autoloader/FileLocator.php:362
/**
* Constructor.
*
* @param \Config\Logger $config
*
* @throws RuntimeException
*/
Defined in <ROOT>/social/Log/Logger.php:119
⧉public emergency($message, array $context = array()): bool System is unusable.
/**
* System is unusable.
*
* @param string $message
*/
Defined in <ROOT>/social/Log/Logger.php:157
⧉public alert($message, array $context = array()): bool Action must be taken immediately.
/**
* Action must be taken immediately.
*
* Example: Entire website down, database unavailable, etc. This should
* trigger the SMS alerts and wake you up.
*
* @param string $message
*/
Defined in <ROOT>/social/Log/Logger.php:170
⧉public error($message, array $context = array()): bool Runtime errors that do not require immediate action but should typically be l...
/**
* Runtime errors that do not require immediate action but should typically
* be logged and monitored.
*
* @param string $message
*/
Defined in <ROOT>/social/Log/Logger.php:193
⧉public warning($message, array $context = array()): bool Exceptional occurrences that are not errors.
/**
* Exceptional occurrences that are not errors.
*
* Example: Use of deprecated APIs, poor use of an API, undesirable things
* that are not necessarily wrong.
*
* @param string $message
*/
Defined in <ROOT>/social/Log/Logger.php:206
⧉public notice($message, array $context = array()): bool Normal but significant events.
/**
* Normal but significant events.
*
* @param string $message
*/
Defined in <ROOT>/social/Log/Logger.php:216
/**
* Detailed debug information.
*
* @param string $message
*/
Defined in <ROOT>/social/Log/Logger.php:238
⧉public log($level, $message, array $context = array()): bool Logs with an arbitrary level.
/**
* Logs with an arbitrary level.
*
* @param string $level
* @param string $message
*/
Defined in <ROOT>/social/Log/Logger.php:249
⧉public determineFile(): array Determines the file and line that the logging call was made from by analyzing...
/**
* Determines the file and line that the logging call
* was made from by analyzing the backtrace.
* Find the earliest stack frame that is part of our logging system.
*/
Defined in <ROOT>/social/Log/Logger.php:373
⧉protected interpolate($message, array $context = array()): string Replaces any placeholders in the message with variables from the context, as ...
/**
* Replaces any placeholders in the message with variables
* from the context, as well as a few special items like:
*
* {session_vars}
* {post_vars}
* {get_vars}
* {env}
* {env:foo}
* {file}
* {line}
*
* @param string $message
*
* @return string
*/
Defined in <ROOT>/social/Log/Logger.php:315
⧉protected cleanFileNames(string $file): string Cleans the paths of filenames by replacing APPPATH, SYSTEMPATH, FCPATH with t...
/**
* Cleans the paths of filenames by replacing APPPATH, SYSTEMPATH, FCPATH
* with the actual var. i.e.
*
* /var/www/site/app/Controllers/Home.php
* becomes:
* APPPATH/Controllers/Home.php
*
* @deprecated Use dedicated `clean_path()` function.
*/
Defined in <ROOT>/social/Log/Logger.php:423
⧉public render(string $view, ?array $options = null, ?bool $saveData = null): string Builds the output based upon a file name and any data that has already been set.
/**
* Builds the output based upon a file name and any
* data that has already been set.
*
* Valid $options:
* - cache Number of seconds to cache for
* - cache_name Name to use for cache
*
* @param string $view File name of the view source
* @param array|null $options Reserved for 3rd-party uses since
* it might be needed to pass additional info
* to other template engines.
* @param bool|null $saveData If true, saves data for subsequent calls,
* if false, cleans the data after displaying,
* if null, uses the config setting.
*/
Defined in <ROOT>/social/View/View.php:166
⧉public renderString(string $view, ?array $options = null, ?bool $saveData = null): string Builds the output based upon a string and any data that has already been set....
/**
* Builds the output based upon a string and any
* data that has already been set.
* Cache does not apply, because there is no "key".
*
* @param string $view The view contents
* @param array|null $options Reserved for 3rd-party uses since
* it might be needed to pass additional info
* to other template engines.
* @param bool|null $saveData If true, saves data for subsequent calls,
* if false, cleans the data after displaying,
* if null, uses the config setting.
*/
Defined in <ROOT>/social/View/View.php:277
⧉public excerpt(string $string, int $length = 20): string Extract first bit of a long string and add ellipsis
/**
* Extract first bit of a long string and add ellipsis
*/
Defined in <ROOT>/social/View/View.php:300
⧉public setData(array $data = array(), ?string $context = null): CodeIgniter\View\RendererInterface Sets several pieces of view data at once.
/**
* Sets several pieces of view data at once.
*
* @param string|null $context The context to escape it for: html, css, js, url
* If null, no escaping will happen
* @phpstan-param null|'html'|'js'|'css'|'url'|'attr'|'raw' $context
*/
Defined in <ROOT>/social/View/View.php:312
⧉public setVar(string $name, $value = null, ?string $context = null): CodeIgniter\View\RendererInterface Sets a single piece of view data.
/**
* Sets a single piece of view data.
*
* @param mixed $value
* @param string|null $context The context to escape it for: html, css, js, url
* If null, no escaping will happen
* @phpstan-param null|'html'|'js'|'css'|'url'|'attr'|'raw' $context
*/
Defined in <ROOT>/social/View/View.php:332
⧉public resetData(): CodeIgniter\View\RendererInterface Removes all of the view data from the system.
/**
* Removes all of the view data from the system.
*/
Defined in <ROOT>/social/View/View.php:347
⧉public getData(): array Returns the current data that will be displayed in the view.
/**
* Returns the current data that will be displayed in the view.
*/
Defined in <ROOT>/social/View/View.php:357
⧉public extend(string $layout) Specifies that the current view should extend an existing layout.
/**
* Specifies that the current view should extend an existing layout.
*/
Defined in <ROOT>/social/View/View.php:365
⧉public section(string $name) Starts holds content for a section within the layout.
/**
* Starts holds content for a section within the layout.
*
* @param string $name Section name
*/
Defined in <ROOT>/social/View/View.php:375
⧉public endSection() Captures the last section
/**
* Captures the last section
*
* @throws RuntimeException
*/
Defined in <ROOT>/social/View/View.php:389
⧉public renderSection(string $sectionName) Renders a section's contents.
/**
* Renders a section's contents.
*/
Defined in <ROOT>/social/View/View.php:410
⧉public include(string $view, ?array $options = null, $saveData = true): string Used within layout views to include additional views.
/**
* Used within layout views to include additional views.
*
* @param bool $saveData
*/
Defined in <ROOT>/social/View/View.php:429
⧉public getPerformanceData(): array Returns the performance data that might have been collected during the execut...
/**
* Returns the performance data that might have been collected
* during the execution. Used primarily in the Debug Toolbar.
*/
Defined in <ROOT>/social/View/View.php:438
⧉protected decorateOutput(string $html): string Runs the generated output through any declared view decorators.
/**
* Runs the generated output through any declared
* view decorators.
*/
Defined in <ROOT>/social/View/ViewDecoratorTrait.php:22
⧉protected logPerformance(float $start, float $end, string $view) Logs performance data for rendering a view.
/**
* Logs performance data for rendering a view.
*/
Defined in <ROOT>/social/View/View.php:446
/**
* Runs the validation process, returning true/false determining whether
* validation was successful or not.
*
* @param array|null $data The array of data to validate.
* @param string|null $group The predefined group of rules to apply.
* @param string|null $dbGroup The database group to use.
*/
Defined in <ROOT>/social/Validation/Validation.php:109
⧉public check($value, string $rule, array $errors = array()): bool Runs the validation process, returning true or false determining whether vali...
/**
* Runs the validation process, returning true or false
* determining whether validation was successful or not.
*
* @param array|bool|float|int|object|string|null $value
* @param string[] $errors
*/
Defined in <ROOT>/social/Validation/Validation.php:189
⧉public withRequest(CodeIgniter\HTTP\RequestInterface $request): CodeIgniter\Validation\ValidationInterface Takes a Request object and grabs the input data to use from its array values.
/**
* Takes a Request object and grabs the input data to use from its
* array values.
*/
Defined in <ROOT>/social/Validation/Validation.php:386
⧉public setRule(string $field, ?string $label, $rules, array $errors = array()): $this Sets an individual rule and custom error messages for a single field.
/**
* Sets an individual rule and custom error messages for a single field.
*
* The custom error message should be just the messages that apply to
* this field, like so:
*
* [
* 'rule' => 'message',
* 'rule' => 'message'
* ]
*
* @param array|string $rules
*
* @return $this
*
* @throws TypeError
*/
Defined in <ROOT>/social/Validation/Validation.php:423
⧉public setRules(array $rules, array $errors = array()): CodeIgniter\Validation\ValidationInterface Stores the rules that should be used to validate the items. Rules should be a...
/**
* Stores the rules that should be used to validate the items.
* Rules should be an array formatted like:
*
* [
* 'field' => 'rule1|rule2'
* ]
*
* The $errors array should be formatted like:
* [
* 'field' => [
* 'rule' => 'message',
* 'rule' => 'message
* ],
* ]
*
* @param array $errors // An array of custom error messages
*/
Defined in <ROOT>/social/Validation/Validation.php:463
⧉public getRules(): array Returns all of the rules currently defined.
/**
* Returns all of the rules currently defined.
*/
Defined in <ROOT>/social/Validation/Validation.php:490
⧉public hasRule(string $field): bool Checks to see if the rule for key $field has been set or not.
/**
* Checks to see if the rule for key $field has been set or not.
*/
Defined in <ROOT>/social/Validation/Validation.php:498
⧉public getRuleGroup(string $group): array Get rule group.
/**
* Get rule group.
*
* @param string $group Group.
*
* @return string[] Rule group.
*
* @throws InvalidArgumentException If group not found.
*/
Defined in <ROOT>/social/Validation/Validation.php:512
⧉public setRuleGroup(string $group) Set rule group.
/**
* Set rule group.
*
* @param string $group Group.
*
* @throws InvalidArgumentException If group not found.
*/
Defined in <ROOT>/social/Validation/Validation.php:532
⧉public listErrors(string $template = 'list'): string Returns the rendered HTML of the errors as defined in $template.
/**
* Returns the rendered HTML of the errors as defined in $template.
*/
Defined in <ROOT>/social/Validation/Validation.php:546
⧉public showError(string $field, string $template = 'single'): string Displays a single error in formatted HTML as defined in the $template view.
/**
* Displays a single error in formatted HTML as defined in the $template view.
*/
Defined in <ROOT>/social/Validation/Validation.php:560
⧉public loadRuleGroup(?string $group = null): array|ValidationException|null Loads custom rule groups (if set) into the current rules.
/**
* Loads custom rule groups (if set) into the current rules.
*
* Rules can be pre-defined in Config\Validation and can
* be any name, but must all still be an array of the
* same format used with setRules(). Additionally, check
* for {group}_errors for an array of custom error messages.
*
* @return array|ValidationException|null
*/
Defined in <ROOT>/social/Validation/Validation.php:600
⧉public hasError(string $field): bool Checks to see if an error exists for the given field.
/**
* Checks to see if an error exists for the given field.
*/
Defined in <ROOT>/social/Validation/Validation.php:680
⧉public getError(?string $field = null): string Returns the error(s) for a specified $field (or empty string if not set).
/**
* Returns the error(s) for a specified $field (or empty string if not
* set).
*/
Defined in <ROOT>/social/Validation/Validation.php:691
⧉public getErrors(): array Returns the array of errors that were encountered during a run() call. The ar...
/**
* Returns the array of errors that were encountered during
* a run() call. The array should be in the following format:
*
* [
* 'field1' => 'error message',
* 'field2' => 'error message',
* ]
*
* @return array<string, string>
*
* @codeCoverageIgnore
*/
Defined in <ROOT>/social/Validation/Validation.php:718
⧉public setError(string $field, string $error): CodeIgniter\Validation\ValidationInterface Sets the error for a specific field. Used by custom validation methods.
/**
* Sets the error for a specific field. Used by custom validation methods.
*/
Defined in <ROOT>/social/Validation/Validation.php:733
⧉public reset(): CodeIgniter\Validation\ValidationInterface Resets the class to a blank slate. Should be called whenever you need to proc...
/**
* Resets the class to a blank slate. Should be called whenever
* you need to process more than one array.
*/
Defined in <ROOT>/social/Validation/Validation.php:822
⧉protected processRules(string $field, ?string $label, $value, $rules = null, ?array $data = null, ?string $originalField = null): bool Runs all of $rules against $field, until one fails, or all of them have been ...
/**
* Runs all of $rules against $field, until one fails, or
* all of them have been processed. If one fails, it adds
* the error to $this->errors and moves on to the next,
* so that we can collect all of the first errors.
*
* @param array|string $value
* @param array|null $rules
* @param array $data The array of data to validate, with `DBGroup`.
* @param string|null $originalField The original asterisk field name like "foo.*.bar".
*/
Defined in <ROOT>/social/Validation/Validation.php:207
⧉protected loadRuleSets() Loads all of the rulesets classes that have been defined in the Config\Valida...
/**
* Loads all of the rulesets classes that have been defined in the
* Config\Validation and stores them locally so we can use them.
*/
Defined in <ROOT>/social/Validation/Validation.php:579
⧉protected fillPlaceholders(array $rules, array $data): array Replace any placeholders within the rules with the values that match the 'key...
/**
* Replace any placeholders within the rules with the values that
* match the 'key' of any properties being set. For example, if
* we had the following $data array:
*
* [ 'id' => 13 ]
*
* and the following rule:
*
* 'required|is_unique[users,email,id,{id}]'
*
* The value of {id} would be replaced with the actual id in the form data:
*
* 'required|is_unique[users,email,id,13]'
*/
Defined in <ROOT>/social/Validation/Validation.php:642
/**
* Attempts to find the appropriate error message
*
* @param string|null $value The value that caused the validation to fail.
*/
Defined in <ROOT>/social/Validation/Validation.php:745
⧉protected splitRules(string $rules): array Split rules string by pipe operator.
/**
* Split rules string by pipe operator.
*/
Defined in <ROOT>/social/Validation/Validation.php:780
⧉private isStringList(array $array): bool Is the array a string list `list<string>`?
/**
* Is the array a string list `list<string>`?
*/
Defined in <ROOT>/social/Validation/Validation.php:359
protected validationMessages -> array (0)
protected validationRules -> array (0)
⧉private builderMethodsNotAvailable -> array (3)
0 => string (17) "getCompiledInsert"
1 => string (17) "getCompiledSelect"
2 => string (17) "getCompiledUpdate"
⇄⧉public __construct()
new \App\Models\AnswerModel()
Defined in <ROOT>/fourm/Models/AnswerModel.php:16
⇄⧉public getAnsQid()
$value->getAnsQid()
Defined in <ROOT>/fourm/Models/AnswerModel.php:22
⇄⧉public add($table, $date_array)
$value->add($table, $date_array)
Inherited from App\Models\CiModel
Defined in <ROOT>/fourm/Models/CiModel.php:26
⇄⧉public edit($table, $data_array, $expr)
$value->edit($table, $data_array, $expr)
Inherited from App\Models\CiModel
Defined in <ROOT>/fourm/Models/CiModel.php:32
⇄⧉public getData($table, $expr, $cols = '*')
$value->getData($table, $expr, $cols = '*')
Inherited from App\Models\CiModel
Defined in <ROOT>/fourm/Models/CiModel.php:40
⇄⧉public tags()
$value->tags()
Inherited from App\Models\CiModel
Defined in <ROOT>/fourm/Models/CiModel.php:47
⇄⧉public getTag()
$value->getTag()
Inherited from App\Models\CiModel
Defined in <ROOT>/fourm/Models/CiModel.php:61
⇄⧉public getTopMembers()
$value->getTopMembers()
Inherited from App\Models\CiModel
Defined in <ROOT>/fourm/Models/CiModel.php:69
⇄⧉public jsonTag()
$value->jsonTag()
Inherited from App\Models\CiModel
Defined in <ROOT>/fourm/Models/CiModel.php:80
⇄⧉public tagList()
$value->tagList()
Inherited from App\Models\CiModel
Defined in <ROOT>/fourm/Models/CiModel.php:92
Inherited from App\Models\CiModel
Defined in <ROOT>/fourm/Models/CiModel.php:127
⇄⧉public lastAction($table, $expression)
$value->lastAction($table, $expression)
Inherited from App\Models\CiModel
Defined in <ROOT>/fourm/Models/CiModel.php:136
⇄⧉public getPrevious($table, $postId)
$value->getPrevious($table, $postId)
Inherited from App\Models\CiModel
Defined in <ROOT>/fourm/Models/CiModel.php:151
⇄⧉public setTable(string $table): $this Specify the table associated with a model
$value->setTable(string $table)
/**
* Specify the table associated with a model
*
* @param string $table Table
*
* @return $this
*/
Inherited from CodeIgniter\Model
Defined in <ROOT>/social/Model.php:151
⇄⧉public getIdValue($data): array|int|string|null Returns the id value for the data array or object
$value->getIdValue($data)
/**
* Returns the id value for the data array or object
*
* @param array|object $data Data
*
* @return array|int|string|null
*/
Inherited from CodeIgniter\Model
Defined in <ROOT>/social/Model.php:483
⇄⧉public chunk(int $size, Closure $userFunc) Loops over records in batches, allowing you to operate on them. Works with $t...
$value->chunk(int $size, Closure $userFunc)
/**
* Loops over records in batches, allowing you to operate on them.
* Works with $this->builder to get the Compiled select to
* determine the rows to operate on.
* This method works only with dbCalls.
*
* @throws DataException
*/
Inherited from CodeIgniter\Model
Defined in <ROOT>/social/Model.php:504
⇄⧉public countAllResults(bool $reset = true, bool $test = false): mixed Override countAllResults to account for soft deleted accounts.
/**
* Override countAllResults to account for soft deleted accounts.
*
* @return mixed
*/
Inherited from CodeIgniter\Model
Defined in <ROOT>/social/Model.php:538
⇄⧉public builder(?string $table = null): BaseBuilder Provides a shared instance of the Query Builder.
$value->builder(?string $table = null)
/**
* Provides a shared instance of the Query Builder.
*
* @return BaseBuilder
*
* @throws ModelException
*/
Inherited from CodeIgniter\Model
Defined in <ROOT>/social/Model.php:561
⇄⧉public set($key, $value = '', ?bool $escape = null): $this Captures the builder's set() method so that we can validate the data here. Th...
/**
* Captures the builder's set() method so that we can validate the
* data here. This allows it to be used with any of the other
* builder methods and still get validated data, like replace.
*
* @param mixed $key Field name, or an array of field/value pairs
* @param mixed $value Field value, if $key is a single field
* @param bool|null $escape Whether to escape values
*
* @return $this
*/
Inherited from CodeIgniter\Model
Defined in <ROOT>/social/Model.php:608
⇄⧉public insert($data = null, bool $returnID = true): BaseResult|false|int|object|string Inserts data into the database. If an object is provided, it will attempt to ...
/**
* Inserts data into the database. If an object is provided,
* it will attempt to convert it to an array.
*
* @param array|object|null $data
* @param bool $returnID Whether insert ID should be returned or not.
*
* @return BaseResult|false|int|object|string
*
* @throws ReflectionException
*/
Inherited from CodeIgniter\Model
Defined in <ROOT>/social/Model.php:653
⇄⧉public update($id = null, $data = null): bool Updates a single record in the database. If an object is provided, it will at...
$value->update($id = null, $data = null)
/**
* Updates a single record in the database. If an object is provided,
* it will attempt to convert it into an array.
*
* @param array|int|string|null $id
* @param array|object|null $data
*
* @throws ReflectionException
*/
Inherited from CodeIgniter\Model
Defined in <ROOT>/social/Model.php:679
⧉public __get(string $name): mixed Provides/instantiates the builder/db connection and model's table/primary key...
/**
* Provides/instantiates the builder/db connection and model's table/primary key names and return type.
*
* @param string $name Name
*
* @return mixed
*/
Inherited from CodeIgniter\Model
Defined in <ROOT>/social/Model.php:729
⧉public __isset(string $name): bool Checks for the existence of properties across this model, builder, and db con...
/**
* Checks for the existence of properties across this model, builder, and db connection.
*
* @param string $name Name
*/
Inherited from CodeIgniter\Model
Defined in <ROOT>/social/Model.php:747
⧉public __call(string $name, array $params): mixed Provides direct access to method in the builder (if available) and the databa...
/**
* Provides direct access to method in the builder (if available)
* and the database connection.
*
* @return mixed
*/
Inherited from CodeIgniter\Model
Defined in <ROOT>/social/Model.php:762
⇄⧉public find($id = null): array|object|null The resulting row of data, or null. Fetches the row of database
$value->find($id = null)
/**
* Fetches the row of database
*
* @param array|int|string|null $id One primary key or an array of primary keys
*
* @return array|object|null The resulting row of data, or null.
*/
Inherited from CodeIgniter\BaseModel
Defined in <ROOT>/social/BaseModel.php:505
⇄⧉public findColumn(string $columnName): array|null The resulting row of data, or null if no data found. Fetches the column of database
$value->findColumn(string $columnName)
/**
* Fetches the column of database
*
* @param string $columnName Column Name
*
* @return array|null The resulting row of data, or null if no data found.
*
* @throws DataException
*/
Inherited from CodeIgniter\BaseModel
Defined in <ROOT>/social/BaseModel.php:549
⇄⧉public findAll(int $limit0, int $offset0): array Fetches all results, while optionally limiting them.
$value->findAll(int $limit0, int $offset0)
/**
* Fetches all results, while optionally limiting them.
*
* @param int $limit Limit
* @param int $offset Offset
*
* @return array
*/
Inherited from CodeIgniter\BaseModel
Defined in <ROOT>/social/BaseModel.php:568
⇄⧉public first(): array|object|null Returns the first row of the result set.
$value->first()
/**
* Returns the first row of the result set.
*
* @return array|object|null
*/
Inherited from CodeIgniter\BaseModel
Defined in <ROOT>/social/BaseModel.php:608
⇄⧉public save($data): bool A convenience method that will attempt to determine whether the data should b...
$value->save($data)
/**
* A convenience method that will attempt to determine whether the
* data should be inserted or updated. Will work with either
* an array or object. When using with custom class objects,
* you must ensure that the class will provide access to the class
* variables, even if through a magic method.
*
* @param array|object $data Data
*
* @throws ReflectionException
*/
Inherited from CodeIgniter\BaseModel
Defined in <ROOT>/social/BaseModel.php:650
⇄⧉public getInsertID(): int|string Returns last insert ID or 0.
$value->getInsertID()
/**
* Returns last insert ID or 0.
*
* @return int|string
*/
Inherited from CodeIgniter\BaseModel
Defined in <ROOT>/social/BaseModel.php:685
⇄⧉public insertBatch(?array $set = null, ?bool $escape = null, int $batchSize = 100, bool $testing = false): bool|int Number of rows inserted or FALSE on failure Compiles batch insert runs the queries, validating each row prior.
/**
* Compiles batch insert runs the queries, validating each row prior.
*
* @param array|null $set an associative array of insert values
* @param bool|null $escape Whether to escape values
* @param int $batchSize The size of the batch to run
* @param bool $testing True means only number of records is returned, false will execute the query
*
* @return bool|int Number of rows inserted or FALSE on failure
*
* @throws ReflectionException
*/
Inherited from CodeIgniter\BaseModel
Defined in <ROOT>/social/BaseModel.php:785
⇄⧉public updateBatch(?array $set = null, ?string $index = null, int $batchSize = 100, bool $returnSQL = false): mixed Number of rows affected or FALSE on failure Compiles an update and runs the query
/**
* Compiles an update and runs the query
*
* @param array|null $set An associative array of update values
* @param string|null $index The where key
* @param int $batchSize The size of the batch to run
* @param bool $returnSQL True means SQL is returned, false will execute the query
*
* @return mixed Number of rows affected or FALSE on failure
*
* @throws DatabaseException
* @throws ReflectionException
*/
Inherited from CodeIgniter\BaseModel
Defined in <ROOT>/social/BaseModel.php:911
⇄⧉public delete($id = null, bool $purge = false): BaseResult|bool Deletes a single record from the database where $id matches
$value->delete($id = null, bool $purge = false)
/**
* Deletes a single record from the database where $id matches
*
* @param array|int|string|null $id The rows primary key(s)
* @param bool $purge Allows overriding the soft deletes setting.
*
* @return BaseResult|bool
*
* @throws DatabaseException
*/
Inherited from CodeIgniter\BaseModel
Defined in <ROOT>/social/BaseModel.php:965
⇄⧉public purgeDeleted(): mixed Permanently deletes all rows that have been marked as deleted through soft de...
$value->purgeDeleted()
/**
* Permanently deletes all rows that have been marked as deleted
* through soft deletes (deleted = 1)
*
* @return mixed
*/
Inherited from CodeIgniter\BaseModel
Defined in <ROOT>/social/BaseModel.php:1002
⇄⧉public withDeleted(bool $val = true): $this Sets $useSoftDeletes value so that we can temporarily override the soft delet...
$value->withDeleted(bool $val = true)
/**
* Sets $useSoftDeletes value so that we can temporarily override
* the soft deletes settings. Can be used for all find* methods.
*
* @param bool $val Value
*
* @return $this
*/
Inherited from CodeIgniter\BaseModel
Defined in <ROOT>/social/BaseModel.php:1019
⇄⧉public onlyDeleted(): $this Works with the find* methods to return only the rows that have been deleted.
$value->onlyDeleted()
/**
* Works with the find* methods to return only the rows that
* have been deleted.
*
* @return $this
*/
Inherited from CodeIgniter\BaseModel
Defined in <ROOT>/social/BaseModel.php:1032
⇄⧉public replace(?array $data = null, bool $returnSQL = false): mixed Compiles a replace and runs the query
/**
* Compiles a replace and runs the query
*
* @param array|null $data Data
* @param bool $returnSQL Set to true to return Query String
*
* @return mixed
*/
Inherited from CodeIgniter\BaseModel
Defined in <ROOT>/social/BaseModel.php:1048
⇄⧉public errors(bool $forceDB = false): array<string,string> Grabs the last error(s) that occurred. If data was validated, it will first c...
$value->errors(bool $forceDB = false)
/**
* Grabs the last error(s) that occurred. If data was validated,
* it will first check for errors there, otherwise will try to
* grab the last error from the Database connection.
* The return array should be in the following format:
* ['source' => 'message']
*
* @param bool $forceDB Always grab the db error, not validation
*
* @return array<string,string>
*/
Inherited from CodeIgniter\BaseModel
Defined in <ROOT>/social/BaseModel.php:1073
⇄⧉public paginate(?int $perPage = null, string $group = 'default', ?int $page = null, int $segment0): array|null Works with Pager to get the size and offset parameters. Expects a GET variabl...
/**
* Works with Pager to get the size and offset parameters.
* Expects a GET variable (?page=2) that specifies the page of results
* to display.
*
* @param int|null $perPage Items per page
* @param string $group Will be used by the pagination library to identify a unique pagination set.
* @param int|null $page Optional page number (useful when the page number is provided in different way)
* @param int $segment Optional URI segment number (if page number is provided by URI segment)
*
* @return array|null
*/
Inherited from CodeIgniter\BaseModel
Defined in <ROOT>/social/BaseModel.php:1095
⇄⧉public setAllowedFields(array $allowedFields): $this It could be used when you have to change default or override current allowed ...
$value->setAllowedFields(array $allowedFields)
/**
* It could be used when you have to change default or override current allowed fields.
*
* @param array $allowedFields Array with names of fields
*
* @return $this
*/
Inherited from CodeIgniter\BaseModel
Defined in <ROOT>/social/BaseModel.php:1120
⇄⧉public protect(bool $protect = true): $this Sets whether or not we should whitelist data set during updates or inserts ag...
$value->protect(bool $protect = true)
/**
* Sets whether or not we should whitelist data set during
* updates or inserts against $this->availableFields.
*
* @param bool $protect Value
*
* @return $this
*/
Inherited from CodeIgniter\BaseModel
Defined in <ROOT>/social/BaseModel.php:1135
⇄⧉public skipValidation(bool $skip = true): $this Set the value of the skipValidation flag.
$value->skipValidation(bool $skip = true)
/**
* Set the value of the skipValidation flag.
*
* @param bool $skip Value
*
* @return $this
*/
Inherited from CodeIgniter\BaseModel
Defined in <ROOT>/social/BaseModel.php:1258
⇄⧉public setValidationMessages(array $validationMessages): $this Allows to set validation messages. It could be used when you have to change d...
/**
* Allows to set validation messages.
* It could be used when you have to change default or override current validate messages.
*
* @param array $validationMessages Value
*
* @return $this
*/
Inherited from CodeIgniter\BaseModel
Defined in <ROOT>/social/BaseModel.php:1273
⇄⧉public setValidationMessage(string $field, array $fieldMessages): $this Allows to set field wise validation message. It could be used when you have t...
/**
* Allows to set field wise validation message.
* It could be used when you have to change default or override current validate messages.
*
* @param string $field Field Name
* @param array $fieldMessages Validation messages
*
* @return $this
*/
Inherited from CodeIgniter\BaseModel
Defined in <ROOT>/social/BaseModel.php:1289
⇄⧉public setValidationRules(array $validationRules): $this Allows to set validation rules. It could be used when you have to change defa...
/**
* Allows to set validation rules.
* It could be used when you have to change default or override current validate rules.
*
* @param array $validationRules Value
*
* @return $this
*/
Inherited from CodeIgniter\BaseModel
Defined in <ROOT>/social/BaseModel.php:1304
⇄⧉public setValidationRule(string $field, $fieldRules): $this Allows to set field wise validation rules. It could be used when you have to ...
/**
* Allows to set field wise validation rules.
* It could be used when you have to change default or override current validate rules.
*
* @param string $field Field Name
* @param array|string $fieldRules Validation rules
*
* @return $this
*/
Inherited from CodeIgniter\BaseModel
Defined in <ROOT>/social/BaseModel.php:1320
⇄⧉public cleanRules(bool $choice = false): $this Should validation rules be removed before saving? Most handy when doing updates.
$value->cleanRules(bool $choice = false)
/**
* Should validation rules be removed before saving?
* Most handy when doing updates.
*
* @param bool $choice Value
*
* @return $this
*/
Inherited from CodeIgniter\BaseModel
Defined in <ROOT>/social/BaseModel.php:1335
⇄⧉public validate($data): bool Validate the data against the validation rules (or the validation group) spec...
$value->validate($data)
/**
* Validate the data against the validation rules (or the validation group)
* specified in the class property, $validationRules.
*
* @param array|object $data Data
*/
Inherited from CodeIgniter\BaseModel
Defined in <ROOT>/social/BaseModel.php:1348
⇄⧉public getValidationRules(array $options = array()): array Returns the model's defined validation rules so that they can be used elsewhe...
/**
* Returns the model's defined validation rules so that they
* can be used elsewhere, if needed.
*
* @param array $options Options
*/
Inherited from CodeIgniter\BaseModel
Defined in <ROOT>/social/BaseModel.php:1380
⇄⧉public getValidationMessages(): array Returns the model's define validation messages so they can be used elsewhere,...
$value->getValidationMessages()
/**
* Returns the model's define validation messages so they
* can be used elsewhere, if needed.
*/
Inherited from CodeIgniter\BaseModel
Defined in <ROOT>/social/BaseModel.php:1403
⇄⧉public allowCallbacks(bool $val = true): $this Sets $tempAllowCallbacks value so that we can temporarily override the settin...
$value->allowCallbacks(bool $val = true)
/**
* Sets $tempAllowCallbacks value so that we can temporarily override
* the setting. Resets after the next method that uses triggers.
*
* @param bool $val value
*
* @return $this
*/
Inherited from CodeIgniter\BaseModel
Defined in <ROOT>/social/BaseModel.php:1439
⇄⧉public asArray(): $this Sets the return type of the results to be as an associative array.
$value->asArray()
/**
* Sets the return type of the results to be as an associative array.
*
* @return $this
*/
Inherited from CodeIgniter\BaseModel
Defined in <ROOT>/social/BaseModel.php:1491
⇄⧉public asObject(string $class = 'object'): $this Sets the return type to be of the specified type of object. Defaults to a sim...
$value->asObject(string $class = 'object')
/**
* Sets the return type to be of the specified type of object.
* Defaults to a simple object, but can be any class that has
* class vars with the same name as the collection columns,
* or at least allows them to be created.
*
* @param string $class Class Name
*
* @return $this
*/
Inherited from CodeIgniter\BaseModel
Defined in <ROOT>/social/BaseModel.php:1508
⧉protected doFind(bool $singleton, $id = null): array|object|null The resulting row of data, or null. Fetches the row of database from $this->table with a primary key matching $id...
/**
* Fetches the row of database from $this->table with a primary key
* matching $id.
* This method works only with dbCalls.
*
* @param bool $singleton Single or multiple results
* @param array|int|string|null $id One primary key or an array of primary keys
*
* @return array|object|null The resulting row of data, or null.
*/
Inherited from CodeIgniter\Model
Defined in <ROOT>/social/Model.php:168
⧉protected doFindColumn(string $columnName): array|null The resulting row of data, or null if no data found. Fetches the column of database from $this->table. This method works only with...
/**
* Fetches the column of database from $this->table.
* This method works only with dbCalls.
*
* @param string $columnName Column Name
*
* @return array|null The resulting row of data, or null if no data found.
*/
Inherited from CodeIgniter\Model
Defined in <ROOT>/social/Model.php:199
⧉protected doFindAll(int $limit0, int $offset0): array Works with the current Query Builder instance to return all results, while op...
/**
* Works with the current Query Builder instance to return
* all results, while optionally limiting them.
* This method works only with dbCalls.
*
* @param int $limit Limit
* @param int $offset Offset
*
* @return array
*/
Inherited from CodeIgniter\Model
Defined in <ROOT>/social/Model.php:214
⧉protected doFirst(): array|object|null Returns the first row of the result set. Will take any previous Query Builder...
/**
* Returns the first row of the result set. Will take any previous
* Query Builder calls into account when determining the result set.
* This method works only with dbCalls.
*
* @return array|object|null
*/
Inherited from CodeIgniter\Model
Defined in <ROOT>/social/Model.php:234
⧉protected doInsert(array $data): bool Inserts data into the current table. This method works only with dbCalls.
/**
* Inserts data into the current table.
* This method works only with dbCalls.
*
* @param array $data Data
*
* @return bool
*/
Inherited from CodeIgniter\Model
Defined in <ROOT>/social/Model.php:261
⧉protected doInsertBatch(?array $set = null, ?bool $escape = null, int $batchSize = 100, bool $testing = false): bool|int Number of rows inserted or FALSE on failure Compiles batch insert strings and runs the queries, validating each row prior...
/**
* Compiles batch insert strings and runs the queries, validating each row prior.
* This method works only with dbCalls.
*
* @param array|null $set An associative array of insert values
* @param bool|null $escape Whether to escape values
* @param int $batchSize The size of the batch to run
* @param bool $testing True means only number of records is returned, false will execute the query
*
* @return bool|int Number of rows inserted or FALSE on failure
*/
Inherited from CodeIgniter\Model
Defined in <ROOT>/social/Model.php:300
⧉protected doUpdate($id = null, $data = null): bool Updates a single record in $this->table. This method works only with dbCalls.
/**
* Updates a single record in $this->table.
* This method works only with dbCalls.
*
* @param array|int|string|null $id
* @param array|null $data
*/
Inherited from CodeIgniter\Model
Defined in <ROOT>/social/Model.php:322
⧉protected doUpdateBatch(?array $set = null, ?string $index = null, int $batchSize = 100, bool $returnSQL = false): mixed Number of rows affected or FALSE on failure Compiles an update string and runs the query This method works only with dbCa...
/**
* Compiles an update string and runs the query
* This method works only with dbCalls.
*
* @param array|null $set An associative array of update values
* @param string|null $index The where key
* @param int $batchSize The size of the batch to run
* @param bool $returnSQL True means SQL is returned, false will execute the query
*
* @return mixed Number of rows affected or FALSE on failure
*
* @throws DatabaseException
*/
Inherited from CodeIgniter\Model
Defined in <ROOT>/social/Model.php:354
⧉protected doDelete($id = null, bool $purge = false): bool|string Deletes a single record from $this->table where $id matches the table's prima...
/**
* Deletes a single record from $this->table where $id matches
* the table's primaryKey
* This method works only with dbCalls.
*
* @param array|int|string|null $id The rows primary key(s)
* @param bool $purge Allows overriding the soft deletes setting.
*
* @return bool|string
*
* @throws DatabaseException
*/
Inherited from CodeIgniter\Model
Defined in <ROOT>/social/Model.php:371
⧉protected doPurgeDeleted(): bool|string Returns a string if in test mode. Permanently deletes all rows that have been marked as deleted through soft de...
/**
* Permanently deletes all rows that have been marked as deleted
* through soft deletes (deleted = 1)
* This method works only with dbCalls.
*
* @return bool|string Returns a string if in test mode.
*/
Inherited from CodeIgniter\Model
Defined in <ROOT>/social/Model.php:411
⧉protected doOnlyDeleted() Works with the find* methods to return only the rows that have been deleted. ...
/**
* Works with the find* methods to return only the rows that
* have been deleted.
* This method works only with dbCalls.
*/
Inherited from CodeIgniter\Model
Defined in <ROOT>/social/Model.php:423
⧉protected doReplace(?array $data = null, bool $returnSQL = false): mixed Compiles a replace into string and runs the query This method works only with...
/**
* Compiles a replace into string and runs the query
* This method works only with dbCalls.
*
* @param array|null $data Data
* @param bool $returnSQL Set to true to return Query String
*
* @return mixed
*/
Inherited from CodeIgniter\Model
Defined in <ROOT>/social/Model.php:437
⧉protected doErrors(): array<string,string> Grabs the last error(s) that occurred from the Database connection. The retur...
/**
* Grabs the last error(s) that occurred from the Database connection.
* The return array should be in the following format:
* ['source' => 'message']
* This method works only with dbCalls.
*
* @return array<string,string>
*/
Inherited from CodeIgniter\Model
Defined in <ROOT>/social/Model.php:450
⧉protected idValue($data): array|int|string|null Returns the id value for the data array or object
/**
* Returns the id value for the data array or object
*
* @param array|object $data Data
*
* @return array|int|string|null
*
* @deprecated Use getIdValue() instead. Will be removed in version 5.0.
*/
Inherited from CodeIgniter\Model
Defined in <ROOT>/social/Model.php:471
⧉protected shouldUpdate($data): bool This method is called on save to determine if entry have to be updated If thi...
/**
* This method is called on save to determine if entry have to be updated
* If this method return false insert operation will be executed
*
* @param array|object $data Data
*/
Inherited from CodeIgniter\Model
Defined in <ROOT>/social/Model.php:627
⧉protected objectToRawArray($data, bool $onlyChanged = true, bool $recursive = false): ?array Takes a class an returns an array of it's public and protected properties as ...
/**
* Takes a class an returns an array of it's public and protected
* properties as an array with raw values.
*
* @param object|string $data
* @param bool $recursive If true, inner entities will be casted as array as well
*
* @return array|null Array
*
* @throws ReflectionException
*/
Inherited from CodeIgniter\Model
Defined in <ROOT>/social/Model.php:707
⧉protected initialize() Initializes the instance with any additional steps. Optionally implemented by...
/**
* Initializes the instance with any additional steps.
* Optionally implemented by child classes.
*/
Inherited from CodeIgniter\BaseModel
Defined in <ROOT>/social/BaseModel.php:309
⧉protected doProtectFields(array $data): array Ensures that only the fields that are allowed to be updated are in the data a...
/**
* Ensures that only the fields that are allowed to be updated
* are in the data array.
*
* Used by insert() and update() to protect against mass assignment
* vulnerabilities.
*
* @param array $data Data
*
* @throws DataException
*/
Inherited from CodeIgniter\BaseModel
Defined in <ROOT>/social/BaseModel.php:1153
⧉protected setDate(?int $userData = null): mixed Sets the date or current date if null value is passed
/**
* Sets the date or current date if null value is passed
*
* @param int|null $userData An optional PHP timestamp to be converted.
*
* @return mixed
*
* @throws ModelException
*/
Inherited from CodeIgniter\BaseModel
Defined in <ROOT>/social/BaseModel.php:1181
⧉protected intToDate(int $value): int|string A utility function to allow child models to use the type of date/time format ...
/**
* A utility function to allow child models to use the type of
* date/time format that they prefer. This is primarily used for
* setting created_at, updated_at and deleted_at values, but can be
* used by inheriting classes.
*
* The available time formats are:
* - 'int' - Stores the date as an integer timestamp
* - 'datetime' - Stores the data in the SQL datetime format
* - 'date' - Stores the date (only) in the SQL date format.
*
* @param int $value value
*
* @return int|string
*
* @throws ModelException
*/
Inherited from CodeIgniter\BaseModel
Defined in <ROOT>/social/BaseModel.php:1205
⧉protected timeToDate(CodeIgniter\I18n\Time $value): int|string Converts Time value to string using $this->dateFormat
/**
* Converts Time value to string using $this->dateFormat
*
* The available time formats are:
* - 'int' - Stores the date as an integer timestamp
* - 'datetime' - Stores the data in the SQL datetime format
* - 'date' - Stores the date (only) in the SQL date format.
*
* @param Time $value value
*
* @return int|string
*/
Inherited from CodeIgniter\BaseModel
Defined in <ROOT>/social/BaseModel.php:1234
⧉protected cleanValidationRules(array $rules, ?array $data = null): array Removes any rules that apply to fields that have not been set currently so th...
/**
* Removes any rules that apply to fields that have not been set
* currently so that rules don't block updating when only updating
* a partial row.
*
* @param array $rules Array containing field name and rule
* @param array|null $data Data
*/
Inherited from CodeIgniter\BaseModel
Defined in <ROOT>/social/BaseModel.php:1416
⧉protected trigger(string $event, array $eventData): mixed A simple event trigger for Model Events that allows additional data manipulat...
/**
* A simple event trigger for Model Events that allows additional
* data manipulation within the model. Specifically intended for
* usage by child models this can be used to format data,
* save/load related classes, etc.
*
* It is the responsibility of the callback methods to return
* the data itself.
*
* Each $eventData array MUST have a 'data' key with the relevant
* data for callback methods (like an array of key/value pairs to insert
* or update, an array of results, etc)
*
* If callbacks are not allowed then returns $eventData immediately.
*
* @param string $event Event
* @param array $eventData Event Data
*
* @return mixed
*
* @throws DataException
*/
Inherited from CodeIgniter\BaseModel
Defined in <ROOT>/social/BaseModel.php:1468
⧉protected objectToArray($data, bool $onlyChanged = true, bool $recursive = false): array Takes a class and returns an array of it's public and protected properties as...
/**
* Takes a class and returns an array of it's public and protected
* properties as an array suitable for use in creates and updates.
* This method uses objectToRawArray() internally and does conversion
* to string on all Time instances
*
* @param object|string $data Data
* @param bool $onlyChanged Only Changed Property
* @param bool $recursive If true, inner entities will be casted as array as well
*
* @return array Array
*
* @throws ReflectionException
*/
Inherited from CodeIgniter\BaseModel
Defined in <ROOT>/social/BaseModel.php:1529
⧉protected transformDataToArray($data, string $type): array Transform data to array
/**
* Transform data to array
*
* @param array|object|null $data Data
* @param string $type Type of data (insert|update)
*
* @throws DataException
* @throws InvalidArgumentException
* @throws ReflectionException
*/
Inherited from CodeIgniter\BaseModel
Defined in <ROOT>/social/BaseModel.php:1591
⧉protected fillPlaceholders(array $rules, array $data): array Replace any placeholders within the rules with the values that match the 'key...
/**
* Replace any placeholders within the rules with the values that
* match the 'key' of any properties being set. For example, if
* we had the following $data array:
*
* [ 'id' => 13 ]
*
* and the following rule:
*
* 'required|is_unique[users,email,id,{id}]'
*
* The value of {id} would be replaced with the actual id in the form data:
*
* 'required|is_unique[users,email,id,13]'
*
* @param array $rules Validation rules
* @param array $data Data
*
* @codeCoverageIgnore
*
* @deprecated use fillPlaceholders($rules, $data) from Validation instead
*/
Inherited from CodeIgniter\BaseModel
Defined in <ROOT>/social/BaseModel.php:1696
⇄⧉public static classToArray($data, $primaryKey = null, string $dateFormat = 'datetime', bool $onlyChanged = true): array Takes a class an returns an array of it's public and protected properties as ...
/**
* Takes a class an returns an array of it's public and protected
* properties as an array suitable for use in creates and updates.
*
* @param object|string $data
* @param string|null $primaryKey
*
* @throws ReflectionException
*
* @codeCoverageIgnore
*
* @deprecated since 4.1
*/
Inherited from CodeIgniter\Model
Defined in <ROOT>/social/Model.php:807
In the sector of computer technological know-how, data systems play a critical function in organizing and storing statistics correctly. Two of the maximum usually used
MetaImage
https://i.postimg.cc/5txb50n2/1713414291257.png
RelatedPost
⧉⌕$value array (5)
⇄what-is-the-difference-between-canine-flu-and-kennel-cough => string (59) "What is the difference between canine flu and kennel cough?"
⇄what-is-the-difference-between-hawaiian-mac-salad-and-regular-mac-salad => string (72) "What is the difference between Hawaiian mac salad and regular Mac salad?"
⇄⧉Answer => UTF-8 string (7753) "<p data-mce-style="text-align: justify;">Does it seem like typical eating &q...
$value->resultArray[0]['Answer']
<p data-mce-style="text-align: justify;">Does it seem like typical eating "rules" vacate the premises when you are on an excursion? Out of nowhere, it becomes adequate to have frozen yogurt for supper, and bite on Skittles before breakfast. The choices that are given at service stations, corner shops, and cheap food chains en route leave drivers feeling like it's alright to eat undesirable while out and about, on the grounds that what different choices are there?</p>
<p data-mce-style="text-align: justify;">In the event that you are fortunate, you will track down a wanderer banana or two to get alongside your pack of potato chips so you feel somewhat less liable, however you are just truly tricking yourself. For the most part, you are left to look over a large number of splendidly hued confections and treats that will leave your body feeling totally destroyed of any supplements.</p>
<p data-mce-style="text-align: justify;"><img alt="Packing Healthy Travel Food " src="https://fitandflex.in/cdn/shop/articles/25_Food_For_Travelling-_Ultimate_Guide_To_Packing_Healthy_Travel_Food_1000x1000.png?v=1659514458" style="height: 447px; width: 700px;" /></p>
<p data-mce-style="text-align: justify;">What's more, this couldn't come at a more terrible time. Your body is as of now running on low energy since all you have been doing is sitting in similar spot for a really long time, perhaps days. Toss some sweet food on top, and you will be passing up a ton of excursion undertakings. So how would you hold this back from occurring? How would you hold back from spiraling down the dim deep, dark hole of undesirable street food?</p>
<h3 data-mce-style="text-align: justify;"><strong>Best Foods to Eat While Traveling</strong></h3>
<p><strong>1. Steamed vegetables</strong>. You can get ready steamed vegetables before your experience or get them during your movements whenever the situation allows. Pick vegetables, similar to celery, cherry tomato, cauliflower, whitened broccoli and carrots, since they are significant wellsprings of numerous supplements. It's great that most general stores currently have bundled, pre-cut foods grown from the ground that you can purchase and take with you if necessary.</p>
<p>2. A staple nourishment for some societies all over the planet, earthy colored rice is a decent wellspring of complex carbs and dietary fiber to fuel your body with glucose. Whether you're feasting out or cooking for yourself in a convenience that incorporates a kitchen, don't miss the medical advantages of earthy colored rice.</p>
<p data-mce-style="text-align: justify;">3. Persimmon is a flexible natural product loaded with gainful plant compounds, fiber, minerals and nutrients. They are very really great for you as they help in the production of red platelets, diminishing your gamble of height or movement ailment.</p>
<p data-mce-style="text-align: justify;">4. A custom made egg salad or sandwich is a light and delectable food that can expand your protein while keeping unfortunate fats under control. All the more with the goal that an egg contains elevated degrees of lutein, B nutrients, choline and lutein.</p>
<p data-mce-style="text-align: justify;"><img alt="Ultimate Guide to Packing Travel Food" src="https://www.yummytoddlerfood.com/wp-content/uploads/2023/04/toddler-travel-food-in-containers.jpg" style="height: 467px; width: 700px;" /></p>
<p data-mce-style="text-align: justify;">5. Tofu makes an extraordinary calming diet. It is a decent wellspring of complete protein, and that implies it has an even amino corrosive profile. It likewise contains potassium, manganese, copper, iron and fiber. Discuss an across the board travel food!</p>
<p data-mce-style="text-align: justify;">6. Yogurt. As you are attempting a ton of unfamiliar or new food sources, heartburn isn't far away. For this reason probiotic yogurt is one of the most amazing food varieties to eat while going as it helps battle a miserable stomach. Yogurts likewise contain great microorganisms that help a sound stomach related framework.</p>
<p data-mce-style="text-align: justify;">7. Versatile and nutritious, nuts make solid in and out snacks for movement. No big surprise they are a movement staple. You can essentially pack nuts in a reusable stockpiling holder so you can nibble all through your excursion.</p>
<p data-mce-style="text-align: justify;">8. Apples are a rich wellspring of polyphenols - micronutrients that work with other dietary lessening specialists to safeguard the body's tissues against pathologies and oxidative pressure.</p>
<p data-mce-style="text-align: justify;"><strong>Related Post</strong>: <a data-mce-href="https://www.paleo-meals.com/travel/best-travel-snacks-for-your-next-trip" href="https://www.paleo-meals.com/travel/best-travel-snacks-for-your-next-trip" target="_blank" title="Best Travel Snacks for your next trip">Best Travel Snacks For Your Next Trip</a></p>
<p data-mce-style="text-align: justify;">9. Dull cherries are the ideal mid-flight nibble for those experiencing difficulty nodding off on planes or during movement. That is on the grounds that they are a superb wellspring of melatonin, which assists facilitate your sensory system and help you with nodding off.</p>
<p data-mce-style="text-align: justify;"><img alt="Healthy Eating While Traveling • Kansas City Barbell" src="https://kcbarbell.com/wp-content/uploads/2022/03/TravelFood.jpeg" style="height: 472px; width: 700px;" /></p>
<p data-mce-style="text-align: justify;">10. Fish contains elevated degrees of omega-3 unsaturated fats. It might assist with lessening the degree of LDL cholesterol and omega-6 unsaturated fats that can amass in the supply routes. Fish likewise contains a lot of L-ascorbic acid, manganese and zinc - all of which can assist with supporting your resistant framework as you travel.</p>
<p data-mce-style="text-align: justify;">11. Beetroots, frequently alluded to as beets, are a flexible sort of vegetable. They brag a decent wholesome profile, such as being low in calories however high in minerals and important nutrients that your body needs to remain sound. On the off chance that you've never attempted a beet salad, you don't have any idea where you're going wrong.</p>
<p data-mce-style="text-align: justify;">12. A quality food list for movement wouldn't be finished without remembering bananas for the rundown. Bananas are an extraordinary wellspring of energy and are likewise a muscle relaxant. They are wealthy in magnesium and potassium as well as assist with supporting the development of melatonin in the body. You can begin your day with a banana, have it as a noontime nibble, or eat it before bed to assist you with dozing.</p>
<p data-mce-style="text-align: justify;">Obviously, remember to remain hydrated. I'm certain you've heard it previously, yet to underline its significance: legitimate hydration accompanies a lot of medical advantages so you can battle the adverse consequences of movement (fly slack, constrained socialization, interference of schedules, absence of rest, bothers, loss of natural environmental factors, different time region, and so forth.). Continuously pick water over soft drinks or sweet natural product drinks.</p>
<p data-mce-style="text-align: justify;">Alongside great nourishment, you can likewise be persistent about your exercises. You might need to play out a couple of fundamental exercise moves while in little spaces utilizing a convenient suspension coach. In any event, doing some stretches following a lot of time experience can assist you with remaining in shape and fit while voyaging.</p>
⇄⧉1 => array (14)
$value->resultArray[1]
⇄Question => string (59) "Which One Is The Best Night Clubs In Dubai With Free Entry?"
⇄⧉Answer => UTF-8 string (3668) "<p>Dubai, the gem of the Unified Bedouin Emirates, is famous for its luxurio...
$value->resultArray[1]['Answer']
<p>Dubai, the gem of the Unified Bedouin Emirates, is famous for its luxurious way of life, dazzling design, and a flourishing nightlife scene that has caught the world's consideration. With regards to nightlife, Dubai offers a plenty of choices, however one club that stands apart from the rest is Ora Club. What separates Ora Club from the opposition? It's the ideal mix of extravagance, amusement, and reasonableness. In this blog entry, we'll investigate why Ora Club is viewed as the greatest club in Dubai, and the best part is, it offers free section.</p>
<p><img alt="Nightclub Age In Texas (18 Or 21+) ⭐" src="https://texasview.org/wp-content/uploads/2022/09/Friends-drinking-cocktails-together-at-nightclub..webp" style="height: 525px; width: 700px;" /></p>
<h3>THE Vibe</h3>
<p>Ora Club is an engineering magnum opus that radiates class and richness. The second you step through its entryways, you're welcomed by a pamper inside with smooth and current plan, cutting edge lighting, and a dazzling sound framework that sets the ideal state of mind for an evening of energy and festivity. The club's feel is a demonstration of the elevated expectations Dubai is known for, and it gives a definitive party insight.</p>
<h3>MUSIC AND Amusement</h3>
<p>A club is just on par with what its music, and Ora Club doesn't frustrate. They have probably the best DJs and live entertainers from around the world, playing a blend of music classes that take special care of a different group. Whether you're into electronic dance beats, hip-bounce, or top 40 hits, you'll find something that gets you going on the dance floor. The diversion at Ora Club is first class, making each visit an essential encounter.</p>
<h3>A Scope OF Beverages</h3>
<p>Dubai is known for its extravagance, and Ora Club stays aware of that standing by offering a wide assortment of premium beverages. From signature mixed drinks to a broad determination of spirits, their bar is completely supplied to satisfy the needs of even the most insightful supporters. The exceptionally gifted barkeeps can create your #1 mixtures or suggest something new that suits your sense of taste.</p>
<h3>FREE Passage</h3>
<p>Maybe the most alluring part of Ora Club is the way that it offers free section. In a city where lavishness frequently comes at an exorbitant cost, Ora Club thinks outside the box by inviting everybody to encounter its astonishing air without an entrance fee. This implies you can partake in an evening of unmatched diversion without burning through every last cent. While certain clubs in Dubai charge extreme expenses, Ora Club's free section strategy guarantees that the club is open to a wide crowd.</p>
<h3>THE Blend OF Individuals</h3>
<p>Dubai is a blend of societies, and Ora Club mirrors this variety. It draws in a blended horde of local people, travelers, and expats, making a dynamic and comprehensive climate. Whether you're hoping to make new companions or essentially partake in the variety of the city, Ora Club gives the ideal setting.</p>
<p>In a city known for its loftiness, Ora Club stands apart as a genuine diamond in Dubai's nightlife scene. With its staggering atmosphere, a-list amusement, different group, and free passage, it's no big surprise that Ora Club is in many cases considered the greatest dance club in Dubai. In this way, on the off chance that you're searching for an evening of tomfoolery, fervor, and extravagance without the heavy sticker price, Ora Club is the spot to be. Try not to pass up this remarkable experience during your visit in Dubai.</p>
⇄⧉2 => array (14)
$value->resultArray[2]
⇄Question => string (42) "How does the Double Moon phenomenon occur?"
⇄⧉Answer => string (6349) "<p>The <strong>double moon phenomenon</strong> is a captivating ce...
$value->resultArray[2]['Answer']
<p>The <strong>double moon phenomenon</strong> is a captivating celestial event that captivates stargazers and dreamers alike, offering beauty and mystery in its meaning.</p>
<p><img src="https://i.postimg.cc/x1hBgdyq/download-2.jpg" /></p>
<h2>What is the <strong>Double Moon Phenomenon</strong>?</h2>
<p>The <strong>double moon phenomenon</strong> refers to the interesting visual experience of seeing two moons in the sky. While it may seem like something from a fiction narrative, this phenomena may occur under particular circumstances. It may be connected to optical illusions, atmospheric circumstances, or unusual moon occurrences.</p>
<h2>The Magic of the <strong>Double Crescent Moon</strong></h2>
<p>One of the most appealing characteristics of the <strong>double moon phenomenon</strong> is the <strong>double crescent moon</strong>. This happens when the moon is partly lit, giving a spectacular visual impression. Imagine stepping outdoors on a clear night, glancing up, and seeing not just one, but two crescent forms shimmering gently against the black sky. It’s a sight that makes you feel linked to the cosmos!</p>
<h3>The <strong>Double Decked Moon Pie</strong></h3>
<p>While the <strong>double moon phenomenon</strong> is a mesmerizing celestial occurrence, it also reminds me of something sweet—like a "<strong>double decker moon pie</strong>"! These exquisite delights, with their layers of marshmallow and chocolate, are called for their lovely double structure. Just like the moons, they provide delight and amazement to people who appreciate them.</p>
<h2>The <strong>Double Moon Meaning</strong></h2>
<p>When people speak about the "<strong>double moon meaning</strong>", they frequently allude to the significance of witnessing two moons. Many civilizations consider it as a symbol of balance or dualism. It may indicate the link between two worlds or areas of life, reminding us that there’s frequently more than meets the eye.</p>
<p><strong>Related: <a href="https://www.yourquorum.com/question/what-should-we-know-about-the-upcoming-double-moon-phenomenon">What should we know about the upcoming Double Moon Phenomenon?</a></strong></p>
<h3>Experiencing the <strong>Double Moon on February 8, 2024</strong></h3>
<p>On February 8, 2024, the <strong>double moon phenomenon</strong> will be observed, offering an opportunity to observe it with friends and family. The term <strong>double moons over my hammy</strong> is a lighthearted allusion to the occurrence.</p>
<h2>Fun Facts About Moons and Betta Fish</h2>
<p>Did you know that the word “double moon” may also exist in the world of pets? The <strong>half moon double tail betta</strong> is a gorgeous fish recognized for its distinctive tail form that resembles a half moon. It’s interesting how nature finds ways to produce beauty, whether in the sky or in our tanks.</p>
<h3>The Science Behind the <strong>Double Moon Phenomenon</strong></h3>
<p>So, how does this <strong>double moon phenomena</strong> truly happen? Here’s a simple explanation: the atmosphere may occasionally behave like a big lens. When light from the moon travels through this lens, it may create an appearance of several moons. It’s like when you look at a pond, and you see reflections bouncing about. It’s all about light and angles!</p>
<h2>How to Prepare for Viewing the <strong>Double Moon</strong></h2>
<p>If you’re thrilled about the getting closer double moon phenomenon, here are a few strategies to enhance your viewing experience:</p>
<h3>1. Find a Dark Spot</h3>
<p>Look for a place away from city lights. The darker the area, the better your view will be.</p>
<h3>2. Check the Weather</h3>
<p>Clear skies are crucial for seeing the moon. Be sure to check the weather forecast leading up to <strong>February 8, 2024</strong>.</p>
<h3>3. Bring a Friend</h3>
<p>Stargazing is more fun with friends! Plan a little gathering with snacks—maybe even some <strong>moon pie double decker</strong> treats!</p>
<h3>4. Use a Telescope</h3>
<p>A telescope enhances the viewing experience by providing a closer look at the moon, allowing for clearer observation of its craters and features.</p>
<p><strong>Read Also : <a href="https://www.yourquorum.com/question/what-is-the-mystery-of-the-moon-39-s-two-faces-could-soon-be-solved">What is the mystery of the Moon's two faces could soon be solved?</a></strong></p>
<h2>Connecting with Others Over the <strong>Double Moon Phenomenon</strong></h2>
<p>Stargazing fosters social connections and can spark interesting conversations about the <strong>double moon phenomenon</strong>. Share your experiences and experiences with others.</p>
<h3>The Role of Social Media</h3>
<p>Social media simplifies sharing experiences, inspiring others to appreciate the night sky by sharing pictures of the <strong>double crescent moon</strong> or favorite <strong>double decker moon pies</strong>.</p>
<h2>Key Takeaways</h2>
<ul>
<li>The <strong>double moon phenomenon</strong> is a stunning visual event that can occur due to various atmospheric conditions.</li>
<li>The <strong>double crescent moon</strong> and the idea of <strong>double moons over my hammy</strong> symbolize beauty and duality in nature.</li>
<li>You can experience this phenomenon on <strong>February 8, 2024</strong>, so prepare to enjoy the night sky!</li>
<li>Exploring themes like the <strong>double decker moon pie</strong> or <strong>half moon double tail betta</strong> enriches our understanding of the world around us.</li>
</ul>
<h2>Final Thoughts on the <strong>Double Moon Phenomenon</strong></h2>
<p>The <strong>double moon phenomenon</strong> highlights the vastness and beauty of our universe. It's a magical experience, whether enjoying a sweet double decker moon pie or spending time with friends under the stars. As we explore the cosmos, let's keep our eyes on the sky and anticipate the universe's future.</p>
⇄⧉3 => array (14)
$value->resultArray[3]
⇄Question => string (69) "Can AI be truly creative, or just a variation of what already exists?"
⇄⧉Answer => string (3521) "<p>In the last few years artificial intelligence (AI) has gone very far, and...
$value->resultArray[3]['Answer']
<p>In the last few years artificial intelligence (AI) has gone very far, and one of the most intriguing questions is, whether it can truly be creative. While AI can generate impressive content, such as art, music, and even entire scripts, the question remains: So is it truly creative or just a different (what already exists)?</p>
<p><img alt="Can AI Be Truly Creative, Or Just A Variation Of What Already Exists?" src="https://storage.googleapis.com/a1aa/image/d02a7877-7641-41bb-94a1-3d2b1f8e27ab.jpeg" style="height: 525px; width: 700px;" /></p>
<p><strong>What is creativity, anyway?</strong></p>
<p>So, let’s first define what creativity really means before we try to answer this question. Creativity means producing new and original ideas, which is usually brought about by joining two separate ideas in a new way. It’s the motor launching innovation, art and progress.</p>
<p><strong>AI's creative capabilities</strong></p>
<p>With AI, you have tons of data, AI can process all that data, recognise patterns and create content based on that data. This means that AI powered tools can create amazing, beautiful artwork, can compose music, maybe even write the whole script. Yet these constructions often sited upon fixed forms.</p>
<p><strong>The limitations of AI creativity</strong></p>
<p>AI still can generate excellent content but is limited to the programming and data available. There is no human experience, no human intuition in AI. It can’t really understand the context, subtleties and nuances of human creativity.</p>
<p>Examples of AI creativity</p>
<ul>
<li><strong>Art:</strong> A stunning AI ‘Next Rembrandt’ type painting is a perfect example of AI’s creative power. It's still based on the styles existing now, but new.</li>
<li><strong>Music</strong>: An area of generative AI is music composition tools, which might sound beautiful, but the music that comes out is typically based on existing genres or patterns.</li>
<li><strong>Writing</strong>: AI powered writing tools can write an entire script but fail to get the nuance and richness of human writing.</li>
</ul>
<p><strong>The future of AI creativity</strong></p>
<p>The future of AI creativity AI is not yet creative, but it is getting close. Developing more sophisticated AI models which can learn from human creativity and create more original content is what interested researchers.</p>
<p><strong>Related: <a href="https://www.yourquorum.com/question/how-can-5-powerful-ai-prompts-help-you-generate-ideas-fast">How can 5 Powerful AI Prompts Help You Generate Ideas Fast?</a></strong></p>
<p><strong>Actionable steps</strong></p>
<ul>
<li><strong>Experiment with AI-powered tools:</strong> Go ahead and use tools powered by AI (art, music, writing), and try it out.</li>
<li><strong>Learn from human creativity:</strong> Learn how to study human creativity, art, and innovation and why it’s important.</li>
<li><strong>Collaborate with humans:</strong> Combine AI’s capabilities with the human ability to combine AI’s capabilities with human creativity and intuition and work with humans.</li>
</ul>
<p><strong>Conclusion</strong></p>
<p>Albeit not yet truly creative, it’s moving in the right direction. If we understand what it can’t do, and what it can do, then we can (eventually) create more advanced AI models that can learn from human creativity and create more original content.</p>
⇄⧉4 => array (14)
$value->resultArray[4]
⇄Question => string (71) "Where Can I Find Oscar Award Winning Everything Everywhere All at Once?"
⇄⧉Answer => string (4520) "<p><img alt="Everything Everywhere All at Once (2022) - IMDb" src="https://m...
$value->resultArray[4]['Answer']
<p><img alt="Everything Everywhere All at Once (2022) - IMDb" src="https://m.media-amazon.com/images/M/MV5BOGYxYTRmNDgtNmZmOC00MTMyLWFmMTgtMjJmMmZmZjM0N2NhXkEyXkFqcGdeQWplZmZscA@@._V1_.jpg" style="height: 394px; width: 700px;" /></p>
<p><strong>Everything, Everywhere, All At Once</strong> dominated the Oscars on Sunday night, winning seven awards, including Best Picture, Best Actress, Best Director, Best Editing, Best Supporting Actor, Best Actress in a Supporting Role and Best Original Screenplay.<br />
<br />
"Everything Everywhere" had 11 nominations and entered the night as a heavy favorite.<br />
<br />
The film, a touchstone of Asian representation in American cinema, received acting, directing and best picture awards from various groups throughout the awards season.<br />
<br />
Directors Daniel Kwan and Daniel Scheinert won the director's award. Michelle Yeoh won Best Actress, becoming the first Asian star to win the award. Kwan and Scheinert won Best Original Screenplay.<br />
<br />
Everything Everywhere All at Once was not nominated for Best Actor, a category which for the first time since 1935 includes five actors who had never been nominated before. Brendan Fraser won for The Whale.<br />
<br />
Ke Huy Quan won Best Supporting Actor for his role in Everywhere, and Jamie Lee Curtis, a movie icon since the 1978 horror classic Halloween, picked up a surprise win.<br />
<br />
This year's ceremony saw four Asian actors compete in multiple acting categories for the first time.<br />
<br />
Yeoh, 60, is the first woman of Asian identity to be nominated for Best Actress. This distinction was made because Merle Oberon, who was of mixed British and South Asian descent, was first nominated in 1935 for her work in the film The Dark Angel, but her heritage hid fear of discrimination. in Hollywood at the time.<br />
<br />
Ana De Armas was the first Cuban actress to be nominated for Best Actress for her role as Marilyn Monroe in the Netflix movie <strong>Blonde</strong>.</p>
<p> </p>
<p>Angela Bassett also got another scoop at the ceremony, becoming the first actress to receive a nomination for a role in a Marvel movie. She was nominated for Best Supporting Actress for her portrayal of Queen Ramonda in Black Panther: Wakanda Forever. The film won for costume design.<br />
<br />
"All Quiet on the Western Front" won four at the start, mostly in technical categories.<br />
<br />
This year's ceremony drew more attention after Will Smith punched Chris Rock during last year's show. Host Jimmy Kimmel talked about it at every opportunity on Sunday night.</p>
<p><strong>Here is the full list of winners:</strong></p>
<p> </p>
<p>Best Picture: “Everything Everywhere All at Once”</p>
<p>Best Actress: Michelle Yeoh, “Everything Everywhere All at Once”</p>
<p>Best Actor: Brendan Fraser, “The Whale”</p>
<p>Best Director: Daniel Kwan, Daniel Scheinert, “Everything Everywhere All at Once”</p>
<p>Best Original Song: “Naatu Naatu,” “RRR”</p>
<p>Best Documentary Feature: “Navalny”</p>
<p>Best Adapted Screenplay: “Women Talking”</p>
<p>Best Original Screenplay: “Everything Everywhere All at Once”</p>
<p>Best Costume Design: “Black Panther: Wakanda Forever”</p>
<p>Best International Feature: “All Quiet on the Western Front”</p>
<p>Best Supporting Actor: Ke Huy Quan, “Everything Everywhere All at Once”</p>
<p>Best Animated Feature: “Guillermo Del Toro’s Pinocchio”</p>
<p>Best Visual Effects: “Avatar: The Way of Water”</p>
<p>Best Cinematography: “All Quiet on the Western Front”</p>
<p>Best Supporting Actress: Jamie Lee Curtis, “Everything Everywhere All at Once”</p>
<p>Best Film Editing: “Everything Everywhere All at Once”</p>
<p>Best Score: “All Quiet on the Western Front”</p>
<p>Best Sound: “Top Gun: Maverick”</p>
<p>Best Production Design: “All Quiet on the Western Front”</p>
<p>Best Makeup and Hairstyling: “The Whale”</p>
<p>Best: Documentary (Short Subject): “The Elephant Whisperers”</p>
<p>Best Short (Animated): “The Boy, the Mole, the Fox and the Horse”</p>
<p>Best Short Film (Live Action): “An Irish Goodbye”</p>
⇄⧉public getFieldCount(): int Gets the number of fields in the result set.
$value->getFieldCount()
/**
* Gets the number of fields in the result set.
*/
Defined in <ROOT>/social/Database/MySQLi/Result.php:26
⇄⧉public getFieldNames(): array Generates an array of column names in the result set.
$value->getFieldNames()
/**
* Generates an array of column names in the result set.
*/
Defined in <ROOT>/social/Database/MySQLi/Result.php:34
⇄⧉public getFieldData(): array Generates an array of objects representing field meta-data.
$value->getFieldData()
/**
* Generates an array of objects representing field meta-data.
*/
Defined in <ROOT>/social/Database/MySQLi/Result.php:49
⇄⧉public freeResult() Frees the current result.
$value->freeResult()
/**
* Frees the current result.
*/
Defined in <ROOT>/social/Database/MySQLi/Result.php:103
⇄⧉public dataSeek(int $n0): mixed Moves the internal pointer to the desired offset. This is called internally b...
$value->dataSeek(int $n0)
/**
* Moves the internal pointer to the desired offset. This is called
* internally before fetching results to make sure the result set
* starts at zero.
*
* @return mixed
*/
Defined in <ROOT>/social/Database/MySQLi/Result.php:118
⇄⧉public getNumRows(): int Returns the number of rows in the resultID (i.e., mysqli_result object)
$value->getNumRows()
/**
* Returns the number of rows in the resultID (i.e., mysqli_result object)
*/
Defined in <ROOT>/social/Database/MySQLi/Result.php:154
new \CodeIgniter\Database\MySQLi\Result(&$connID, &$resultID)
/**
* Constructor
*
* @param object|resource $connID
* @param object|resource $resultID
*/
Inherited from CodeIgniter\Database\BaseResult
Defined in <ROOT>/social/Database/BaseResult.php:83
⇄⧉public getResult(string $type = 'object'): array Retrieve the results of the query. Typically an array of individual data rows...
$value->getResult(string $type = 'object')
/**
* Retrieve the results of the query. Typically an array of
* individual data rows, which can be either an 'array', an
* 'object', or a custom class name.
*
* @param string $type The row type. Either 'array', 'object', or a class name to use
*/
Inherited from CodeIgniter\Database\BaseResult
Defined in <ROOT>/social/Database/BaseResult.php:96
⇄⧉public getCustomResultObject(string $className): mixed Returns the results as an array of custom objects.
$value->getCustomResultObject(string $className)
/**
* Returns the results as an array of custom objects.
*
* @return mixed
*/
Inherited from CodeIgniter\Database\BaseResult
Defined in <ROOT>/social/Database/BaseResult.php:114
⇄⧉public getResultArray(): array Returns the results as an array of arrays.
$value->getResultArray()
/**
* Returns the results as an array of arrays.
*
* If no results, an empty array is returned.
*/
Inherited from CodeIgniter\Database\BaseResult
Defined in <ROOT>/social/Database/BaseResult.php:165
⇄⧉public getResultObject(): array Returns the results as an array of objects.
$value->getResultObject()
/**
* Returns the results as an array of objects.
*
* If no results, an empty array is returned.
*/
Inherited from CodeIgniter\Database\BaseResult
Defined in <ROOT>/social/Database/BaseResult.php:202
⇄⧉public getRow($n0, string $type = 'object'): mixed Wrapper object to return a row as either an array, an object, or a custom class.
$value->getRow($n0, string $type = 'object')
/**
* Wrapper object to return a row as either an array, an object, or
* a custom class.
*
* If row doesn't exist, returns null.
*
* @param mixed $n The index of the results to return
* @param string $type The type of result object. 'array', 'object' or class name.
*
* @return mixed
*/
Inherited from CodeIgniter\Database\BaseResult
Defined in <ROOT>/social/Database/BaseResult.php:249
⇄⧉public getCustomRowObject(int $n, string $className): mixed Returns a row as a custom class instance.
/**
* Returns a row as a custom class instance.
*
* If row doesn't exists, returns null.
*
* @return mixed
*/
Inherited from CodeIgniter\Database\BaseResult
Defined in <ROOT>/social/Database/BaseResult.php:283
⇄⧉public getRowArray(int $n0): mixed Returns a single row from the results as an array.
$value->getRowArray(int $n0)
/**
* Returns a single row from the results as an array.
*
* If row doesn't exist, returns null.
*
* @return mixed
*/
Inherited from CodeIgniter\Database\BaseResult
Defined in <ROOT>/social/Database/BaseResult.php:307
⇄⧉public getRowObject(int $n0): mixed Returns a single row from the results as an object.
$value->getRowObject(int $n0)
/**
* Returns a single row from the results as an object.
*
* If row doesn't exist, returns null.
*
* @return mixed
*/
Inherited from CodeIgniter\Database\BaseResult
Defined in <ROOT>/social/Database/BaseResult.php:328
⇄⧉public setRow($key, $value = null): mixed Assigns an item into a particular column slot.
$value->setRow($key, $value = null)
/**
* Assigns an item into a particular column slot.
*
* @param mixed $key
* @param mixed $value
*
* @return mixed
*/
Inherited from CodeIgniter\Database\BaseResult
Defined in <ROOT>/social/Database/BaseResult.php:350
⇄⧉public getFirstRow(string $type = 'object'): mixed Returns the "first" row of the current results.
$value->getFirstRow(string $type = 'object')
/**
* Returns the "first" row of the current results.
*
* @return mixed
*/
Inherited from CodeIgniter\Database\BaseResult
Defined in <ROOT>/social/Database/BaseResult.php:375
⇄⧉public getLastRow(string $type = 'object'): mixed Returns the "last" row of the current results.
$value->getLastRow(string $type = 'object')
/**
* Returns the "last" row of the current results.
*
* @return mixed
*/
Inherited from CodeIgniter\Database\BaseResult
Defined in <ROOT>/social/Database/BaseResult.php:387
⇄⧉public getNextRow(string $type = 'object'): mixed Returns the "next" row of the current results.
$value->getNextRow(string $type = 'object')
/**
* Returns the "next" row of the current results.
*
* @return mixed
*/
Inherited from CodeIgniter\Database\BaseResult
Defined in <ROOT>/social/Database/BaseResult.php:399
⇄⧉public getPreviousRow(string $type = 'object'): mixed Returns the "previous" row of the current results.
$value->getPreviousRow(string $type = 'object')
/**
* Returns the "previous" row of the current results.
*
* @return mixed
*/
Inherited from CodeIgniter\Database\BaseResult
Defined in <ROOT>/social/Database/BaseResult.php:414
⇄⧉public getUnbufferedRow(string $type = 'object'): mixed Returns an unbuffered row and move the pointer to the next row.
$value->getUnbufferedRow(string $type = 'object')
/**
* Returns an unbuffered row and move the pointer to the next row.
*
* @return mixed
*/
Inherited from CodeIgniter\Database\BaseResult
Defined in <ROOT>/social/Database/BaseResult.php:433
⧉protected fetchAssoc(): mixed Returns the result set as an array.
/**
* Returns the result set as an array.
*
* Overridden by driver classes.
*
* @return mixed
*/
Defined in <ROOT>/social/Database/MySQLi/Result.php:130
⧉protected fetchObject(string $className = 'stdClass'): bool|Entity|object Returns the result set as an object.
/**
* Returns the result set as an object.
*
* Overridden by child classes.
*
* @return bool|Entity|object
*/
Defined in <ROOT>/social/Database/MySQLi/Result.php:142
No comments