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

Class: GALImage_frontend

Source Location: /gallue/GALImage_frontend.inc.php

Class Overview

GALItem_frontend
   |
   --GALImage_frontend

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


Author(s):

Methods


Inherited Variables

Inherited Methods

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

This class implements the abstract methods in GALItem_frontend for images.




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 action [line 1036]

void action( string $action, int $id, $param1, $param2)

This method executes one click actions.

It performs actions like deleting items according to the GET parameters 'action' and 'id'.




Overrides GALItem_frontend::action() (Executes an one-click action.)

Parameters:

string   $action   This class supports 'delete'.
int   $id   A image ID.
   $param1  
   $param2  

[ Top ]

method appendInput__file [line 38]

void appendInput__file( $inputNode, $id, $width, $height, $presetItem)



Parameters:

DOMNode   $inputNode  
   $id  
   $width  
   $height  
   $presetItem  

[ Top ]

method appendInput__rawPermission [line 46]

void appendInput__rawPermission( $inputNode, $id, $width, $height, $presetItem)



Parameters:

DOMNode   $inputNode  
   $id  
   $width  
   $height  
   $presetItem  

[ Top ]

method create [line 331]

DOMElement create( $node)

Appends a form to create images 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 defaultEditFields [line 93]

void defaultEditFields( )



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

[ Top ]

method edit [line 447]

DOMNode edit( $node)

Generates the XHTML markup for the textfield.

This method is called in GALView::build() with the textfield as argument. It is called if the editTarget parameter is image.




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

void editSingle( $image, $node)

Display a form to edit an image.



Tags:

see:  GALItem_frontend::editMultiple()


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

Parameters:

GALTableRow   $image  
DOMNode   $node  

[ Top ]

method evalEdit__rawPermission [line 81]

void evalEdit__rawPermission( )



[ Top ]

method execute [line 724]

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, image dimensions).


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

Parameters:

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

[ Top ]

method fastMenu [line 516]

DOMElement fastMenu( $node)

Displays a menu with elements of the current selection.

This method appends a menu with links to GALImage objects that are close to the item viewed currently.




Tags:

return:  The <ul> tag or FALSE if empty selection.


Overrides 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.)

Parameters:

DOMNode   $node   The node the menu is appended to.

[ Top ]

method getMultiFrontend [line 1144]

void getMultiFrontend( [ $items = false])



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

Parameters:

   $items  

[ Top ]

method getPlural [line 1142]

void getPlural( )



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

[ Top ]

method getSingular [line 1143]

void getSingular( )



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

[ Top ]

method getTable [line 1139]

void getTable( )



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

[ Top ]

method getTarget [line 1136]

string getTarget( )

The target, i.e. 'image'.



Tags:

return:  'image'


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

[ Top ]

method layoutMenu [line 473]

DOMElement layoutMenu( $node)

Displays a menu with all layouts suitable for this class.

This method appends a list of all layouts that can be displayed by this class to the given DOMNode.




Tags:

return:  An <ul> tag or FALSE, if no layout available (improbable).


Overrides GALItem_frontend::layoutMenu() (Evaluates the settings in the global GALGlobalvars object and displays a list of links with available layout variants.)

[ Top ]

method membershipFields [line 96]

void membershipFields( $node, [ $presetItem = null], [ $withCheckbox = false], [ $addremove = false])



Parameters:

DOMNode   $node  
   $presetItem  
   $withCheckbox  
   $addremove  

[ Top ]

method navbar [line 1181]

void navbar( $count, $step, $node)



Overrides GALItem_frontend::navbar() (Displays a navigation bar.)

Parameters:

   $count  
   $step  
DOMNode   $node  

[ Top ]

method order [line 1112]

GALOrder order( )

Builds an instance of GALOrder.

The returned GALOrder represents the ordering that is used to display image 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 selection [line 1123]

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 ]

method show [line 382]

void show( $node)

Evaluates the settings in the global GALGlobalvars object and determines which method to call with wich parameters.

Called in GALView::build().




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

Parameters:

DOMNode   $node   the DOMNode the output is appended to.

[ Top ]


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