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

Class: GenericCategory

Source Location: /qp_inc/generic/model/_genericcategory.class.php

Class GenericCategory

Descendants
Child Class Description
Chapter Chapter Class

[ Top ]
Inherited Properties, Constants, and Methods
Inherited Properties Inherited Methods Inherited Constants

Inherited From GenericElement

GenericElement::$name

Inherited From DataObject

DataObject::$delete_cascades
DataObject::$delete_restrictions
DataObject::$ID

Inherited From GenericElement

GenericElement::GenericElement()
Constructor
GenericElement::disp_form()
TODO
GenericElement::get_name()
Template function: return name of item
GenericElement::load_from_Request()
Load data from Request form fields.

Inherited From DataObject

DataObject::DataObject()
Constructor
DataObject::check_delete()
Check relations for restrictions before deleting
DataObject::check_relations()
Check relations for restrictions or cascades
DataObject::confirm_delete()
Displays form to confirm deletion of this object
DataObject::dbchange()
Records a change that will need to be updated in the db
DataObject::dbdelete()
Delete object from DB.
DataObject::dbinsert()
Insert object into DB based on previously recorded changes.
DataObject::dbsave()
Inserts or Updates depending on object state.
DataObject::dbupdate()
Update the DB based on previously recorded changes
DataObject::dget()
Get a ready-to-display member param by its name
DataObject::disp()
Display a member param by its name
DataObject::get()
Get a member param by its name
DataObject::history_info_icon()
Create icon with dataobject history
DataObject::ID()
Template function: Displays object ID.
DataObject::set()
Set param value
DataObject::set_from_Request()
Set a parameter from a Request form value.
DataObject::set_param()
Set param value.

[ Top ]
Property Summary
mixed   $children   Category children list
mixed   $parent_ID  
mixed   $parent_name   To display parent name in form

[ Top ]
Method Summary
GenericCategory   GenericCategory()   Constructor
void   add_children()   Add a child
boolean   load_from_request()   Load data from Request form fields.
void   set()   Set param value

[ Top ]
Properties
mixed   $children = array() [line 54]

Category children list


[ Top ]
mixed   $parent_ID [line 45]

[ Top ]
mixed   $parent_name [line 49]

To display parent name in form


[ Top ]
Methods
Constructor GenericCategory  [line 64]

  GenericCategory GenericCategory( string $tablename, [string $prefix = ''], [string $dbIDname = 'ID'], [array|NULL $db_row = NULL]  )

Constructor

Parameters:
string   $tablename:  Table name
string   $prefix: 
string   $dbIDname:  DB ID name
array|NULL   $db_row:  Database row


[ Top ]
add_children  [line 129]

  void add_children( GenericCategory &$GenericCategory  )

Add a child

Parameters:
GenericCategory   &$GenericCategory: 

Information Tags:
Todo:  dh> "children" is plural..!

[ Top ]
load_from_request  [line 86]

  boolean load_from_request( )

Load data from Request form fields.


API Tags:
Return:  true if loaded data seems valid.

Information Tags:
Todo:  fp> check that we are not creating a loop!

Redefined in descendants as:

[ Top ]
set  [line 107]

  void set( string $parname, mixed $parvalue  )

Set param value

By default, all values will be considered strings

Parameters:
string   $parname:  parameter name
mixed   $parvalue:  parameter value


Redefinition of:
DataObject::set()
Set param value

[ Top ]