A

AbstractRelationshipClass in namespace ActiveRecord
Abstract class that all relationships must extend from.
$AbstractRelationshipProperty in class AbstractRelationship
Name to be used that will trigger call to the relationship.
AbstractRelationship::append_record_to_associate() — Method in class AbstractRelationship
ActiveRecordExceptionClass in namespace ActiveRecord
Generic base exception for all ActiveRecord specific errors.
ArraySerializerClass in namespace ActiveRecord
Array serializer.
$CacheProperty in class Cache
$ColumnProperty in class Column
True if this column is set to auto_increment.
Connection::accepts_limit_and_order_for_update_and_delete() — Method in class Connection
Specifies whether or not adapter can use LIMIT/ORDER clauses with DELETE & UPDATE operations
DateTime::attribute_of() — Method in class DateTime
Indicates this object is an attribute of the specified model, with the given attribute name.
DateTime::add() — Method in class DateTime
DateTimeInterface::attribute_of() — Method in class DateTimeInterface
Indicates this object is an attribute of the specified model, with the given attribute name.
Errors::add() — Method in class Errors
Add an error message.
Errors::add_on_empty() — Method in class Errors
Adds an error message only if the attribute value is {@link http://www.php.net/empty empty}.
Errors::add_on_blank() — Method in class Errors
Adds the error message only if the attribute value was null or an empty string.
$ModelProperty in class Model
Allows you to create aliases for attributes.
$ModelProperty in class Model
Whitelist of attributes that are checked from mass-assignment calls such as constructing a model or using update_attributes.
$ModelProperty in class Model
Blacklist of attributes that cannot be mass-assigned.
Model::assign_attribute() — Method in class Model
Assign a value to an attribute.
Model::attribute_is_dirty() — Method in class Model
Check if a particular attribute has been modified since loading the model.
Model::attributes() — Method in class Model
Returns a copy of the model's attributes hash.
Model::all() — Method in class Model
Alias for self::find('all').
MysqlAdapter::accepts_limit_and_order_for_update_and_delete() — Method in class MysqlAdapter
Specifies whether or not adapter can use LIMIT/ORDER clauses with DELETE & UPDATE operations
Reflections::add() — Method in class Reflections
Instantiates a new ReflectionClass for the given class.
$SerializationProperty in class Serialization
SqliteAdapter::accepts_limit_and_order_for_update_and_delete() — Method in class SqliteAdapter
Specifies whether or not adapter can use LIMIT/ORDER clauses with DELETE & UPDATE operations
Utils::add_condition() — Method in class Utils
Utils::add_irregular() — Method in class Utils

B

AbstractRelationship::build_association() — Method in class AbstractRelationship
Creates a new instance of specified {@link Model} with the attributes pre-loaded.
BelongsToClass in namespace ActiveRecord
Belongs to relationship.
Expressions::bind() — Method in class Expressions
Bind a value to the specific one based index. There must be a bind marker for each value bound or to_s() will throw an exception.
Expressions::bind_values() — Method in class Expressions
HasMany::build_association() — Method in class HasMany
Creates a new instance of specified {@link Model} with the attributes pre-loaded.
InterfaceRelationship::build_association() — Method in class InterfaceRelationship
SQLBuilder::bind_values() — Method in class SQLBuilder
Returns the bind values.

C

$AbstractRelationshipProperty in class AbstractRelationship
Class name of the associated model.
AbstractRelationship::create_association() — Method in class AbstractRelationship
Creates a new instance of {@link Model} and invokes save.
AbstractRelationship::create_conditions_from_keys() — Method in class AbstractRelationship
AbstractRelationship::construct_inner_join_sql() — Method in class AbstractRelationship
Creates INNER JOIN SQL for associations.
CacheClass in namespace ActiveRecord
Cache::get('the-cache-key', function() { # this gets executed when cache is stale return "your cacheable datas"; });
CacheExceptionClass in namespace ActiveRecord
Thrown for cache problems.
CallBackClass in namespace ActiveRecord
Callbacks allow the programmer to hook into the life cycle of a {@link Model}.
ColumnClass in namespace ActiveRecord
Class for a table column.
Column::castIntegerSafely() — Method in class Column
Cast a value to an integer type safely
Column::cast() — Method in class Column
Casts a value to the column's type.
ConfigClass in namespace ActiveRecord
Manages configuration options for ActiveRecord.
ConfigExceptionClass in namespace ActiveRecord
Thrown for configuration problems.
ConnectionClass in namespace ActiveRecord
The base class for database connection adapters.
$ConnectionProperty in class Connection
The PDO connection object.
Connection::columns() — Method in class Connection
Retrieves column meta data for the specified table.
Connection::commit() — Method in class Connection
Commits the current transaction.
ConnectionManagerClass in namespace ActiveRecord
Singleton to manage any and all database connections.
CsvSerializerClass in namespace ActiveRecord
CSV serializer.
DateTime::createFromFormat() — Method in class DateTime
This needs to be overriden so it returns an instance of this class instead of PHP's \DateTime.
DateTimeInterface::createFromFormat() — Method in class DateTimeInterface
See http://php.net/manual/en/datetime.createfromformat.php
Errors::clear_model() — Method in class Errors
Nulls $model so we don't get pesky circular references. $model is only needed during the validation process and so can be safely cleared once that is done.
Errors::clear() — Method in class Errors
Clears out all error messages.
HasMany::create_association() — Method in class HasMany
Creates a new instance of {@link Model} and invokes save.
Inflector::camelize() — Method in class Inflector
Turn a string into its camelized version.
InterfaceRelationship::create_association() — Method in class InterfaceRelationship
$ModelProperty in class Model
Set to the name of the connection this {@link Model} should use.
$ModelProperty in class Model
Set this to true in your subclass to use caching for this model.
$ModelProperty in class Model
Set this to specify an expiration period for this model.
Model::connection() — Method in class Model
Retrieve the connection for this model.
Model::create() — Method in class Model
Creates a model and saves it to the database.
Model::cache_key() — Method in class Model
Model::count() — Method in class Model
Get a count of qualifying records.
MysqlAdapter::create_column() — Method in class MysqlAdapter
OciAdapter::create_column() — Method in class OciAdapter
PgsqlAdapter::create_column() — Method in class PgsqlAdapter
SQLBuilder::create_conditions_from_underscored_string() — Method in class SQLBuilder
Converts a string like "id_and_name_or_z" into a conditions value like array("id=? AND name=? OR z=?", values, .
SQLBuilder::create_hash_from_underscored_string() — Method in class SQLBuilder
Like create_conditions_from_underscored_string but returns a hash of name => value array instead.
SqliteAdapter::create_column() — Method in class SqliteAdapter
$TableProperty in class Table
$TableProperty in class Table
$TableProperty in class Table
$TableProperty in class Table
Whether to cache individual models or not (not to be confused with caching of table schemas).
$TableProperty in class Table
Expiration period for model caching.
$TableProperty in class Table
A instance of CallBack for this model/table
Table::clear_cache() — Method in class Table
Table::create_joins() — Method in class Table
Table::cache_key_for_model() — Method in class Table

D

Cache::delete() — Method in class Cache
$ColumnProperty in class Column
The default value of the column.
$ConnectionProperty in class Connection
Database's date format
$ConnectionProperty in class Connection
Database's datetime format
$ConnectionProperty in class Connection
Default port.
Connection::date_to_string() — Method in class Connection
Return a date time formatted into the database's date format.
Connection::datetime_to_string() — Method in class Connection
Return a date time formatted into the database's datetime format.
ConnectionManager::drop_connection() — Method in class ConnectionManager
Drops the connection from the connection manager. Does not actually close it since there is no close method in PDO.
$CsvSerializerProperty in class CsvSerializer
DatabaseExceptionClass in namespace ActiveRecord
Thrown when there was an error performing a database operation.
DateTimeClass in namespace ActiveRecord
An extension of PHP's DateTime class to provide dirty flagging and easier formatting options.
$DateTimeProperty in class DateTime
Default format used for format() and __toString()
DateTimeInterfaceClass in namespace ActiveRecord
Interface for the ActiveRecord\DateTime class so that ActiveRecord\Model->assign_attribute() will know to call attribute_of() on passed values. This is so the DateTime object can flag the model as dirty via $model->flag_dirty() when one of its setters is called.
$ErrorsProperty in class Errors
$ModelProperty in class Model
Set to the name of the database this Model's table is in.
$ModelProperty in class Model
Delegates calls to a relationship.
Model::dirty_attributes() — Method in class Model
Returns hash of attributes that have been modified since loading the model.
Model::delete_all() — Method in class Model
Deletes records matching conditions in $options
Model::delete() — Method in class Model
Deletes this model from the database and returns true if successful.
$MysqlAdapterProperty in class MysqlAdapter
$OciAdapterProperty in class OciAdapter
$OciAdapterProperty in class OciAdapter
OciAdapter::date_to_string() — Method in class OciAdapter
Return a date time formatted into the database's date format.
OciAdapter::datetime_to_string() — Method in class OciAdapter
Return a date time formatted into the database's datetime format.
$PgsqlAdapterProperty in class PgsqlAdapter
Reflections::destroy() — Method in class Reflections
Destroys the cached ReflectionClass.
SQLBuilder::delete() — Method in class SQLBuilder
$SerializationProperty in class Serialization
The default format to serialize DateTime objects to.
$SqliteAdapterProperty in class SqliteAdapter
$TableProperty in class Table
Name of the database (optional)
Table::delete() — Method in class Table

E

Connection::escape() — Method in class Connection
Escapes quotes in a string.
$CsvSerializerProperty in class CsvSerializer
ErrorsClass in namespace ActiveRecord
Class that holds {@link Validations} errors.
ExpressionsClass in namespace ActiveRecord
Templating like class for building SQL statements.
ExpressionsExceptionClass in namespace ActiveRecord
Thrown by {@link Expressions}.
$ModelProperty in class Model
An instance of {@link Errors} and will be instantiated once a write method is called.
Model::expire_cache() — Method in class Model
Model::exists() — Method in class Model
Determine if a record exists.
Model::extract_and_validate_options() — Method in class Model
Pulls out the options hash from $array if any.
Utils::extract_options() — Method in class Utils

F

$AbstractRelationshipProperty in class AbstractRelationship
Name of the foreign key.
Cache::flush() — Method in class Cache
$DateTimeProperty in class DateTime
Pre-defined format strings.
DateTime::format() — Method in class DateTime
Formats the DateTime to the specified format.
DateTimeInterface::format() — Method in class DateTimeInterface
Formats the DateTime to the specified format.
Errors::full_messages() — Method in class Errors
Returns all the error messages as an array.
Model::flag_dirty() — Method in class Model
Flags an attribute as dirty.
Model::first() — Method in class Model
Alias for self::find('first').
Model::find() — Method in class Model
Find records in the database.
Model::find_by_pk() — Method in class Model
Finder method which will find by a single or array of primary keys for this model.
Model::find_by_sql() — Method in class Model
Find using a raw SELECT query.
Table::find() — Method in class Table
Table::find_by_sql() — Method in class Table

G

AbstractRelationship::get_table() — Method in class AbstractRelationship
Cache::get() — Method in class Cache
Attempt to retrieve a value from cache using a key. If the value is not found, then the closure method will be invoked, and the result will be stored in cache using that key.
CallBack::get_callbacks() — Method in class CallBack
Returns all the callbacks registered for a callback type.
Config::get_connections() — Method in class Config
Returns the connection strings array.
Config::get_connection() — Method in class Config
Returns a connection string if found otherwise null.
Config::get_default_connection_string() — Method in class Config
Returns the default connection string or null if there is none.
Config::get_default_connection() — Method in class Config
Returns the name of the default connection.
Config::get_model_directory() — Method in class Config
Returns the model directory.
Config::get_logging() — Method in class Config
Return whether or not logging is on
Config::get_logger() — Method in class Config
Returns the logger
Config::get_date_class() — Method in class Config
Config::get_date_format() — Method in class Config
Connection::get_sequence_name() — Method in class Connection
Return a default sequence name for the specified table.
ConnectionManager::get_connection() — Method in class ConnectionManager
If $name is null then the default connection will be returned.
DateTime::get_format() — Method in class DateTime
Returns the format string.
Errors::get_raw_errors() — Method in class Errors
Returns the internal errors object.
Errors::getIterator() — Method in class Errors
Returns an iterator to the error messages.
Expressions::get_connection() — Method in class Expressions
Returns the connection object.
Model::get_primary_key() — Method in class Model
Retrieve the primary key name.
Model::get_real_attribute_name() — Method in class Model
Returns the actual attribute name if $name is aliased.
Model::get_validation_rules() — Method in class Model
Returns array of validator data for this Model.
Model::get_values_for() — Method in class Model
Returns an associative array containing values for all the attributes in $attributes
Model::get_models_from_cache() — Method in class Model
Will look up a list of primary keys from cache
OciAdapter::get_next_sequence_value() — Method in class OciAdapter
PgsqlAdapter::get_sequence_name() — Method in class PgsqlAdapter
Return a default sequence name for the specified table.
Reflections::get() — Method in class Reflections
Get a cached ReflectionClass.
SQLBuilder::get_where_values() — Method in class SQLBuilder
SQLBuilder::group() — Method in class SQLBuilder
Singleton::get_called_class() — Method in class Singleton
Similar to a get_called_class() for a child class to invoke.
Table::get_column_by_inflected_name() — Method in class Table
Table::get_fully_qualified_table_name() — Method in class Table
Table::get_relationship() — Method in class Table
Retrieve a relationship object for this table. Strict as true will throw an error if the relationship name does not exist.
Validations::get_record() — Method in class Validations

H

HasAndBelongsToManyClass in namespace ActiveRecord
HasManyClass in namespace ActiveRecord
One-to-many relationship.
HasManyThroughAssociationExceptionClass in namespace ActiveRecord
Thrown for has many thru exceptions.
HasOneClass in namespace ActiveRecord
One-to-one relationship.
SQLBuilder::having() — Method in class SQLBuilder
Table::has_relationship() — Method in class Table
Does a given relationship exist?
Utils::human_attribute() — Method in class Utils

I

AbstractRelationship::is_poly() — Method in class AbstractRelationship
What is this relationship's cardinality?
$ArraySerializerProperty in class ArraySerializer
Cache::initialize() — Method in class Cache
Initializes the cache.
CallBack::invoke() — Method in class CallBack
Invokes a callback.
$ColumnProperty in class Column
The inflected name of this columns .
Config::initialize() — Method in class Config
Allows config initialization using a closure.
Connection::instance() — Method in class Connection
Retrieve a database connection.
Connection::insert_id() — Method in class Connection
Retrieve the insert id of the last model saved.
Errors::is_invalid() — Method in class Errors
Returns true if the specified attribute had any error messages.
Errors::is_empty() — Method in class Errors
Returns true if there are no error messages.
InflectorClass in namespace ActiveRecord
Inflector::instance() — Method in class Inflector
Get an instance of the {@link Inflector} class.
Inflector::is_upper() — Method in class Inflector
Determines if a string contains all uppercase characters.
Inflector::is_lower() — Method in class Inflector
Determines if a string contains all lowercase characters.
InterfaceRelationshipClass in namespace ActiveRecord
Interface for a table relationship.
$JsonSerializerProperty in class JsonSerializer
Model::is_readonly() — Method in class Model
Determine if the model is in read-only mode.
Model::is_new_record() — Method in class Model
Determine if the model is a new record.
Model::is_dirty() — Method in class Model
Returns true if the model has been modified.
Model::is_valid() — Method in class Model
Run validations on model and returns whether or not model passed validation.
Model::is_invalid() — Method in class Model
Runs validations and returns true if invalid.
Model::is_options_hash() — Method in class Model
Determines if the specified array is a valid ActiveRecord options array.
SQLBuilder::insert() — Method in class SQLBuilder
$SerializationProperty in class Serialization
Set this to true if the serializer needs to create a nested array keyed on the name of the included classes such as for xml serialization.
Singleton::instance() — Method in class Singleton
Static method for instantiating a singleton object.
Table::insert() — Method in class Table
Utils::is_odd() — Method in class Utils
Utils::is_a() — Method in class Utils
Utils::is_blank() — Method in class Utils

J

JsonSerializerClass in namespace ActiveRecord
JSON serializer.
SQLBuilder::joins() — Method in class SQLBuilder

K

Inflector::keyify() — Method in class Inflector

L

AbstractRelationship::load() — Method in class AbstractRelationship
This will load the related model data.
BelongsTo::load() — Method in class BelongsTo
This will load the related model data.
BelongsTo::load_eagerly() — Method in class BelongsTo
$ColumnProperty in class Column
The maximum length of this column.
$ConnectionProperty in class Connection
The last query run.
Connection::limit() — Method in class Connection
Adds a limit clause to the SQL query.
HasAndBelongsToMany::load() — Method in class HasAndBelongsToMany
This will load the related model data.
HasMany::load() — Method in class HasMany
This will load the related model data.
HasMany::load_eagerly() — Method in class HasMany
Model::last() — Method in class Model
Alias for self::find('last')
MysqlAdapter::limit() — Method in class MysqlAdapter
Adds a limit clause to the SQL query.
OciAdapter::limit() — Method in class OciAdapter
Adds a limit clause to the SQL query.
PgsqlAdapter::limit() — Method in class PgsqlAdapter
Adds a limit clause to the SQL query.
SQLBuilder::limit() — Method in class SQLBuilder
SqliteAdapter::limit() — Method in class SqliteAdapter
Adds a limit clause to the SQL query.
$TableProperty in class Table
Table::load() — Method in class Table

M

AbstractRelationship::merge_association_options() — Method in class AbstractRelationship
Column::map_raw_type() — Method in class Column
Sets the $type member variable.
DateTime::modify() — Method in class DateTime
ModelClass in namespace ActiveRecord
The base class for your models.
ModelExceptionClass in namespace ActiveRecord
Thrown by {@link Model}.
MysqlAdapterClass in namespace ActiveRecord
Adapter for MySQL.
$SerializationProperty in class Serialization

N

$ColumnProperty in class Column
The true name of this column.
$ColumnProperty in class Column
True if this column allows null.
Connection::next_sequence_value() — Method in class Connection
Return SQL for getting the next value in a sequence.
Connection::native_database_types() — Method in class Connection
MysqlAdapter::native_database_types() — Method in class MysqlAdapter
OciAdapter::next_sequence_value() — Method in class OciAdapter
Return SQL for getting the next value in a sequence.
OciAdapter::native_database_types() — Method in class OciAdapter
PgsqlAdapter::next_sequence_value() — Method in class PgsqlAdapter
Return SQL for getting the next value in a sequence.
PgsqlAdapter::native_database_types() — Method in class PgsqlAdapter
SqliteAdapter::native_database_types() — Method in class SqliteAdapter

O

$AbstractRelationshipProperty in class AbstractRelationship
Options of the relationship.
$CacheProperty in class Cache
Errors::on() — Method in class Errors
Returns the error message(s) for the specified attribute or null if none.
OciAdapterClass in namespace ActiveRecord
Adapter for OCI (not completed yet).
SQLBuilder::order() — Method in class SQLBuilder
SQLBuilder::offset() — Method in class SQLBuilder
$SerializationProperty in class Serialization
Serialization::options_to_a() — Method in class Serialization
Table::options_to_sql() — Method in class Table

P

$AbstractRelationshipProperty in class AbstractRelationship
Is the relationship single or multi.
$ColumnProperty in class Column
True if this column is a primary key.
$ConnectionProperty in class Connection
The name of the protocol that is used.
$ConnectionProperty in class Connection
Default PDO options to set for each connection.
Connection::parse_connection_url() — Method in class Connection
Use this for any adapters that can take connection info in the form below to set the adapters connection info.
$HasManyProperty in class HasMany
$ModelProperty in class Model
Set this to override the default primary key name if different from default name of "id".
Model::pk_conditions() — Method in class Model
Returns a hash containing the names => values of the primary key.
PgsqlAdapterClass in namespace ActiveRecord
Adapter for Postgres (not completed yet)
$TableProperty in class Table
Utils::pluralize() — Method in class Utils
Utils::pluralize_if() — Method in class Utils

Q

AbstractRelationship::query_and_attach_related_models_eagerly() — Method in class AbstractRelationship
Eagerly loads relationships for $models.
$ConnectionProperty in class Connection
The quote character for stuff like column and field names.
Connection::query() — Method in class Connection
Execute a raw SQL query on the database.
Connection::query_and_fetch_one() — Method in class Connection
Execute a query that returns maximum of one row with one field and return it.
Connection::query_and_fetch() — Method in class Connection
Execute a raw SQL query and fetch the results.
Connection::quote_name() — Method in class Connection
Quote a name like table names and field names.
Connection::query_column_info() — Method in class Connection
Query for column meta info and return statement handle.
Connection::query_for_tables() — Method in class Connection
Query for all tables in the current database. The result must only contain one column which has the name of the table.
Model::query() — Method in class Model
Helper method to run arbitrary queries against the model's database connection.
MysqlAdapter::query_column_info() — Method in class MysqlAdapter
Query for column meta info and return statement handle.
MysqlAdapter::query_for_tables() — Method in class MysqlAdapter
Query for all tables in the current database. The result must only contain one column which has the name of the table.
$OciAdapterProperty in class OciAdapter
OciAdapter::query_column_info() — Method in class OciAdapter
Query for column meta info and return statement handle.
OciAdapter::query_for_tables() — Method in class OciAdapter
Query for all tables in the current database. The result must only contain one column which has the name of the table.
$PgsqlAdapterProperty in class PgsqlAdapter
PgsqlAdapter::query_column_info() — Method in class PgsqlAdapter
Query for column meta info and return statement handle.
PgsqlAdapter::query_for_tables() — Method in class PgsqlAdapter
Query for all tables in the current database. The result must only contain one column which has the name of the table.
SqliteAdapter::query_column_info() — Method in class SqliteAdapter
Query for column meta info and return statement handle.
SqliteAdapter::query_for_tables() — Method in class SqliteAdapter
Query for all tables in the current database. The result must only contain one column which has the name of the table.

R

CallBack::register() — Method in class CallBack
Register a new callback.
$ColumnProperty in class Column
The raw database specific type.
Connection::rollback() — Method in class Connection
Rollback a transaction.
Model::read_attribute() — Method in class Model
Retrieves an attribute's value or a relationship object based on the name passed. If the attribute accessed is 'id' then it will return the model's primary key no matter what the actual attribute name is for the primary key.
Model::readonly() — Method in class Model
Flag model as readonly.
Model::reestablish_connection() — Method in class Model
Re-establishes the database connection with a new connection.
Model::reload() — Method in class Model
Reloads the attributes and relationships of this object from the database.
Model::reset_dirty() — Method in class Model
Resets the dirty array.
ReadOnlyExceptionClass in namespace ActiveRecord
Thrown when attempting to perform a write operation on a {@link Model} that is in read-only mode.
RecordNotFoundClass in namespace ActiveRecord
Thrown when a record cannot be found.
ReflectionsClass in namespace ActiveRecord
Simple class that caches reflections of classes.
RelationshipExceptionClass in namespace ActiveRecord
Thrown for relationship exceptions.
SQLBuilder::reverse_order() — Method in class SQLBuilder
Reverses an order clause.
Table::reestablish_connection() — Method in class Table
Validations::rules() — Method in class Validations
Returns validator data.

S

AbstractRelationship::set_inferred_class_name() — Method in class AbstractRelationship
Infers the $this->class_name based on $this->attribute_name.
AbstractRelationship::set_class_name() — Method in class AbstractRelationship
Cache::set() — Method in class Cache
$ColumnProperty in class Column
Name of the sequence to use for this column if any.
Config::set_connections() — Method in class Config
Sets the list of database connection strings.
Config::set_default_connection() — Method in class Config
Set the name of the default connection.
Config::set_model_directory() — Method in class Config
Sets the directory where models are located.
Config::set_logging() — Method in class Config
Turn on/off logging
Config::set_logger() — Method in class Config
Sets the logger object for future SQL logging
Config::set_date_class() — Method in class Config
Config::set_date_format() — Method in class Config
Config::set_cache() — Method in class Config
Sets the url for the cache server to enable query caching.
Connection::supports_sequences() — Method in class Connection
Tells you if this adapter supports sequences or not.
Connection::string_to_datetime() — Method in class Connection
Converts a string representation of a datetime into a DateTime object.
Connection::set_encoding() — Method in class Connection
Executes query to specify the character set for this connection.
DateTime::setDate() — Method in class DateTime
DateTime::setISODate() — Method in class DateTime
DateTime::setTime() — Method in class DateTime
DateTime::setTimestamp() — Method in class DateTime
DateTime::setTimezone() — Method in class DateTime
DateTime::sub() — Method in class DateTime
Errors::size() — Method in class Errors
Returns the number of error messages there are.
Expressions::set_connection() — Method in class Expressions
Sets the connection object. It is highly recommended to set this so we can use the adapter's native escaping mechanism.
HasMany::set_keys() — Method in class HasMany
$ModelProperty in class Model
Set this to explicitly specify the sequence name for the table.
Model::save() — Method in class Model
Save the model to the database.
Model::set_timestamps() — Method in class Model
Updates a model's timestamps.
Model::set_attributes() — Method in class Model
Mass update the model with data from an attributes hash.
Model::set_relationship_from_eager_load() — Method in class Model
Add a model to the given named ($name) relationship.
MysqlAdapter::set_encoding() — Method in class MysqlAdapter
Executes query to specify the character set for this connection.
OciAdapter::supports_sequences() — Method in class OciAdapter
Tells you if this adapter supports sequences or not.
OciAdapter::string_to_datetime() — Method in class OciAdapter
Converts a string representation of a datetime into a DateTime object.
OciAdapter::set_encoding() — Method in class OciAdapter
Executes query to specify the character set for this connection.
PgsqlAdapter::supports_sequences() — Method in class PgsqlAdapter
Tells you if this adapter supports sequences or not.
PgsqlAdapter::set_encoding() — Method in class PgsqlAdapter
Executes query to specify the character set for this connection.
SQLBuilderClass in namespace ActiveRecord
Helper class for building sql statements progmatically.
SQLBuilder::select() — Method in class SQLBuilder
SerializationClass in namespace ActiveRecord
Base class for Model serializers.
SingletonClass in namespace ActiveRecord
This implementation of the singleton pattern does not conform to the strong definition given by the "Gang of Four." The __construct() method has not be privatized so that a singleton pattern is capable of being achieved; however, multiple instantiations are also possible. This allows the user more freedom with this pattern.
SqliteAdapterClass in namespace ActiveRecord
Adapter for SQLite.
SqliteAdapter::set_encoding() — Method in class SqliteAdapter
Executes query to specify the character set for this connection.
StandardInflectorClass in namespace ActiveRecord
$TableProperty in class Table
Name of the sequence for this table (optional). Defaults to {$table}_seq
Utils::singularize() — Method in class Utils
Utils::squeeze() — Method in class Utils

T

ArraySerializer::to_s() — Method in class ArraySerializer
Performs the serialization.
$ColumnProperty in class Column
Map a type to an column type.
$ColumnProperty in class Column
The type of this column: STRING, INTEGER, .
Connection::tables() — Method in class Connection
Returns all tables for the current database.
Connection::transaction() — Method in class Connection
Starts a transaction.
CsvSerializer::to_s() — Method in class CsvSerializer
Performs the serialization.
Errors::to_array() — Method in class Errors
Returns all the error messages as an array, including error key.
Expressions::to_s() — Method in class Expressions
JsonSerializer::to_s() — Method in class JsonSerializer
Performs the serialization.
$ModelProperty in class Model
Set this to explicitly specify the model's table name if different from inferred name.
Model::table_name() — Method in class Model
Retrieves the name of the table for this Model.
Model::table() — Method in class Model
Returns the {@link Table} object for this model.
Model::to_json() — Method in class Model
Returns a JSON representation of this model.
Model::to_xml() — Method in class Model
Returns an XML representation of this model.
Model::to_csv() — Method in class Model
Returns an CSV representation of this model.
Model::to_array() — Method in class Model
Returns an Array representation of this model.
Model::transaction() — Method in class Model
Executes a block of code inside a database transaction.
SQLBuilder::to_s() — Method in class SQLBuilder
Returns the SQL string.
Serialization::to_a() — Method in class Serialization
Returns the attributes array.
Serialization::to_s() — Method in class Serialization
Performs the serialization.
StandardInflector::tableize() — Method in class StandardInflector
TableClass in namespace ActiveRecord
Manages reading and writing to a database table.
$TableProperty in class Table
Name of the table.
XmlSerializer::to_s() — Method in class XmlSerializer
Performs the serialization.

U

AbstractRelationship::unset_non_finder_options() — Method in class AbstractRelationship
Inflector::uncamelize() — Method in class Inflector
Convert a camelized string to a lowercase, underscored string.
Inflector::underscorify() — Method in class Inflector
Convert a string with space into a underscored equivalent.
Model::update_all() — Method in class Model
Updates records using set in $options
Model::update_attributes() — Method in class Model
Mass update the model with an array of attribute data and saves to the database.
Model::update_attribute() — Method in class Model
Updates a single attribute and saves the record without going through the normal validation procedure.
SQLBuilder::update() — Method in class SQLBuilder
Table::update() — Method in class Table
UndefinedPropertyExceptionClass in namespace ActiveRecord
Thrown when attempting to access an invalid property on a {@link Model}.
UtilsClass in namespace ActiveRecord
Some internal utility functions.

V

$AbstractRelationshipProperty in class AbstractRelationship
List of valid options for relationships.
$CallBackProperty in class CallBack
List of available callbacks.
Expressions::values() — Method in class Expressions
Returns all the values currently bound.
$HasManyProperty in class HasMany
Valid options to use for a {@link HasMany} relationship.
Inflector::variablize() — Method in class Inflector
$ModelProperty in class Model
A list of valid finder options.
Model::values_for_pk() — Method in class Model
Helper that creates an array of values for the primary key(s).
Model::values_for() — Method in class Model
Helper to return a hash of values for the specified attributes.
StandardInflector::variablize() — Method in class StandardInflector
ValidationsClass in namespace ActiveRecord
Manages validations for a {@link Model}.
Validations::validate() — Method in class Validations
Runs the validators.
Validations::validates_presence_of() — Method in class Validations
Validates a field is not null and not blank.
Validations::validates_inclusion_of() — Method in class Validations
Validates that a value is included the specified array.
Validations::validates_exclusion_of() — Method in class Validations
This is the opposite of {@link validates_include_of}.
Validations::validates_inclusion_or_exclusion_of() — Method in class Validations
Validates that a value is in or out of a specified list of values.
Validations::validates_numericality_of() — Method in class Validations
Validates that a value is numeric.
Validations::validates_size_of() — Method in class Validations
Alias of {@link validates_length_of}
Validations::validates_format_of() — Method in class Validations
Validates that a value is matches a regex.
Validations::validates_length_of() — Method in class Validations
Validates the length of a value.
Validations::validates_uniqueness_of() — Method in class Validations
Validates the uniqueness of a value.
ValidationsArgumentErrorClass in namespace ActiveRecord
Thrown for validations exceptions.

W

SQLBuilder::where() — Method in class SQLBuilder

X

XmlSerializerClass in namespace ActiveRecord
XML serializer.

_

AbstractRelationship::__construct() — Method in class AbstractRelationship
Constructs a relationship.
BelongsTo::__construct() — Method in class BelongsTo
Constructs a relationship.
BelongsTo::__get() — Method in class BelongsTo
CallBack::__construct() — Method in class CallBack
Creates a CallBack.
Connection::__construct() — Method in class Connection
Class Connection is a singleton. Access it via instance().
DatabaseException::__construct() — Method in class DatabaseException
DateTime::__toString() — Method in class DateTime
DateTime::__clone() — Method in class DateTime
Handle PHP object clone.
Errors::__construct() — Method in class Errors
Constructs an {@link Errors} object.
Errors::__get() — Method in class Errors
Retrieve error messages for an attribute.
Errors::__toString() — Method in class Errors
Convert all error messages to a String.
Expressions::__construct() — Method in class Expressions
HasAndBelongsToMany::__construct() — Method in class HasAndBelongsToMany
Constructs a relationship.
HasMany::__construct() — Method in class HasMany
Constructs a {@link HasMany} relationship.
InterfaceRelationship::__construct() — Method in class InterfaceRelationship
Model::__construct() — Method in class Model
Constructs a model.
Model::__get() — Method in class Model
Magic method which delegates to read_attribute(). This handles firing off getter methods, as they are not checked/invoked inside of read_attribute(). This circumvents the problem with a getter being accessed with the same name as an actual attribute.
Model::__isset() — Method in class Model
Determines if an attribute exists for this {@link Model}.
Model::__set() — Method in class Model
Magic allows un-defined attributes to set via $attributes.
Model::__wakeup() — Method in class Model
Model::__clone() — Method in class Model
Model::__callStatic() — Method in class Model
Enables the use of dynamic finders.
Model::__call() — Method in class Model
Enables the use of build|create for associations.
OciAdapter::__construct() — Method in class OciAdapter
Class Connection is a singleton. Access it via instance().
ReadOnlyException::__construct() — Method in class ReadOnlyException
Sets the exception message to show the undefined property's name.
SQLBuilder::__construct() — Method in class SQLBuilder
Constructor.
SQLBuilder::__toString() — Method in class SQLBuilder
Returns the SQL string.
Serialization::__construct() — Method in class Serialization
Constructs a {@link Serialization} object.
Serialization::__toString() — Method in class Serialization
Returns the serialized object as a string.
SqliteAdapter::__construct() — Method in class SqliteAdapter
Class Connection is a singleton. Access it via instance().
Table::__construct() — Method in class Table
UndefinedPropertyException::__construct() — Method in class UndefinedPropertyException
Sets the exception message to show the undefined property's name.
Validations::__construct() — Method in class Validations
Constructs a {@link Validations} object.
XmlSerializer::__construct() — Method in class XmlSerializer
Constructs a {@link Serialization} object.