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

Class: XML_XUL_Element_Listbox

Source Location: /XML_XUL-0.9.1/XML/XUL/Element/Listbox.php

Class Overview

XML_XUL_Element
   |
   --XML_XUL_Element_Listbox

XML/XUL/Element/Listbox.php


Author(s):

Variables

Methods


Inherited Variables

Inherited Methods

Class: XML_XUL_Element

XML_XUL_Element::__construct()
constructor
XML_XUL_Element::addDescription()
add a description element
XML_XUL_Element::appendChild()
add a child object
XML_XUL_Element::cloneElement()
clone the element
XML_XUL_Element::firstChild()
get the first child of the element
XML_XUL_Element::getAttribute()
get an attribute
XML_XUL_Element::getDebug()
get a debug info about the element as string.
XML_XUL_Element::getElementById()
get an element by its id
XML_XUL_Element::getElementname()
get the element's tag name
XML_XUL_Element::getElementsByTagname()
get a nodelist of elements by their tagname
XML_XUL_Element::getId()
get the element's id
XML_XUL_Element::lastChild()
get last first child of the element
XML_XUL_Element::serialize()
serialize the element
XML_XUL_Element::setAttribute()
set an attribute
XML_XUL_Element::setAttributes()
sets several attributes at once
XML_XUL_Element::setCData()
sets cdata of the element
XML_XUL_Element::setDocument()
set the reference to the document
XML_XUL_Element::setHtmlNamespace()
set the namespace for XHTML element
XML_XUL_Element::setNamespace()
set the namespace
XML_XUL_Element::toXML()
create a string representation of the element
XML_XUL_Element::validateAttributes()
validate the element's attributes

Class Details

[line 43]
XML/XUL/Element/Listbox.php

Listbox element



[ Top ]


Class Variables

$elementName =  'listbox'

[line 51]

element name
  • Access: public

Type:   string
Overrides:   Array


[ Top ]



Method Detail

addItem   [line 156]

void addItem( mixed $label, string $value, [array $atts = array()], [array $cellAtts = array()])

add an item
  • Access: public

Parameters:

mixed   $label   —  label of the item, can be a string or an array if the box has several columns
string   $value   —  value for the item
array   $atts   —  attributes for the listitem
array   $cellAtts   —  attributes for the listcell, if the list has more than one column

[ Top ]

setColumns   [line 105]

void setColumns( integer $columns)

set the amount of columns

If you need to specify attributes for the different columns you may pass array of attributes for each column as parameter 2 to X, where X is the number of columns you have set.

  • Access: public

Parameters:

integer   $columns   —  number of columns

[ Top ]

setHeaders   [line 132]

void setHeaders( array $headers)

set the headers

The headers should at least contain the label of the column, but you may also set any other attribute that is supported by XML_XUL_Element_Listheader.

  • Access: public

Parameters:

array   $headers   —  array containing all headers

[ Top ]


Documentation generated on Mon, 11 Mar 2019 15:49:51 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.