var $x = false;
var $y = false;
var $args = array(); // arguments..
+ var $id;
var $role;
- function fromXmlNode($node)
- {
+ function fromXmlNode($node) {
parent::fromXmlNode($node);
- $this->content = $node->textContent;
-
- $this->parse();
- }
-
- function fromNode($node)
- {
- parent::fromNode($node);
-
- $this->content = $node->content;
-
- $this->parse();
- }
- function parse()
- {
$this->x = false;
$this->y = false;
+ $this->content = $node->textContent;
/*
if (isset($this->x)) {
unset($this->x);
$trans = array_flip(get_html_translation_table(HTML_ENTITIES));
}
- if (!empty($this->content) && strlen($this->content)) {
+ if (strlen($this->content)) {
// convert & etc.
if (strpos($this->content,'&') !== false) {
$this->content = strtr($this->content, $trans);
}
- function shift($x,$y) // disable shifting on text
+ function shift($x, $y) // disable shifting on text
{
return;
}