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

Class: GALCategory_frontend

Source Location: /gallue/GALCategory_frontend.inc.php

Class Overview

GALItem_frontend
   |
   --GALContainer_frontend
      |
      --GALCategory_frontend

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


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 GALCategory.

This class implements the abstract methods in GALItem_frontend for categories.




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 302]

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 277]

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 291]

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 categories 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 82]

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 category 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 106]

void editSingle( $category, $node)

Display a form to edit a category item.

Not implemented for category 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   $category  
DOMNode   $node  

[ Top ]

method execute [line 159]

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, category 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 317]

void getMultiFrontend( [ $items = false])



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

Parameters:

   $items  

[ Top ]

method getPlural [line 315]

void getPlural( )



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

[ Top ]

method getSingular [line 316]

void getSingular( )



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

[ Top ]

method getTable [line 312]

void getTable( )



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

[ Top ]

method getTarget [line 309]

void getTarget( )



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

[ Top ]

method order [line 261]

GALOrder order( )

Builds an instance of GALOrder.

The returned GALOrder represents the ordering that is used to display category 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 320]

void selectAll( $container)



Parameters:

GALCategory   $container  

[ Top ]

method selection [line 272]

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:35:44 +0200 by phpDocumentor 1.3.0RC6