function WallElement(&$wall, $attributes = array()) { $this->_wall =& $wall; $this->preferred_markup = TagUtil::getWallMarkUp($this->_wall->getCapa('preferred_markup')); foreach ($attributes as $name => $value) { if (isset($this->{$name})) { if (strtolower($value) == 'false') { $value = false; } else { if (strtolower($value) == 'true') { $value = true; # } else if (is_numeric($value)) { # $value = (int)$value; } } $this->{$name} = $value; } } }