Handles front-end processing for pages
This is the code documentation for the SproutCMS project
Search documentation |
class PageControllerHandles front-end processing for pages
Extending this class<?php
/**
* New class description goes here
*
* @author Your Name, 2026-09-15
**/
class NewClassName extends PageController {
/**
* Called by the two display functions.
* Does the actual display.
**/
private function displayPage (array $page, string $approval_code) {
// Method code goes here
}
/**
* Set the social meta data for a page
**/
private function setSocialMeta (array $page, string $content_html) {
// Method code goes here
}
/**
* Makes alterations to the main text content
**/
private function textTranslation ($page_id, $text) {
// Method code goes here
}
/**
* Return the environment which is provided to the widget display conditions logic
**/
private function widgetCondsEnvironment (array $page) {
// Method code goes here
}
/**
* Loads the widgets from the database for this page.
**/
private function loadWidgets (array $conds_env, array $page) {
// Method code goes here
}
/**
* Gets the additional CSS for a page, if it has any
**/
public function additionalCss ($page_id, $junk) {
// Method code goes here
}
/**
* Process the results of a search.
**/
public function frontEndSearch (array $item_id, $relevancy, $keywords) {
// Method code goes here
}
/**
* Action for reviewing a page - either approves or rejects the revision
**/
public function review ($rev_id) {
// Method code goes here
}
/**
* 404 error
**/
public function fourOhFour ($name) {
// Method code goes here
}
/**
* Displays a page.
* The page is specified by the page friendly name
**/
public function viewByName (string $name) {
// Method code goes here
}
/**
* Displays a page.
* The page is specified by the page id
**/
public function viewById (int $id) {
// Method code goes here
}
/**
* Rudimentary stats tracking
**/
private function trackVisit ($page_id) {
// Method code goes here
}
/**
* Displays a specific revision of a page.
**/
public function viewSpecificRev (int $page_id, int $rev_id, string $approval_code) {
// Method code goes here
}
}
?>
|
| Powered by Pelzini, version 0.9.0 |
Documentation is made available under the
GNU Free Documentation License 1.2. Generated: Tuesday, 15th September, 2026 at 10:26 am |
|