From 3564ab1d8f299b9c8710d9fae67c88fa056dae11 Mon Sep 17 00:00:00 2001 From: Diego Najar Date: Fri, 4 Jan 2019 14:19:51 +0100 Subject: [PATCH] comments and minor fixes --- bl-kernel/pagex.class.php | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/bl-kernel/pagex.class.php b/bl-kernel/pagex.class.php index 69efa594..aef701d8 100644 --- a/bl-kernel/pagex.class.php +++ b/bl-kernel/pagex.class.php @@ -61,10 +61,9 @@ class Page { return $contentRaw; } - // Returns the content + // Returns the full content // This content is markdown parser - // (boolean) $fullContent, TRUE returns all content, if FALSE returns the first part of the content - // (boolean) $noSanitize, TRUE returns the content without sanitized + // (boolean) $sanitize, TRUE returns the content sanitized public function content($sanitize=false) { // If already set the content, return it @@ -73,6 +72,7 @@ class Page { return $content; } + // Get the raw content $content = $this->contentRaw(); // Parse Markdown @@ -92,9 +92,11 @@ class Page { } // Returns the first part of the content if the content is splited, otherwise is returned the full content - public function contentBreak() + // This content is markdown parser + // (boolean) $sanitize, TRUE returns the content sanitized + public function contentBreak($sanitize=false) { - $content = $this->content(); + $content = $this->content($sanitize); $explode = explode(PAGE_BREAK, $content); return $explode[0]; }