Abstract Class ActiveRecord_Association

Description

ActiveRecord_Association is the base class from which all association implementations inherit.

  • abstract:

Located in /activerecord/lib/ActiveRecord/Association.php (line 10)


	
			
Direct descendents
Class Description
 class ActiveRecord_Association_BelongsTo Implements the belongs_to association
 class ActiveRecord_Association_HasMany Implements the has_many association
 class ActiveRecord_Association_HasOne Implements the has_one association
Variable Summary
 mixed $class_name
 mixed $foreign_key
 mixed $name
Method Summary
 string class_name ()
 void do_include ( &$results, array $results)
 string foreign_key ()
 string name ()
Variables
mixed $class_name (line 12)
  • access: protected
mixed $foreign_key (line 13)
  • access: protected
mixed $name (line 11)
  • access: protected
Methods
class_name (line 25)

Return the class name for this association

  • access: public
string class_name ()
do_include (line 38)

Implements the 'include' behavior for a find operation

  • abstract:
  • access: public
void do_include ( &$results, array $results)
  • array $results: The result set to process
  • &$results

Redefined in descendants as:
foreign_key (line 31)

Return the foreign key name for this association

  • access: public
string foreign_key ()
name (line 19)

Return the name of this association

  • access: public
string name ()

Documentation generated on Wed, 25 Apr 2012 09:46:39 -0700 by phpDocumentor 1.4.3