From eab6bb13b9efb3e1c6d725368368de4d74b00946 Mon Sep 17 00:00:00 2001 From: wei <> Date: Mon, 7 May 2007 04:17:37 +0000 Subject: Update Active Record docs. --- buildscripts/chmbuilder/ChmQuickstartBuilder.php | 16 +++-- buildscripts/chmbuilder/build.php | 2 +- buildscripts/chmbuilder/chm_style.css | 18 +++++ buildscripts/phing/tasks/PradoQuickStartDocs.php | 85 ++++++++++++++++++++++++ buildscripts/texbuilder/Page2Tex.php | 4 +- buildscripts/texbuilder/quickstart/build.php | 2 +- 6 files changed, 118 insertions(+), 9 deletions(-) create mode 100644 buildscripts/phing/tasks/PradoQuickStartDocs.php (limited to 'buildscripts') diff --git a/buildscripts/chmbuilder/ChmQuickstartBuilder.php b/buildscripts/chmbuilder/ChmQuickstartBuilder.php index 678310a6..43b55d12 100644 --- a/buildscripts/chmbuilder/ChmQuickstartBuilder.php +++ b/buildscripts/chmbuilder/ChmQuickstartBuilder.php @@ -13,12 +13,12 @@ class ChmQuickstartBuilder public function __construct($base,$output) { $this->base = $base; - $this->output_dir = $output.'/quickstart'; + $this->output_dir = $output; - if(!is_dir($this->output_dir)) + if(!is_dir($this->output_dir) || !is_dir($this->output_dir.'/assets')) { - mkdir($this->output_dir); - mkdir($this->output_dir.'/assets/'); + @mkdir($this->output_dir); + @mkdir($this->output_dir.'/assets/'); copy(dirname(__FILE__).'/chm_style.css', $this->output_dir.'/assets/chm_style.css'); } @@ -58,7 +58,7 @@ class ChmQuickstartBuilder file_put_contents($this->output_dir.'/'.$file, $html); } - protected function getApplicationContent() + public function getApplicationContent() { ob_start(); $this->initApp(); @@ -68,7 +68,7 @@ class ChmQuickstartBuilder return $content; } - protected function parseHtmlContent($content) + public function parseHtmlContent($content) { $html = preg_replace('/]+\/>/m', '', $content); $html = str_replace('