SourceForge.net LogoPHPGallue
[ class tree: gallue ] [ index: gallue ] [ all elements ]

Class: GALSeries_frontend

Source Location: /gallue/GALSeries_frontend.inc.php

Class Overview

GALItem_frontend
   |
   --GALContainer_frontend
      |
      --GALSeries_frontend

Generates XHTML markup to display/create/edit instances of GALSeries.


Author(s):

Methods


Inherited Variables

Inherited Methods

Class: GALContainer_frontend

GALContainer_frontend::action()
This method executes one click actions.
GALContainer_frontend::contentOrder()
A GALOrder that determines the order of the items inside this container.
GALContainer_frontend::contentSelection()
A GALExpression that determines the items inside this container that are displayed.
GALContainer_frontend::countContentSelection()
GALContainer_frontend::fastMenu()
Displays a menu with elements of the current selection.
GALContainer_frontend::getMultiFrontend()
GALContainer_frontend::layoutMenu()
Displays a menu with all layouts suitable for this class.
GALContainer_frontend::navbar()
GALContainer_frontend::registerVars()
GALContainer_frontend::show()
Generates the XHTML markup for the textfield.

Class: GALItem_frontend

GALItem_frontend::__construct()
GALItem_frontend::action()
Executes an one-click action.
GALItem_frontend::appendEdit()
GALItem_frontend::appendInput_comment()
GALItem_frontend::appendInput_permission()
GALItem_frontend::appendInput_sortHint()
GALItem_frontend::appendInput_tag()
GALItem_frontend::appendInput_title()
GALItem_frontend::button()
GALItem_frontend::calculateNavbar()
Calculates offsets for a logarithmic navigation bar.
GALItem_frontend::countSelection()
GALItem_frontend::create()
Displays a form for creating a new item.
GALItem_frontend::defaultEditFields()
GALItem_frontend::edit()
Evaluates the settings in the global GALGlobalvars object and determines which method to call with wich parameters.
GALItem_frontend::editFields()
GALItem_frontend::editSingle()
Displays a form to edit a single item.
GALItem_frontend::evalEdit()
GALItem_frontend::evalEdit_permission()
GALItem_frontend::execute()
Evaluates the transmitted POST data.
GALItem_frontend::fastMenu()
Evaluates the settings in the global GALGlobalvars object and displays a list of links for fast switching of the current item, e.g. for editing.
GALItem_frontend::getContainer()
GALItem_frontend::getContainerFrontend()
GALItem_frontend::getMultiFrontend()
GALItem_frontend::getPlural()
GALItem_frontend::getSingular()
GALItem_frontend::getTable()
GALItem_frontend::getTarget()
Returns the string that is used to identify the target class.
GALItem_frontend::layoutMenu()
Evaluates the settings in the global GALGlobalvars object and displays a list of links with available layout variants.
GALItem_frontend::navbar()
Displays a navigation bar.
GALItem_frontend::navdiv()
GALItem_frontend::order()
Builds a GALOrder object.
GALItem_frontend::permission2str()
GALItem_frontend::registerVars()
Registers the necessary GET parameters.
GALItem_frontend::selection()
Builds a GALExpression.
GALItem_frontend::show()
Evaluates the settings in the global GALGlobalvars object and determines which method to call with wich parameters.
GALItem_frontend::str2permission()

Class Details

[line 37]
Generates XHTML markup to display/create/edit instances of GALSeries.

This class implements the abstract methods in GALItem_frontend for series.




Tags:

todo:  write some code for slide show. I guess I won't use the page skeleton, but write a separate page.


[ Top ]


Class Methods


method contentOrder [line 304]

void contentOrder( [ $target = 'image'])



Overrides GALContainer_frontend::contentOrder() (A GALOrder that determines the order of the items inside this container.)

Parameters:

   $target  

[ Top ]

method contentSelection [line 279]

void contentSelection( [ $target = 'image'])



Overrides GALContainer_frontend::contentSelection() (A GALExpression that determines the items inside this container that are displayed.)

Parameters:

   $target  

[ Top ]

method countContentSelection [line 293]

void countContentSelection( $row, [ $target = 'image'])



Overrides GALContainer_frontend::countContentSelection() (parent method not documented)

Parameters:

GALTableRow   $row  
   $target  

[ Top ]

method create [line 44]

DOMElement create( $node)

Appends a form to create series to the given DOMNode.



Tags:

return:  The <form> tag.


Overrides GALItem_frontend::create() (Displays a form for creating a new item.)

Parameters:

DOMNode   $node   The node the form is appended to.

[ Top ]

method edit [line 81]

DOMNode edit( $node)

Generates the XHTML markup for the textfield.

This method is called in GALView::build() with the textfield as argument. By evaluating the GET parameters if the GALGlobalVars object it decides which series item(s) to load and delegates the displaying to the appropiate methods.




Tags:

return:  A tag or text element. It depends on what is displayed.


Overrides GALItem_frontend::edit() (Evaluates the settings in the global GALGlobalvars object and determines which method to call with wich parameters.)

Parameters:

DOMNode   $node   The node the output is appended to.

[ Top ]

method editSingle [line 104]

void editSingle( $series, $node)

Display a form to edit a series item.

Not implemented for series items because of support for multiple languages.




Tags:

see:  GALItem_frontend::editMultiple()


Overrides GALItem_frontend::editSingle() (Displays a form to edit a single item.)

Parameters:

GALTableRow   $series  
DOMNode   $node  

[ Top ]

method execute [line 157]

void execute( array &$postvars)

Evaluates POST parameters.

This method evaluates the given POST parameters which are sent by forms created in create(), editMultiple or editSingle.




Tags:

todo:  Implement restrictions/checks on the uploaded files (MIME, file extension, file size, series dimensions).


Overrides GALItem_frontend::execute() (Evaluates the transmitted POST data.)

Parameters:

array   &$postvars   Reference to an array that contains the POST data.

[ Top ]

method getMultiFrontend [line 319]

void getMultiFrontend( [ $items = false])



Overrides GALContainer_frontend::getMultiFrontend() (parent method not documented)

Parameters:

   $items  

[ Top ]

method getPlural [line 317]

void getPlural( )



Overrides GALItem_frontend::getPlural() (parent method not documented)

[ Top ]

method getSingular [line 318]

void getSingular( )



Overrides GALItem_frontend::getSingular() (parent method not documented)

[ Top ]

method getTable [line 314]

void getTable( )



Overrides GALItem_frontend::getTable() (parent method not documented)

[ Top ]

method getTarget [line 311]

void getTarget( )



Overrides GALItem_frontend::getTarget() (Returns the string that is used to identify the target class.)

[ Top ]

method order [line 259]

GALOrder order( )

Builds an instance of GALOrder.

The returned GALOrder represents the ordering that is used to display series items. In many methods it is important that offsets are the same for an item in multiple queries. In the future this method will evalute GET parameters.




Overrides GALItem_frontend::order() (Builds a GALOrder object.)

[ Top ]

method selectAll [line 322]

void selectAll( $container)



Parameters:

GALSeries   $container  

[ Top ]

method selection [line 270]

GALExpression selection( )

Builds an instance of GALExpression.

The returned GALExpression represents a SQL expression that is TRUE for items that are displayed. In many methods it is important that offsets are the same for an item in multiple queries. In the future this method will evalute GET parameters.




Overrides GALItem_frontend::selection() (Builds a GALExpression.)

[ Top ]


Documentation generated on Wed, 16 Aug 2006 15:36:02 +0200 by phpDocumentor 1.3.0RC6