Class: GenericCategory
Source Location: /blogs/inc/generic/model/_genericcategory.class.php
Class GenericCategory
Class Overview
|
GenericCategory Class Located in /blogs/inc/generic/model/_genericcategory.class.php [line 44] DataObject | --GenericElement | --GenericCategoryAuthor(s):
|
[ Top ]
Inherited Properties, Constants, and Methods
| Inherited Properties | Inherited Methods | Inherited Constants |
|---|---|---|
|
Inherited From GenericElement Inherited From DataObject |
Inherited From GenericElement
Inherited From DataObject
|
[ 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
Methods
Constructor GenericCategory [line 65]
|
Constructor
Parameters:| string | $tablename: | Table name |
| string | $prefix: | |
| string | $dbIDname: | DB ID name |
| array|NULL | $db_row: | Database row |
[ Top ]
add_children [line 128]
|
Add a child
Parameters:| GenericCategory | &$GenericCategory: |
Information Tags:
| Todo: | dh> "children" is plural..! |
[ Top ]
load_from_request [line 87]
|
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:
- Chapter::load_from_request() : Load data from Request form fields.
[ Top ]
set [line 108]
|
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 ]
