\NewsHolderPage
News page and controller.
NewsHolderPage
- Author: Simon 'Sphere'
Synopsis
class NewsHolderPage
extends Page
{
- // members
- private static string $description = 'HolderPage for newsitems';
- private static array $db = ;
- private static array $many_many = ;
- private static array $allowed_children = ;
- // methods
- public void requireDefaultRecords()
- private void migrateUp()
- private void migratePublish()
- private void migrateAuthors()
- private void migratePages()
- private void migrateOrphans()
- public ArrayList Children()
Hierarchy
Extends
- Page
Tasks
Line | Task |
---|---|
17+ | besides the general getters, the news-functions should be in the model StartGeneratedWithDataObjectAnnotator |
111+ | This needs a rewrite, could be done with less queries with an add Items to Page instead of the current situation. |
137+ | make this work as wished. As it's doing.... not so very much |
Members
private
- $allowed_children — array
- $db
- $description — string
- $many_many — array
Methods
private
- migrateAuthors() — For each author, add an AuthorHelper
- migrateOrphans() — Migrate orphanaged newsitems.
- migratePages() — This is to migrate existing newsitems to the new release with the new relational method.
- migratePublish() — Migrate the Publish feature form one of the first versions.
- migrateUp()
public
- Children() — Support for children.
- requireDefaultRecords() — Create a default NewsHolderPage. This prevents error500 because of a missing page.