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

Class: HTML_QuickForm_advmultiselect

Source Location: /HTML_QuickForm_advmultiselect-0.4.0/advmultiselect.php

Class Overview

HTML_QuickForm_select
   |
   --HTML_QuickForm_advmultiselect

Element for HTML_QuickForm that emulate a multi-select.


Author(s):

Version:

  • Release: @package_version@

Copyright:

  • 1997-2005 The PHP Group

Methods


Inherited Variables

Inherited Methods


Class Details

[line 79]
Element for HTML_QuickForm that emulate a multi-select.

The HTML_QuickForm_advmultiselect package adds an element to the HTML_QuickForm package that is two select boxes next to each other emulating a multi-select.

PHP versions 4 and 5

LICENSE: This source file is subject to version 3.0 of the PHP license that is available through the world-wide-web at the following URI: http://www.php.net/license/3_0.txt. If you did not receive a copy of the PHP License and are unable to obtain it through the web, please send a note to license@php.net so we can mail you a copy immediately.



[ Top ]


Method Detail

HTML_QuickForm_advmultiselect (Constructor)   [line 199]

void HTML_QuickForm_advmultiselect( [string $elementName = null], [mixed $elementLabel = null], [mixed $options = null], [mixed $attributes = null])

Class constructor
  • Access: public

Parameters:

string   $elementName   —  Dual Select name attribute
mixed   $elementLabel   —  Label(s) for the select boxes
mixed   $options   —  Data to be used to populate options
mixed   $attributes   —  Either a typical HTML attribute string or an associative array

[ Top ]

getElementCss   [line 315]

string getElementCss( [boolean $raw = true])

Gets default element stylesheet for a basic render
  • Access: public

Parameters:

boolean   $raw   —  (optional) html output with script tags or just raw data

[ Top ]

setButtonAttributes   [line 241]

void setButtonAttributes( string $button, [mixed $attributes = null])

Sets the button Add|Remove attributes
  • Access: public

Parameters:

string   $button   —  Button identifier, either 'add' or 'remove'
mixed   $attributes   —  (optional) Either a typical HTML attribute string or an associative array

[ Top ]

setElementTemplate   [line 287]

void setElementTemplate( string $html)

Sets element template
  • Access: public

Parameters:

string   $html   —  The HTML surrounding select boxes and buttons

[ Top ]

setJsElement   [line 301]

void setJsElement( [string $pref = null], [string $post = 'moveSelections'])

Sets JavaScript function name parts. Maybe usefull to avoid conflict names
  • Access: public

Parameters:

string   $pref   —  (optional) Prefix name
string   $post   —  (optional) Postfix name

[ Top ]

toHtml   [line 334]

string toHtml( )

Returns the HTML generated for the advanced mutliple select component
  • Access: public

[ Top ]


Documentation generated on Mon, 11 Mar 2019 14:18:24 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.