flatpage/flatpage.controller.php

Show: inherited
Table of Contents

The flatpage controller

Author
abidibo  
Copyright
2011 Otto srl  
License
MIT license  
Package
jeff-flatpage  
Version
1.21  

\flatpageController

Package: jeff-flatpage

The flatpage controller class

Inherits from jeff controller class.
This class is the flatpage module interface, defines all public methods that may be accessed through url.

Parent(s)
\controller
Author
abidibo  
Copyright
2011 Otto srl  
License
MIT license  
Uses
\controller  
Version
1.21  

Methods

methodpublic__construct( \registry $registry ) : void

flatpage controller constructor

Parameters
Name Type Description
$registry \registry
Details
Access
public  
methodpublicmanage( ) : string

Method called to display the flatpage backoffice interface

Manages the pages list, allows insertion of new pages, modification and deletion of existing pages.

Returns
Type Description
string
Details
Access
public  
methodprivatepage403( ) : string

Return the 403 template

Returns
Type Description
string
Details
Access
private  
methodprivatepage404( ) : string

Return the 404 template

Returns
Type Description
string
Details
Access
private  
methodprivateparseDescription( \array[int]string $matches ) : string

Page text parser

Parse page text and replace custom images and video tags with html images and youtube iframes.

Parameters
Name Type Description
$matches \array[int]string
Returns
Type Description
string
Details
Access
private  
methodpublicview( ) : string

Method called to display a page content

Read the requested slug from $_GET variables, try to get the associated page contents from database.
Display page contents if found and not forbidden.
Display a 403 template if contents are forbidden to requesting user.
Display a 404 template if contents are not found.

Returns
Type Description
string
Details
Access
public  
Documentation was generated by DocBlox 0.15.1.