From 903ae8a581fac1e6917fc3e31d2ad8fb91df80c3 Mon Sep 17 00:00:00 2001 From: ctrlaltca <> Date: Thu, 12 Jul 2012 11:21:01 +0000 Subject: standardize the use of unix eol; use svn properties to enforce native eol --- buildscripts/phing/tasks/PradoQuickStartDocs.php | 168 +++++++++++------------ 1 file changed, 84 insertions(+), 84 deletions(-) (limited to 'buildscripts/phing/tasks/PradoQuickStartDocs.php') diff --git a/buildscripts/phing/tasks/PradoQuickStartDocs.php b/buildscripts/phing/tasks/PradoQuickStartDocs.php index 06c30a14..1cbc5140 100644 --- a/buildscripts/phing/tasks/PradoQuickStartDocs.php +++ b/buildscripts/phing/tasks/PradoQuickStartDocs.php @@ -1,85 +1,85 @@ -destdir = $destdir; - } - - function setPages($page) - { - $this->page = $page; - } - - /** - * Main entrypoint of the task - */ - function main() - { - $output = $this->destdir->getAbsolutePath(); - $base = dirname(__FILE__).'/../../../demos/quickstart/protected/'; - error_reporting(0); - $quickstart= new ChmQuickstartBuilder($base,$output); - - foreach(preg_split('/\s*[, ]+\s*/', $this->page) as $page) - { - $file = str_replace(array('/','.page'), array('_','.html'),$page); - $this->log("Parsing $page"); - file_put_contents($output.'/'.$file, $this->parsePage($quickstart,$page)); - $this->log("Writing $file"); - } - } - - protected function parsePage($quickstart, $page) - { - $_GET['page'] = str_replace(array('/','.page'),array('.',''),$page); - $_GET['notheme'] = 'true'; - $content = $quickstart->parseHtmlContent($quickstart->getApplicationContent()); - //hide prado specific content - $content = str_replace('
', '', $content); - return $content; - } - -} - +destdir = $destdir; + } + + function setPages($page) + { + $this->page = $page; + } + + /** + * Main entrypoint of the task + */ + function main() + { + $output = $this->destdir->getAbsolutePath(); + $base = dirname(__FILE__).'/../../../demos/quickstart/protected/'; + error_reporting(0); + $quickstart= new ChmQuickstartBuilder($base,$output); + + foreach(preg_split('/\s*[, ]+\s*/', $this->page) as $page) + { + $file = str_replace(array('/','.page'), array('_','.html'),$page); + $this->log("Parsing $page"); + file_put_contents($output.'/'.$file, $this->parsePage($quickstart,$page)); + $this->log("Writing $file"); + } + } + + protected function parsePage($quickstart, $page) + { + $_GET['page'] = str_replace(array('/','.page'),array('.',''),$page); + $_GET['notheme'] = 'true'; + $content = $quickstart->parseHtmlContent($quickstart->getApplicationContent()); + //hide prado specific content + $content = str_replace('', '', $content); + return $content; + } + +} + ?> \ No newline at end of file -- cgit v1.2.3