From 3069eaf35e833ffe4a1c1c7829dd7e168ae27420 Mon Sep 17 00:00:00 2001 From: Ciro Mattia Gonano Date: Wed, 11 Sep 2013 15:56:48 +0200 Subject: Merge up to r3319 --- buildscripts/phing/tasks/PradoQuickStartDocs.php | 85 ------------------------ 1 file changed, 85 deletions(-) delete mode 100644 buildscripts/phing/tasks/PradoQuickStartDocs.php (limited to 'buildscripts/phing/tasks/PradoQuickStartDocs.php') diff --git a/buildscripts/phing/tasks/PradoQuickStartDocs.php b/buildscripts/phing/tasks/PradoQuickStartDocs.php deleted file mode 100644 index 1cbc5140..00000000 --- a/buildscripts/phing/tasks/PradoQuickStartDocs.php +++ /dev/null @@ -1,85 +0,0 @@ -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