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

Class: GenericElement

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

Class GenericElement

Class Overview

User Element

Generic Element of users with specific permissions.

Located in /qp_inc/generic/model/_genericelement.class.php [line 44]

DataObject
   |
   --GenericElement
Author(s):
Information Tags:
Version:  beta

Properties

Methods

[ Top ]
Descendants
Child Class Description
GenericCategory GenericCategory Class
GenericOrdered User property;

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

Inherited From DataObject

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

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
string   $name   Name of Generic Element

[ Top ]
Method Summary
GenericElement   GenericElement()   Constructor
void   disp_form()   TODO
string   get_name()   Template function: return name of item
boolean   load_from_Request()   Load data from Request form fields.

[ Top ]
Properties
string   $name [line 52]

Name of Generic Element

API Tags:
Access:  protected


[ Top ]
Methods
Constructor GenericElement  [line 63]

  GenericElement GenericElement( string $tablename, [string $prefix = ''], [string $dbIDname = 'ID'], [object DB $db_row = NULL]  )

Constructor

Parameters:
string   $tablename:  Name of table in database
string   $prefix:  Prefix of fields in the table
string   $dbIDname:  Name of the ID field (including prefix)
object DB   $db_row:  row


[ Top ]
disp_form  [line 100]

  void disp_form( )

TODO



[ Top ]
get_name  [line 145]

  string get_name( [string $format = 'htmlbody']  )

Template function: return name of item

Parameters:
string   $format:  Output format, see format_to_output()


[ Top ]
load_from_Request  [line 85]

  boolean load_from_Request( )

Load data from Request form fields.


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


[ Top ]