Account Suspended
Account Suspended
This Account has been suspended.
Contact your hosting provider for more information.
 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()
 
 $title
 
 $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)
static

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,
  $errstr,
  $errfile,
  $errline 
)
static

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

Definition at line 144 of file PageView.php.

renderXHtmlStart ( )
protected

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

Definition at line 166 of file PageView.php.

renderXHtmlBeforeBodyEnd ( )
protected

Renders the XHtml before the ending body tag

Definition at line 202 of file PageView.php.

renderXHtmlHead ( )
protected

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 ( )
protected

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

Definition at line 317 of file PageView.php.

getStyles ( )
protected

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
renderXHtmlHead()

Definition at line 328 of file PageView.php.

renderXHtmlBodyStart ( )
protected

Renders the body start tag.

Definition at line 336 of file PageView.php.

renderXHtmlBodyEnd ( )
protected

Renders the body end tag.

Definition at line 354 of file PageView.php.

renderXHtmlEnd ( )
protected

Renders the html end tag.

Definition at line 362 of file PageView.php.

static registerAllPagesScriptFiles ( )
static

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

See Also
getScriptFilesThatLoadOnAllPages

Definition at line 382 of file PageView.php.

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

Definition at line 392 of file PageView.php.

appendContentBeforeXHtmlBodyEndAndXHtmlEnd (   $content,
  $additionalContent 
)

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

Parameters
string$content
string$additionalContent
Returns
string

Definition at line 412 of file PageView.php.

Field Documentation

$foundErrors = false
static

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 Sat Oct 31 2020 07:10:51
Account Suspended
Account Suspended
This Account has been suspended.
Contact your hosting provider for more information.