Class: Chapter
Source Location: /blogs/inc/chapters/model/_chapter.class.php
Class Chapter
Class Overview
|
Chapter Class Located in /blogs/inc/chapters/model/_chapter.class.php [line 37] DataObject | --GenericElement | --GenericCategory | --ChapterAuthor(s):
|
[ Top ]
Inherited Properties, Constants, and Methods
| Inherited Properties | Inherited Methods | Inherited Constants |
|---|---|---|
|
Inherited From GenericCategory Inherited From GenericElement Inherited From DataObject |
Inherited From GenericCategory
Inherited From GenericElement
Inherited From DataObject
|
[ Top ]
Property Summary
| Blog | $Blog | The Blog of the Item (lazy filled, use get_Blog() to access it. |
| integer | $blog_ID | |
| mixed | $description | |
| mixed | $order | |
| Chapter | $parent_Chapter | Lazy filled |
| mixed | $urlname |
[ Top ]
Method Summary
| Chapter | Chapter() | Constructor |
| boolean | dbinsert() | Insert object into DB based on previously recorded changes. |
| boolean | dbupdate() | Update the DB based on previously recorded changes |
| Blog | &get_Blog() | Get the Blog object for the Chapter. |
| void | &get_parent_Chapter() | |
| void | get_permanent_url() | Generate the URL to access the category. |
| void | get_url_path() | Get URL path (made of URL names) back to the root |
| void | load_Blog() | Load the Blog object for the Chapter, without returning it. |
| boolean | load_from_request() | Load data from Request form fields. |
[ Top ]
Properties
Methods
Constructor Chapter [line 66]
|
Constructor
Parameters:| table | $db_row: | Database row |
| integer|NULL | $subset_ID: | subset to use for new object |
[ Top ]
dbinsert [line 264]
|
Insert object into DB based on previously recorded changes.
API Tags:
| Return: | true on success |
Redefinition of:
- DataObject::dbinsert()
- Insert object into DB based on previously recorded changes.
[ Top ]
dbupdate [line 289]
|
Update the DB based on previously recorded changes
API Tags:
| Return: | true on success |
Redefinition of:
- DataObject::dbupdate()
- Update the DB based on previously recorded changes
[ Top ]
get_permanent_url [line 162]
|
Generate the URL to access the category.
Parameters:| string|NULL | $link_type: | 'param_num', 'subchap', 'chapters' |
| string|NULL | $blogurl: | url to use |
| integer | $paged: | category page to link to, default:1 |
| integer|NULL | $chapter_posts_per_page: | number of posts per page (used for param_num only) |
| string | $glue: | glue between url params |
[ Top ]
get_url_path [line 139]
|
Get URL path (made of URL names) back to the root
[ Top ]
load_Blog [line 249]
|
Load the Blog object for the Chapter, without returning it.
[ Top ]
load_from_request [line 90]
|
Load data from Request form fields.
API Tags:
| Return: | true if loaded data seems valid. |
Redefinition of:
- GenericCategory::load_from_request()
- Load data from Request form fields.
[ Top ]
