- Queries
- All Atoms
- Search
- Advanced Search
Diviner All Atoms
All Atoms
All Atoms
- Increase transaction stack depth.
- Method
- Writes a value to a field. Override this method for custom behavior of setField($value) instead of overriding setField directly.
- Method
- Reads the value from a field. Override this method for custom behavior of @{method:getField} instead of overriding getField directly.
- Method
- Hook to perform an action after the deletion of an object.
- Method
- Hook to perform an action before the deletion of an object.
- Method
- Hook to perform an action on data after it is read from the database.
- Method
- Hook to apply serialization or validation to data as it is read from the database. See also @{method:willWriteData}.
- Method
- Hook to make internal object state changes prior to INSERT, REPLACE or UPDATE.
- Method
- Hook to perform actions after data has been written to the database.
- Method
- Hook to apply serialization or validation to data before it is written to the database. See also @{method:willReadData}.
- Method
- Method
- Generate a new PHID, used by CONFIG_AUX_PHID.
- Method
- Method
- Retrieve the primary key column, "id" by default. If you can not reasonably name your ID column "id", override this method.
- Method
- Retrieve the database table name. By default, this is the class name.
- Method
- Method used to determine whether to insert or update when saving.
- Method
- Internal implementation of INSERT and REPLACE.
- Method
- Delete this object, permanently.
- Method
- Save this object, forcing the query to use UPDATE regardless of object state.
- Method
- Save this object, forcing the query to use INSERT regardless of object state.
- Method
- Save this object, forcing the query to use REPLACE regardless of object state.
- Method
- Persist this object to the database. In most cases, this is the only method you need to call to do writes. If the object has not yet been inserted this will do an insert; if it has, it will do an update.
- Method
- Method
- Make an object read-only.
- Method
- Convert this object into a property dictionary. This dictionary can be restored into an object by using @{method:loadFromArray} (unless you're using legacy features with CONFIG_CONVERT_CAMELCASE, but in that case you should just go ahead and die in a fire).
- Method
- Get or build the database connection for this object.
- Method
- Check if a property exists on this object.
- Method
- Retrieve a list of all object properties. This list only includes properties that are declared as protected, and it is expected that all properties returned by this function should be persisted to the database. Properties that should not be persisted must be declared as private.
- Method
- Test if a property exists.
- Method
- Method
- Retrieve the unique ID identifying this object. This value will be null if the object hasn't been persisted and you didn't set it manually.
- Method
- Set unique ID identifying this object. You normally don't need to call this method unless with `IDS_MANUAL`.
- Method
- Method
- Method
- Load referenced row. See @{method:loadRelatives} for details.
- Method
- This method helps to prevent the 1+N queries problem. It happens when you execute a query for each row in a result set. Like in this code:
- Method
- Initialize a list of objects from a list of dictionaries. Usually you load lists of objects with @{method:loadAllWhere}, but sometimes that isn't flexible enough. One case is if you need to do joins to select the right objects:
- Method
- Initialize this object's properties from a dictionary. Generally, you load single objects with loadOneWhere(), but sometimes it may be more convenient to pull data from elsewhere directly (e.g., a complicated join via @{method:queryData}) and then load from an array representation.
- Method
- Reload an object from the database, discarding any changes to persistent properties. This is primarily useful after entering a transaction but before applying changes to an object.
- Method
- Method
- Load a single object identified by a 'WHERE' clause. You provide everything after the 'WHERE', and Lisk builds the first half of the query. See loadAllWhere(). This method is similar, but returns a single result instead of a list.
- Method
- Load all objects which match a WHERE clause. You provide everything after the 'WHERE'; Lisk handles everything up to it. For example:
- Method
- Loads all of the objects, unconditionally.
- Method
- Load an object by ID. You need to invoke this as an instance method, not a class method, because PHP doesn't have late static binding (until PHP 5.3.0). For example:
- Method
- Determine the setting of a configuration option for this class of objects.
- Method
- Change Lisk behaviors, like ID configuration and timestamps. If you want to change these behaviors, you should override this method in your child class and change the options you're interested in. For example:
- Method
- Force an object to use a specific connection.
- Method
- Store a connection in the connection cache.
- Method
- Get an existing, cached connection for this object.
- Method
- Return a namespace for this object's connections in the connection cache. Generally, the database name is appropriate. Two connections are considered equivalent if they have the same connection namespace and mode.
- Method
- Establish a live connection to a database service. This method should return a new connection. Lisk handles connection caching and management; do not perform caching deeper in the stack.
- Method
- Build an empty object.
- Method
- You usually don't need to use this class directly as it is controlled by @{class:LiskDAO}. You can create it if you want to work with objects of same type from different sources as with one set. Let's say you want to get e-mails of all users involved in a revision:
- Class
- See @{method:LiskDAO::loadRelatives}.
- Method
- The main purpose of this method is to break cyclic dependency. It removes all objects from this set and all subsets created by it.
- Method
- Method
- Method
- Method
- Method
- Method
- Class
- Method
- Method
- Method
- Method
- Method
- Method
- Break a list of escaped SQL statement fragments (e.g., VALUES lists for INSERT, previously built with @{function:qsprintf}) into chunks which will fit under the MySQL 'max_allowed_packet' limit.
- Method
- Method
- Method
- Method
- Method
- Method
- Method
- Method
- Method
- Method
- Method
- Method
- Method
- Method
- Method
- Method
- Method
- Method
- Examine a directory for `.php` and `.sql` files and build patch specifications for them.
- Method
- Method
- Method