/** * pretizeno o cisteni elementu */ public function getContent() { try { if (get_class() == get_class($this)) { return strip_tags(parent::getContent()); } else { return parent::getContent(); } } catch (Exception $e) { throw $e; } }
public function setContent($content = "") { try { if (strlen($content) > 0) { if (!is_numeric($content)) { throw new LBoxExceptionMetanodes("\$content: " . LBoxExceptionMetanodes::MSG_NODECONTENT_NOT_NUMERIC, LBoxExceptionMetanodes::CODE_NODECONTENT_NOT_NUMERIC); } } parent::setContent((int) $content); } catch (Exception $e) { throw $e; } }