phpDocumentor pivotx
[ class tree: pivotx ] [ index: pivotx ] [ all elements ]

Class: oops_tableedit

Source Location: /modules/module_oops.php

Class oops_tableedit

Property Summary
mixed   $act_callback  
mixed   $base_href  
mixed   $columns  
mixed   $default_order  
mixed   $instance  
mixed   $name  
mixed   $non_editable_columns  
mixed   $page_size  
mixed   $searchable_columns  
mixed   $sortable_columns  
mixed   $type  

[ Top ]
Method Summary
oops_tableedit   __construct()   Tableedit constructor
void   create_link()   Create an internal link
string   output_table()   Output the table
void   set_act_callback()   Set the action callback
void   set_base_href()   Override the base href
void   set_columns()   Set-up the columns for this table-editor
void   set_default_order()   Set the default order in the table edit
void   set_non_editable()  
void   set_searchable()  
void   set_sortable()  
string   __output_record()   Output a single record
string   __output_table()   Internal call for outputting the table
void   __save_record()   Save a record

[ Top ]
Properties
mixed   $act_callback = false [line 887]
API Tags:
Access:  protected


[ Top ]
mixed   $base_href = '?page=configuration' [line 891]
API Tags:
Access:  protected


[ Top ]
mixed   $columns = false [line 884]
API Tags:
Access:  protected


[ Top ]
mixed   $default_order = false [line 886]
API Tags:
Access:  protected


[ Top ]
mixed   $instance = false [line 883]
API Tags:
Access:  protected


[ Top ]
mixed   $name = false [line 881]
API Tags:
Access:  protected


[ Top ]
mixed   $non_editable_columns = false [line 888]
API Tags:
Access:  protected


[ Top ]
mixed   $page_size = 20 [line 885]
API Tags:
Access:  protected


[ Top ]
mixed   $searchable_columns = false [line 890]
API Tags:
Access:  protected


[ Top ]
mixed   $sortable_columns = false [line 889]
API Tags:
Access:  protected


[ Top ]
mixed   $type = false [line 882]
API Tags:
Access:  protected


[ Top ]
Methods
Constructor __construct  [line 898]

  oops_tableedit __construct( string $name  )

Tableedit constructor

Parameters:
string   $name:  type name for the table editing

API Tags:
Access:  public


[ Top ]
create_link  [line 916]

  void create_link( $_args, [ $override = false], $section  )

Create an internal link

Parameters:
   $_args: 
   $override: 
   $section: 

API Tags:
Access:  protected


[ Top ]
output_table  [line 1667]

  string output_table( [string $section = false], [ $ajax = false]  )

Output the table

Parameters:
string   $section:  section to add to the links
   $ajax: 

API Tags:
Return:  output html
Access:  public


[ Top ]
set_act_callback  [line 970]

  void set_act_callback( mixed $callback  )

Set the action callback

Parameters:
mixed   $callback:  callback to call

API Tags:
Access:  public


[ Top ]
set_base_href  [line 909]

  void set_base_href( $href  )

Override the base href

Parameters:
   $href: 

API Tags:
Access:  public


[ Top ]
set_columns  [line 940]

  void set_columns( array $columns  )

Set-up the columns for this table-editor

Parameters:
array   $columns:  set the columns for this instance

API Tags:
Access:  public


[ Top ]
set_default_order  [line 961]

  void set_default_order( string $str  )

Set the default order in the table edit

Parameters:
string   $str:  fieldname to order by

API Tags:
Access:  public


[ Top ]
set_non_editable  [line 944]

  void set_non_editable( $columns  )

Parameters:
   $columns: 

API Tags:
Access:  public


[ Top ]
set_searchable  [line 952]

  void set_searchable( $columns  )

Parameters:
   $columns: 

API Tags:
Access:  public


[ Top ]
set_sortable  [line 948]

  void set_sortable( $columns  )

Parameters:
   $columns: 

API Tags:
Access:  public


[ Top ]
__output_record  [line 1356]

  string __output_record( integer $page, string $order, string $section, integer $uid  )

Output a single record

Parameters:
integer   $page:  current page number
string   $order:  order from the table
integer   $uid:  id of the record to output
string   $section:  Ssection section to add to links

API Tags:
Return:  html of the record
Access:  public


[ Top ]
__output_table  [line 982]

  string __output_table( [integer $page = false], [string $order = false], [ $search_f = false], [ $search_q = false], [string $section = '9']  )

Internal call for outputting the table

Parameters:
integer   $page:  page-number
string   $order:  sort order of the table
string   $section:  section to add to links
   $search_f: 
   $search_q: 

API Tags:
Return:  html output
Access:  protected


[ Top ]
__save_record  [line 1255]

  void __save_record( )

Save a record


API Tags:
Access:  protected


[ Top ]

Documentation generated on Thu, 17 May 2012 01:07:21 +0200 by phpDocumentor 1.4.3