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

Class: GALUser_frontend

Source Location: /gallue/GALUser_frontend.inc.php

Class Overview

GALItem_frontend
   |
   --GALUser_frontend

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


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

This class implements the abstract methods in GALItem_frontend for users.




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 appendEdit [line 402]

void appendEdit( $field, $checkboxNode, $titleNode, $inputNode, $showCheckbox, $width, $height, [ $presetItem = false])



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

Parameters:

   $field  
DOMNode   $checkboxNode  
DOMNode   $titleNode  
DOMNode   $inputNode  
   $showCheckbox  
   $width  
   $height  
   $presetItem  

[ Top ]

method appendInput_rank [line 459]

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



Parameters:

DOMNode   $inputNode  
   $id  
   $width  
   $height  
   $presetItem  

[ Top ]

method appendInput__oldpassword [line 504]

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



Parameters:

DOMNode   $inputNode  
   $id  
   $width  
   $height  
   $presetItem  

[ Top ]

method appendInput__password [line 488]

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



Parameters:

DOMNode   $inputNode  
   $id  
   $width  
   $height  
   $presetItem  

[ Top ]

method appendInput__passwordVerify [line 496]

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



Parameters:

DOMNode   $inputNode  
   $id  
   $width  
   $height  
   $presetItem  

[ Top ]

method create [line 53]

DOMElement create( $node)

Appends a form to create users 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 38]

void defaultEditFields( )



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

[ Top ]

method edit [line 140]

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




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 editPasswd [line 363]

void editPasswd( $user, $node)

Displays a form to set an user's password.



Parameters:

GALTableRow   $user  
DOMNode   $node  

[ Top ]

method editSingle [line 320]

void editSingle( $user, $node)

Display a form to edit an user.



Tags:



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

Parameters:

GALTableRow   $user  
DOMNode   $node  

[ Top ]

method evalEdit__password [line 512]

void evalEdit__password( )



[ Top ]

method execute [line 542]

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, user 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 210]

DOMElement fastMenu( $node)

Displays a menu with elements of the current selection.

This method appends a menu with links to GALUser 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 652]

void getMultiFrontend( [ $items = false])



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

Parameters:

   $items  

[ Top ]

method getPlural [line 650]

void getPlural( )



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

[ Top ]

method getSingular [line 651]

void getSingular( )



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

[ Top ]

method getTable [line 647]

void getTable( )



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

[ Top ]

method getTarget [line 644]

string getTarget( )

The target, i.e. 'user'.



Tags:

return:  'user'


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

[ Top ]

method layoutMenu [line 167]

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 order [line 625]

GALOrder order( )

Builds an instance of GALOrder.

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

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

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:36:03 +0200 by phpDocumentor 1.3.0RC6