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

Class: OptionLoader

Source Location: /HTML_QuickForm2-2.1.0/docs/examples/support/hierselect-loader.php

Class Overview


Class that returns additional options for hierselect elements


Variables

Methods


Inherited Variables

Inherited Methods


Class Details

[line 12]
Class that returns additional options for hierselect elements

The arrays are hardcoded there, in real life usage it will probably access some database.



[ Top ]


Class Variables

$primaryOptions = array()

[line 14]

  • Access: protected

Type:   mixed


[ Top ]

$secondaryOptions = array()

[line 16]

  • Access: protected

Type:   mixed


[ Top ]



Method Detail

__construct (Constructor)   [line 18]

OptionLoader __construct( )

  • Access: public

[ Top ]

getOptions   [line 162]

array getOptions( [array $values = array()])

Server-side callback
  • Return: Associative array (option value => option text)
  • Access: public

Parameters:

array   $values   —  Values for previous select elements in hierselect

[ Top ]

getOptionsAjax   [line 179]

array getOptionsAjax( [array $values = array()])

Client-side callback
  • Return: Returns array that serializes to JS object {values: [...], texts: [...]}
  • Access: public

Parameters:

array   $values   —  Values for previous select elements in hierselect

[ Top ]


Documentation generated on Wed, 10 Apr 2019 08:56:09 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.