Quinoa
[ class tree: Quinoa ] [ index: Quinoa ] [ all elements ]

Class: Quinoa_Page

Source Location: /Quinoa/Page.php

Class Overview


Quinoa Page class.


Author(s):

Version:

  • 0.0.21 2007-09-23

Copyright:

  • 2007

Variables

Methods



Class Details

[line 51]
Quinoa Page class.

Quinoa Page class. Quinoa_Page class is called every time a page is loaded. It is at the center of the data flow. It implements Quinoa central processing. Given the context variable it looks for a context file for it, failing to find one it tries a presentation class for it, failing that it looks for a template to fetch. Quinoa_Page also treats the context file so that every fragment is put together in a final structure. PHP version 5.x Copyright (c) 2007, Freeconcept, Lda. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. * Neither the name of the Freeconcept, Lda. nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.




Tags:

since:  File available since Release 0.0.1
link:  http://www.quinoaframework.org
version:  0.0.21 2007-09-23
copyright:  2007
author:  Marcello Duarte <marcello.duarte@gmail.com>


[ Top ]


Class Variables

$_context =

[line 66]

The context represented in Quinoa with the request var 'do'

The context represented in Quinoa with the request var 'do'




Tags:

access:  protected

Type:   string


[ Top ]

$_fragments =

[line 80]

Array of fragments of the page

Array of fragments of the page




Tags:

access:  protected

Type:   array


[ Top ]

$_smarty =

[line 73]

quinoa's abstraction of a Smarty object

quinoa's abstraction of a Smarty object




Tags:

access:  protected

Type:   Quinoa_Smarty


[ Top ]

$_structure =

[line 59]

The template that holds all fragments of each of the context file blocks

The template that holds all fragments of each of the context file blocks




Tags:

access:  protected

Type:   string


[ Top ]



Class Methods


constructor __construct [line 86]

Quinoa_Page __construct( )

Constructs the Quinoa_Page object

Constructs the Quinoa_Page object




Tags:

access:  public


[ Top ]

method draw [line 309]

void draw( )

Prints the result of the fetch method

Prints the result of the fetch method




Tags:

access:  public


[ Top ]

method fetch [line 287]

string fetch( )

Assigns the html source to each of the fragment variable of the structure

Assigns the html source to each of the fragment variable of the structure and fetches them into a string that is returned




Tags:

access:  public


[ Top ]


Documentation generated on Wed, 03 Oct 2007 14:25:45 +0100 by phpDocumentor 1.3.0RC3