Changeset 14773 for trunk/midcom/build/importStyle.php
- Timestamp:
- 02/06/08 22:58:28 (10 months ago)
- Files:
-
- trunk/midcom/build/importStyle.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/midcom/build/importStyle.php
r4824 r14773 17 17 { 18 18 19 protected $style = null; // package name19 protected $style = null; // package name 20 20 21 function __construct()22 {21 function __construct() 22 { 23 23 24 }24 } 25 25 26 protected $returnProperty; // name of property to set to return value26 protected $returnProperty; // name of property to set to return value 27 27 28 /**29 * The root path to where the module is stored.30 */31 private $path = null;32 /**33 */34 protected $template = null;28 /** 29 * The root path to where the module is stored. 30 */ 31 private $path = null; 32 /** 33 */ 34 protected $template = null; 35 35 36 public function setPath($str)37 {38 $this->path = $str;39 }40 public function setPackage($str) 41 { 42 $this->package = $str; 43 }44 public function setTemplate($str)45 {46 $this->template = $str;47 }48 /** Sets property name to set with return value of function or expression.*/49 public function setReturnProperty($r)50 {51 $this->returnProperty = $r;52 }36 public function setPath($str) 37 { 38 $this->path = $str; 39 } 40 public function setPackage($str) 41 { 42 $this->package = $str; 43 } 44 public function setTemplate($str) 45 { 46 $this->template = $str; 47 } 48 /** Sets property name to set with return value of function or expression.*/ 49 public function setReturnProperty($r) 50 { 51 $this->returnProperty = $r; 52 } 53 53 54 54 55 /**56 * The init method: Do init steps.57 */58 public function init()59 {60 // nothing to do here61 }55 /** 56 * The init method: Do init steps. 57 */ 58 public function init() 59 { 60 // nothing to do here 61 } 62 62 63 /**64 * The main entry point method.65 */66 public function main()67 {68 63 /** 64 * The main entry point method. 65 */ 66 public function main() 67 { 68 69 69 $name = $this->template; 70 70 $style_name = "template_{$name}"; … … 116 116 if (!$this->clearCache()) 117 117 { 118 echo "Remember that you have to clear the midgard pagecache to see effects!\n";118 echo "Remember that you have to clear the midgard pagecache to see effects!\n"; 119 119 } 120 120 121 122 }123 124 protected function clearCache() {125 if (function_exists('mgd_clear_cache')) {126 return mgd_clear_cache();127 }128 return false;129 }130 121 122 } 123 124 protected function clearCache() { 125 if (function_exists('mgd_clear_cache')) { 126 return mgd_clear_cache(); 127 } 128 return false; 129 } 130 131 131 } 132 132 ?>
