Class AutoCRUD_ActiveRecord

Description

AutoCRUD ActiveRecord Class

This class is used to create a new ActiveRecord, and should be created like this:

  1. $record = new AutoCRUD_ActiveRecord (&$crud->table);

Located in /activerecord.inc.php (line 21)


	
			
Method Summary
AutoCRUD_ActiveRecord AutoCRUD_ActiveRecord (AutoCRUD_CRUD &$crud_obj)
mixed delete ()
bool isLoaded ()
mixed load (mixed $id)
bool reset ([mixed $default = null])
mixed save ()
Methods
Constructor AutoCRUD_ActiveRecord (line 40)

Use the constructor to pass the right CRUD object

  • access: public
AutoCRUD_ActiveRecord AutoCRUD_ActiveRecord (AutoCRUD_CRUD &$crud_obj)
  • AutoCRUD_CRUD $crud_obj: the CRUD object of the table you want to use
delete (line 124)

Used to delete a record

  • return: true on success or error object on failure
  • access: public
mixed delete ()
isLoaded (line 54)

Used to check whether a record has been loaded or not

  • access: public
bool isLoaded ()
load (line 65)

Used to load an existing record from the table

  • return: returns true on success or an error object on failure
  • access: public
mixed load (mixed $id)
  • mixed $id: the record ID of the record you want to load
reset (line 150)

Used to reset all the values of the record when you've made any changes

  • return: always returns true
  • access: public
bool reset ([mixed $default = null])
save (line 92)

Used to save the record (insert or update)

  • return: true on success or error object on failure
  • access: public
mixed save ()

Documentation generated on Wed, 14 Jun 2006 14:08:41 +0200 by phpDocumentor 1.3.0RC4