/** * 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 getContent() { try { if (strlen($content = parent::getContent()) > 0) { /*if (!is_numeric($content)) { throw new LBoxExceptionMetanodes(LBoxExceptionMetanodes::MSG_NODECONTENT_NOT_NUMERIC, LBoxExceptionMetanodes::CODE_NODECONTENT_NOT_NUMERIC); }*/ return (int) $content; } } catch (Exception $e) { throw $e; } }