コード例 #1
0
 /**
  * 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;
     }
 }
コード例 #2
0
ファイル: class.LBoxMetanodeInt.php プロジェクト: palmic/lbox
 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;
     }
 }