Class NAJAX_HTML_DOM_BaseElement

Description

NAJAX HTML DOM Base Element Class.

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

  • version: 0.4.1.0
  • author: Stanimir Angeloff

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


	
			
Direct descendents
Class Description
NAJAX_HTML_DOM_ElementById NAJAX HTML DOM Element By Id Class.
NAJAX_HTML_DOM_ElementsByName NAJAX HTML DOM Elements By Name Class.
NAJAX_HTML_DOM_ElementsByTagName NAJAX HTML DOM Elements By Tag Name Class.
Variable Summary
array $attributes
string $clientCode
array $skipKeys
array $style
Method Summary
NAJAX_HTML_DOM_BaseElement NAJAX_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: private
array $skipKeys (line 64)

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

  • access: private
array $style (line 54)

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

  • access: public
Methods
Constructor NAJAX_HTML_DOM_BaseElement (line 82)

Creates a new instance of the NAJAX_HTML_DOM_BaseElement class.

  • access: public
NAJAX_HTML_DOM_BaseElement NAJAX_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 =& NAJAX_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 =& NAJAX_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 Tue, 20 Sep 2005 21:39:49 +0300 by phpDocumentor 1.3.0RC3