Class XOAD_HTML_DOM_BaseElement

Description

XOAD HTML DOM Base Element Class.

This class is used as base class for all XOAD_HTML DOM elements.

  • version: 0.6.0.0
  • author: Stanimir Angeloff

Located in /extensions/html/classes/DOM/BaseElement.class.php (line 32)


	
			
Direct descendents
Class Description
 class XOAD_HTML_DOM_CssQuery XOAD HTML DOM cssQuery Class.
 class XOAD_HTML_DOM_ElementById XOAD HTML DOM Element By Id Class.
 class XOAD_HTML_DOM_ElementsByName XOAD HTML DOM Elements By Name Class.
 class XOAD_HTML_DOM_ElementsByTagName XOAD HTML DOM Elements By Tag Name Class.
Variable Summary
 array $attributes
 string $clientCode
 array $skipKeys
 array $style
Method Summary
 XOAD_HTML_DOM_BaseElement XOAD_HTML_DOM_BaseElement ()
 string process ([string $element = null])
 void removeAttribute (string $attName)
 void setAttribute (mixed $name, mixed $value, string $attName)
Variables
array $attributes (line 43)

Holds attributes collection. This array is not populated from the client and it is empty initially.

  • access: public
string $clientCode (line 74)

Holds the client JavaScript code associated with the element(s).

  • access: protected
array $skipKeys (line 64)

Holds the keys that will be skipped (like id, clientCode ...).

  • access: protected
array $style (line 54)

Holds style collection. This array is not populated from the client and it is empty initially.

  • access: public
Methods
Constructor XOAD_HTML_DOM_BaseElement (line 82)

Creates a new instance of the XOAD_HTML_DOM_BaseElement class.

  • access: public
XOAD_HTML_DOM_BaseElement XOAD_HTML_DOM_BaseElement ()
process (line 157)

Returns the JavaScript code of the DOM element.

You should not call this method directly.

  • return: JavaScript source code for the DOM element.
  • static:
  • access: public
string process ([string $element = null])
  • string $element: The JavaScript element name.

Redefined in descendants as:
removeAttribute (line 111)

This method removes an attribute from the element(s).

Example:

  1. $content =& XOAD_HTML::getElementById('content');
  2.  
  3. $content->removeAttribute('disabled');

  • access: public
void removeAttribute (string $attName)
  • string $attName: String that names the attribute to be removed from the element(s).
setAttribute (line 136)

This method adds a new attribute or changes the value of an existing attribute on the element(s).

Example:

  1. $content =& XOAD_HTML::getElementById('content');
  2.  
  3. $content->setAttribute('disabled', true);

  • access: public
void setAttribute (mixed $name, mixed $value, string $attName)
  • string $attName: String that names the attribute to be removed from the element(s).

Documentation generated on Sat, 12 Nov 2005 20:23:49 +0200 by phpDocumentor 1.3.0RC3