All Data Structures Functions Variables Pages
Public Member Functions | Static Public Member Functions | Static Public Attributes | Protected Member Functions
PageView Class Reference
Inheritance diagram for PageView:
View ZurmoPageView AccessFailurePageView ErrorPageView InstallAccessFailurePageView InstallPageView LoginPageView MarketingListsExternalActionsPageView MarketingListsManageSubscriptionsPageView ModelNotFoundPageView UnsupportedBrowserPageView ViewIsMissingRequiredAttributesPageView ZurmoDefaultPageView ZurmoExternalDefaultPageView

Public Member Functions

 __construct (View $containedView)
 render ()
 appendContentBeforeXHtmlBodyEndAndXHtmlEnd ($content, $additionalContent)
- Public Member Functions inherited from View
 isUniqueToAPage ()
 render ()
 setCssClasses (array $classes)
 getCssClasses ()
 getTitle ()
 getPostTruncatedTitleContent ()

Static Public Member Functions

static validate ($content)
static schemeValidationErrorHandler ($errno, $errstr, $errfile, $errline)
static makeNonHtmlDuplicateCountAndQueryContent ()
static registerAllPagesScriptFiles ()
static getScriptFilesThatLoadOnAllPages ()

Static Public Attributes

static $foundErrors = false
static $xhtmlValidationErrors = array()

Protected Member Functions

 renderContent ()
 renderXHtmlStart ()
 renderXHtmlBeforeBodyEnd ()
 renderXHtmlHead ()
 getSubtitle ()
 getStyles ()
 renderXHtmlBodyStart ()
 renderXHtmlBodyEnd ()
 renderXHtmlEnd ()
- Protected Member Functions inherited from View
 resolveDefaultClasses ()
 renderContainerWrapperId ()
 getContainerWrapperTag ()
 getId ()
 renderContent ()
 getViewStyle ()
 renderTitleContent ()
 resolveCustomViewTemplateFileName ($theme, $view)

Additional Inherited Members

- Protected Attributes inherited from View
 $cssClasses = array()
 $makeDefaultClassesFromClassHeirarchy = true

Detailed Description

The view that forms the basis of every page. It renders the XHtml html, header, body, etc, and renders its contained view within the body. After rending the page and before returning it it validates the XHtml against the XHtml schema and renders directly to the browser any errors it finds before returning the rendered page to the caller.

Definition at line 45 of file PageView.php.

Constructor & Destructor Documentation

__construct ( View  $containedView)

Constructs the page view specifying the view that it will contain.

Definition at line 60 of file PageView.php.

Member Function Documentation

static validate (   $content)

Validates the page content against the XHTML schema and writes the problems directly to output in bright red on yellow. Is public for access by unit tests.

Definition at line 107 of file PageView.php.

static schemeValidationErrorHandler (   $errno,

Error handler that writes the errors directly to output in bright red on yellow.

Definition at line 144 of file PageView.php.

renderXHtmlStart ( )

Renders the xml declaration, doctype, and the html start tag.

Definition at line 166 of file PageView.php.

renderXHtmlBeforeBodyEnd ( )

Renders the XHtml before the ending body tag

Definition at line 202 of file PageView.php.

renderXHtmlHead ( )

Renders the XHtml header element containing the title and the default stylesheets screen, print, and ie. Additional stylesheets can be specified by overriding getStyles() in the extending class.

Definition at line 213 of file PageView.php.

getSubtitle ( )

Returns the application subtitle. Can be overridden in the extending class.

Definition at line 317 of file PageView.php.

getStyles ( )

Returns an empty array of styles, being the names of stylesheets without a css extention. Can be overridden in the extending class to specify stylesheets additional to those rendered by default.

See Also

Definition at line 328 of file PageView.php.

renderXHtmlBodyStart ( )

Renders the body start tag.

Definition at line 336 of file PageView.php.

renderXHtmlBodyEnd ( )

Renders the body end tag.

Definition at line 354 of file PageView.php.

renderXHtmlEnd ( )

Renders the html end tag.

Definition at line 362 of file PageView.php.

static registerAllPagesScriptFiles ( )

Register into clientScript->scriptFiles any scripts that should load on all pages

See Also

Definition at line 382 of file PageView.php.

static getScriptFilesThatLoadOnAllPages ( )
array of script files that are loaded on all pages
See Also

Definition at line 392 of file PageView.php.

appendContentBeforeXHtmlBodyEndAndXHtmlEnd (   $content,

Add additional html conent before html body end("</body>") tag and html end tag ("</html>")


Definition at line 412 of file PageView.php.

Field Documentation

$foundErrors = false

Flags that the error handler was called.

Definition at line 50 of file PageView.php.

The documentation for this class was generated from the following file:
Generated on Mon May 25 2020 07:10:56