-
$accessible_attributes
-
-
$allowNull
-
Flag indicating whether nulls are allowed
-
$allowNull
-
Flag indicating whether nulls are allowed
-
$allowNull
-
Flag indicating whether nulls are allowed
-
$allowNull
-
Flag indicating whether nulls are allowed
-
$allowNull
-
Flag indicating whether nulls are allowed
-
$associates
-
-
$association
-
-
$associationName
-
-
$associations
-
-
$attributes
-
-
$attributes
-
Attributes
-
$attrNames
-
List of attribute names to validate
-
$attrNames
-
List of attribute names to validate
-
$attrNames
-
List of attribute names to validate
-
$attrNames
-
List of attribute names to validate
-
$attrNames
-
List of attribute names to validate
-
$attrNames
-
List of attribute names to validate
-
$attrNames
-
List of attribute names to validate
-
accessible_attributes
-
Return a list of all attributes which have been made accessible to mass assignment by passing them to attr_accessible (the list is always maintained in sorted order).
-
Association.php
-
-
ActiveRecord_Association
-
ActiveRecord_Association is the base class from which all association implementations inherit.
-
ActiveRecord_AssociationTypeMismatch
-
Thrown when an attempt is made to assign an invalid type to an association
-
ActiveRecord_Association_BelongsTo
-
Implements the belongs_to association
-
ActiveRecord_Association_BelongsToKeyValidation
-
A validation for the foreign key field on a belongs_to relationship
-
ActiveRecord_Association_Collection
-
The collection of associates in a has many association. In addition to the documented methods, the collection object may be treated as an array (iterated over, accessed with square brackets, etc.).
-
ActiveRecord_Association_HasMany
-
Implements the has_many association
-
ActiveRecord_Association_HasOne
-
Implements the has_one association
-
ActiveRecord_Base
-
An ActiveRecord implementation for PHP 5.
-
ActiveRecord_BoundsValidation
-
A validation to check that an attribute's string length is within a certain range.
-
ActiveRecord_Column
-
A class containing information about a table column.
-
ActiveRecord_ConfirmationValidation
-
A validation to check that a confirmation attribute for an
-
ActiveRecord_Connection
-
ActiveRecord_Connection extends PDO to provide some additional functionality required by ActiveRecord that may vary by database.
-
ActiveRecord_Connection_Default
-
Default implementation of ActiveRecord_Connection
-
ActiveRecord_Connection_Mysql
-
ActiveRecordConnection for MySQL
-
ActiveRecord_Connection_Provider
-
ActiveRecord implementation of Support_Resources_DBProvider. This differs from the default implementation only in that it returns an instance of ActiveRecord_Connection instead of a plain PDO instance.
-
ActiveRecord_Connection_Sqlite
-
ActiveRecord_Connection for SQLite
-
ActiveRecord_Error
-
Base class for ActiveRecord exceptions
-
ActiveRecord_Errors
-
Errors collection class for ActiveRecord. Every ActiveRecord instance has a corresponding ActiveRecord_Errors instance, even if no errors exist for the object.
-
ActiveRecord_IncorrectArgumentCountError
-
Thrown if a call is make with an incorrect number of arguments
-
ActiveRecord_InfoMgr
-
ActiveRecord_InfoMgr is a helper class to manage meta information for active record classes. This allows information such as column mappings, associations, etc. to be gathered once per class and shared between instances.
-
ActiveRecord_Invalid
-
Thrown if a record could not be saved to the database due to validation.
-
ActiveRecord_MetaInfo
-
ActiveRecord_MetaInfo is a structure to hold meta information for
-
ActiveRecord_NotFoundError
-
Thrown if a required record was not found
-
ActiveRecord_NotSaved
-
Thrown if a record could not be successfully saved to the database.
-
ActiveRecord_NumericValidation
-
A validation to check that an attribute's value is numeric.
-
ActiveRecord_PresentValidation
-
A validation to check that an attribute is non-empty (as determined by the PHP function empty()).
-
ActiveRecord_Proxy
-
ActiveRecord_Proxy allows for limited access to some protected methods of an ActiveRecord object. See ActiveRecord_Base::add_method_proxy() for more information.
-
ActiveRecord_ProxyMethod
-
ActiveRecord_ProxyMethod encapsulates a proxied method for an ActiveRecord object. See ActiveRecord_Base::add_method_proxy() for more information.
-
ActiveRecord_ReadOnlyRecord
-
Thrown if an attempt is made to save a read-only record
-
ActiveRecord_RegExValidation
-
A validation to check that an attribute's value conforms to a regular expression.
-
ActiveRecord_SequencesNotSupportedError
-
Indicates an attempt to use a sequence on a connection that does not support them.
-
ActiveRecord_SetValidation
-
A validation to check that an attribute's value is contained in a specified list.
-
ActiveRecord_SubclassNotFound
-
Thrown if a required subclass could not be found
-
ActiveRecord_UniqueValidation
-
A validation to check that an attribute's value is unique.
-
ActiveRecord_UnknownAssociationError
-
Thrown if a reference is made to a non-existent association
-
ActiveRecord_UnknownMethodError
-
Thrown if an attempt is made to access a non-existent method
-
ActiveRecord_UnknownOptionError
-
Thrown if an invalid option key is supplied
-
ActiveRecord_UnknownPropertyError
-
Thrown if an attempt is made to access a non-existent property
-
ActiveRecord_Validation
-
ActiveRecord_Validation is an interface for objects that can perform validations on an ActiveRecord instance. One instance of an ActiveRecord_Validation may have validate invoked for multiple ActiveRecord instances.
-
add
-
Add an error message to the named attribute. Multiple error message may be associated with a single attribute. If no message is provided, the message "is invalid" is used.
-
addLimit
-
Append a LIMIT clause to a SQL statement
-
addLimit
-
Append a LIMIT clause to a SQL statement
-
addLimit
-
Append a LIMIT clause to a SQL statement
-
add_associate
-
Add an associated object to this object's collection. This method handles database updates and foreign keys. It does not directly affect the contents of an association collection object.
-
add_conditions
-
Add conditions fragment to a SQL statement
-
add_event_listener
-
Add an event listener to this class.
-
add_joins
-
Add join fragment to a SQL statement
-
add_limit
-
Add limit information to the SQL statement
-
add_method_proxy
-
Define a proxy for a method name.
-
add_method_proxy
-
Calls add_proxy_method on the object the method was originally invoked on.
-
add_on_boundary_breaking
-
Conditionally adds an error message to the list of supplied
-
add_on_empty
-
Conditionally adds an error message to the list of supplied attributes when the attribute values are empty (determined by the PHP function empty()). If no error message is provided, the message "is required" is used.
-
add_order
-
Add order by fragment to a SQL statement
-
add_to_base
-
Add an error message that pertains to the base object as opposed to a particular attribute on the object.
-
add_validation
-
Add a validation to the class
-
after_create
-
Register a method on this class to be called after a save operation is performed for a new record.
-
after_create
-
Check the associates to make sure they have been saved
-
after_create
-
Check the associate to make sure it has been saved
-
after_destroy
-
Register a method on this class to be called after the record is destroyed.
-
after_save
-
Check the associates to make sure they have been saved
-
after_save
-
Register a method on this class to be called after any save operation is performed.
-
after_save
-
Check the associate to make sure it has been saved
-
after_update
-
Register a method on this class to be called after a save operation is performed for a record being updated (non-new record).
-
after_validation
-
Register a method on this class to be called after any validation operation is performed.
-
after_validation_on_create
-
Register a method on this class to be called after a validation operation is performed for a new record.
-
after_validation_on_update
-
Register a method on this class to be called after a validation operation is performed for a record being updated (non-new record).
-
assemble_finder_options
-
Create an options parameter for passing to a find_* method using the output from create_finder_attribute_hash
-
associates
-
Returns the array of associate objects
-
attributes
-
Returns this object's attributes as an associative array.
-
attributes_for_set
-
Return the list of column names and attribute values for use in the SET clause of an UPDATE statement. The primary key column is excluded.
-
attributes_from_column_definition
-
Return an associative array of attributes representing the default values for the fields on this class's table. The array keys are the field names and the values are the default values.
-
attributes_protected_by_default
-
Return a list of attributes which are never permitted in mass-assignment. The returned list must be sorted. By default, the returned list include the primary key and inheritance column.
-
attribute_names
-
Returns an array of names for the attributes available on this object. The returned list is sorted alphabetically.
-
attribute_present
-
Returns true if the named attribute exists for this object and has a non-empty value (not null, false, 0, the empty string, or any empty array).
-
attr_accessible
-
Accepts the names of one or more attributes which are allowed to
-
attr_protected
-
Accepts the names of one or more attributes which are protected from mass assignment in this class (assignment through the constructor, create method, set_attributes method, etc.).
-
$cache
-
Associative array containing meta information keyed by class name
-
$cached_attributes
-
-
$cached_attributes
-
A collection of cached attribute values
-
$callback
-
-
$caseInsenstive
-
Flag indicating case sensitivity
-
$class_name
-
-
$class_name
-
-
$class_name
-
-
$columns
-
-
$columns_hash
-
-
$column_names
-
-
$condition
-
Optional condition method for determining whether or not to run
-
$connection
-
-
$connection
-
-
$content_columns
-
-
$count
-
-
$creation_options
-
List of valid options for creation
-
$creation_options
-
List of valid options for creation
-
$creation_options
-
List of valid options for creation
-
Collection.php
-
-
Column.php
-
-
Connection.php
-
-
class_name
-
Return the class name for this association
-
class_name
-
Turn a table name back into a class name. This follows the reverse rules of the table_name method. So, for example, "my_objects" becomes "MyObject".
-
clear
-
Clear all errors from the collection.
-
clear
-
Clear all associates from the collection
-
columns
-
Return an array of ActiveRecord_Column objects for the table associated with this class.
-
columns
-
Return an array of ActiveRecordColumn objects for the named table.
-
columns
-
Return an array of ActiveRecord_Column objects for the named table.
-
columns
-
Return an array of ActiveRecord_Column objects for the named table.
-
columns_for_insert
-
Return the list of all attribute names prepared for use in an insert statement
-
columns_hash
-
Returns an associative array of column objects keyed by column name for the table associated with this class.
-
column_for_attribute
-
Returns the column object for the named attribute
-
column_names
-
Returns an array of column names as strings.
-
connect
-
Connect to the database
-
connection
-
Return the database connection for this class
-
content_columns
-
Returns an array of column objects suitable for direct editing
-
count
-
Returns the number of associated objects in the collection (same as size())
-
count
-
Returns a count of records matching the provided criteria.
-
count_associates
-
Called by the collection object to count the associated objects without loading them.
-
count_by_sql
-
Returns the result of an SQL statement that should only include a COUNT(*) -- or equivalent -- in the SELECT clause.
-
create
-
Construct a new associate and save it (validation permitting) from a set of attributes and add it to the collection.
-
create
-
Factory-type method for creating a new ActiveRecord_Connection (this must be used instead of constructing a new instance).
-
create
-
Create and save (validation permitting) an object. The newly created object is returned. If validation fails, the unsaved object is still returned.
-
create_associate
-
Create and save a new associated object from an associative array of attributes and assign it to the object
-
create_associate
-
Create and save a new associated object from an associative array of attributes and assign it to the object. This method handles database updates and foreign keys. It does not directly affect the contents of an association collection object.
-
create_associate
-
Create and save a new associated object from an associative array of attributes and assign it to the object
-
create_finder_attribute_hash
-
Extract attribute names from an "_and_" separated string and construct an associative array using a corresponding array of arguments.
-
create_or_fail
-
Like create, but calls save_or_fail, so if validation fails, an exception is thrown.
-
create_or_update
-
Handles performing the correct save operation for the object.
-
create_record
-
Create a new record in the database for this object
-
$scale
-
The scale of the columm
-
$scope
-
Scoping conditions
-
$sequence_name
-
-
$shortMsg
-
Error message to use for attributes that are too short
-
$sql_type
-
The column data type (as reported by the DB)
-
Sqlite.php
-
-
sanitizeSQL
-
Accepts a string or array containing an SQL statement or
-
sanitizeSQL
-
Accepts a string or array containing an SQL statement or
-
save
-
Save the object to the database. If no record yet exists for the object, a new one is created. Otherwise, the existing record is updated.
-
save_or_fail
-
Saves the object to the database. If the save operation does not succeed, a RecordNotSaved exception is thrown.
-
scale
-
Return the scale of the columm
-
selectAll
-
Runs the select query provided in the $sql parameter, then fetches all rows into an array. Each individual row is fetched using the mode parameter provided.
-
selectValue
-
This is a convenience method for running select queries which
-
send_parent
-
Invoke a named method on an blank instance of our parent class if our parent is not abstract.
-
sequence_name
-
Return the name of this class's sequence. This function may be overridden by derived classes. The default name is actually determined by providing the table name and primary key name to the connection. It then builds an appropriate sequence name.
-
set_associate
-
Mutator method for the associated object
-
set_associate
-
Mutator method for the associated object
-
set_associates
-
Mutator method for the entire collection of associated objects
-
set_associate_ids
-
Mutator method for the entire collection of associated objects by ids
-
set_attributes
-
Allows setting of multiple attributes at once by passing an associative array. The array keys are the attribute names and the array values are the values to assign.
-
set_connection
-
Sets the database connection for this class
-
set_foreign_key
-
Mutator method for the foreign key. This is redefined to invalidate any cached object.
-
set_id
-
Set the value of the primary key
-
set_inheritance_column
-
Set the name of the column used for single table inheritance.
-
set_primary
-
Set whether or not this column is the tables primary key.
-
set_primary_key
-
Set the field name used as this class's primary key.
-
set_readonly
-
Change the setting of the read-only flag for this object
-
set_sequence_name
-
Set the name of this class's sequence.
-
set_table_name
-
Set the name of this class's table.
-
set_table_name_prefix
-
Set the prefix to add to the table name
-
set_table_name_suffix
-
Set the suffix to add to the table name
-
should_validate
-
Determine if the object should be validated or not based on the configured condition
-
simplified_type
-
Return a normalized type name from a raw SQL type
-
size
-
Returns the number of associated objects in the collection
-
size
-
Return the total number of errors in the collection (same as count(full_messages())).
-
sql_type
-
Return the column data type (as reported by the DB)
-
$validations
-
-
$validValues
-
List to validate against
-
Validation.php
-
-
validate
-
Validate the object provided. If the object is invalid, it is the responsibility of this method to add any errors appropriate to the object's error collection.
-
validate
-
Perform validation checks applicable any time the record is saved. Use errors()->add($attribute, $message) to record any errors.
-
validate
-
Validate the object provided. If the object is invalid, it is the responsibility of this method to add any errors appropriate to the object's error collection.
-
validate
-
Validate the object provided. If the object is invalid, it is the responsibility of this method to add any errors appropriate to the object's error collection.
-
validate
-
Validate the object provided. If the object is invalid, it is the responsibility of this method to add any errors appropriate to the object's error collection.
-
validate
-
Validate the object provided. If the object is invalid, it is the responsibility of this method to add any errors appropriate to the object's error collection.
-
validate
-
Validate the object provided. If the object is invalid, it is the responsibility of this method to add any errors appropriate to the object's error collection.
-
validate
-
Validate the object provided. If the object is invalid, it is the responsibility of this method to add any errors appropriate to the object's error collection.
-
validate
-
Validate the object provided. If the object is invalid, it is the responsibility of this method to add any errors appropriate to the object's error collection.
-
validate
-
Validate the object provided. If the object is invalid, it is the responsibility of this method to add any errors appropriate to the object's error collection.
-
validates_confirmation_of
-
Add one or more validations for fields which have a confirmation field that must contain an identical value.
-
validates_exclusion_of
-
Add a validation for a field that is allowed to have any value not in a given list.
-
validates_format_of
-
Add a validation for the format of a field. The format is validated using a perl-compatible regular expression.
-
validates_inclusion_of
-
Add a validation for a field that is only allowed to have a value in a given list.
-
validates_length_of
-
Add one or more validations for fields lengths. Length refers to the number of characters in the field (string length).
-
validates_numericality_of
-
Add a validation for a field that must be numeric.
-
validates_presence_of
-
Add one or more validations for fields which may not be empty.
-
validates_uniqueness_of
-
Add one or more validations for fields which must be unique accross records.
-
validate_find_options
-
Validates the options provided to a find method
-
validate_on_create
-
Perform validation checks applicable only before saving a new record. Use errors()->add($attribute, $message) to record any errors.
-
validate_on_update
-
Perform validation checks applicable only before saving an existing record. Use errors()->add($attribute, $message) to record any errors.
-
validate_options
-
Validates a provided set of options against an allowed set
-
validation_name_to_type
-
Convert a string name of a validation type to the class constant
-
values_for_insert
-
Return the list of all attribute values prepared for use in an insert statement