Class StringParser_Node_Text

Description

String parser text node class

Located in /stringparser.class.php (line 1453)

StringParser_Node
   |
   --StringParser_Node_Text
Variable Summary
 string $content
 array $_flags
 int $_type
Method Summary
 StringParser_Node_Text StringParser_Node_Text (string $content, [int $occurredAt = -1])
 void appendText (string $text)
 void getFlag (string $flag, [string $type = 'mixed'], [mixed $default = null])
 void setFlag (string $name, mixed $value)
 void _dumpToString ()
Variables
string $content = '' (line 1478)

The content of this node

  • access: public
array $_flags = array () (line 1471)

Node flags

  • access: protected
int $_type = STRINGPARSER_NODE_TEXT (line 1463)

The type of this node.

This node is a text node.


Redefinition of:
StringParser_Node::$_type
The type of this node.

Inherited Variables

Inherited from StringParser_Node

StringParser_Node::$occurredAt
StringParser_Node::$_children
StringParser_Node::$_id
StringParser_Node::$_parent
Methods
Constructor StringParser_Node_Text (line 1489)

Constructor

  • see: StringParser_Node_Text::content
  • access: public
StringParser_Node_Text StringParser_Node_Text (string $content, [int $occurredAt = -1])
  • string $content: The initial content of this element
  • int $occurredAt: The position in the text where this node occurred at. If not determinable, it is -1.
appendText (line 1501)

Append text to content

  • see: StringParser_Node_Text::content
  • access: public
void appendText (string $text)
  • string $text: The text to append
getFlag (line 1525)

Get Flag

  • access: public
void getFlag (string $flag, [string $type = 'mixed'], [mixed $default = null])
  • string $flag: The requested flag
  • string $type: The requested type of the return value
  • mixed $default: The default return value
setFlag (line 1512)

Set a flag

  • access: public
void setFlag (string $name, mixed $value)
  • string $name: The name of the flag
  • mixed $value: The value of the flag
_dumpToString (line 1539)

Dump this node to a string

void _dumpToString ()

Redefinition of:
StringParser_Node::_dumpToString()
Dump this node to a string

Inherited Methods

Inherited From StringParser_Node

 StringParser_Node::StringParser_Node()
 StringParser_Node::appendChild()
 StringParser_Node::appendToLastTextChild()
 StringParser_Node::destroyNode()
 StringParser_Node::dump()
 StringParser_Node::equals()
 StringParser_Node::firstChild()
 StringParser_Node::getNodeCountByCriterium()
 StringParser_Node::getNodesByCriterium()
 StringParser_Node::insertChildAfter()
 StringParser_Node::insertChildBefore()
 StringParser_Node::lastChild()
 StringParser_Node::matchesCriterium()
 StringParser_Node::prependChild()
 StringParser_Node::removeChild()
 StringParser_Node::type()
 StringParser_Node::_destroy()
 StringParser_Node::_dumpToString()
 StringParser_Node::_findChild()

Documentation generated on Mon, 10 Dec 2007 13:29:40 +0100 by phpDocumentor 1.4.0