Scaffolding Class Reference

List of all members.

Public Member Functions

 Scaffolding ($db_table)
 add ()
 insert ()
 view ()
 edit ()
 update ()
 delete ()
 do_delete ()

Public Attributes

 $CI
 $current_table
 $base_url = ''
 $lang = array()


Member Function Documentation

Scaffolding::add (  ) 

"Add" Page

Shows a form representing the currently selected DB so that data can be inserted

public

Returns:
string the HTML "add" page

Scaffolding::delete (  ) 

Delete Confirmation

public

Returns:
string the HTML "delete confirm" page

Scaffolding::do_delete (  ) 

Delete

public

Returns:
void redirects to the view page

Scaffolding::edit (  ) 

"Edit" Page

Shows a form representing the currently selected DB so that data can be edited

public

Returns:
string the HTML "edit" page

Scaffolding::insert (  ) 

Insert the data

public

Returns:
void redirects to the view page

Scaffolding::Scaffolding ( db_table  ) 

Set the current table name This is done when initializing scaffolding: $this->load->scaffolding('table_name')

Set the path to the "view" files We'll manually override the "view" path so that the load->view function knows where to look.

Scaffolding::update (  ) 

Update

public

Returns:
void redirects to the view page

Scaffolding::view (  ) 

"View" Page

Shows a table containing the data in the currently selected DB

public

Returns:
string the HTML "view" page


Member Data Documentation

Scaffolding::$base_url = ''

Scaffolding::$CI

Scaffolding::$current_table

Scaffolding::$lang = array()


The documentation for this class was generated from the following file:

Generated on Sun Nov 16 16:09:19 2008 for CodeIgniter by  doxygen 1.5.7.1