Show
Ignore:
Timestamp:
02/06/08 22:58:28 (10 months ago)
Author:
rambo
Message:

scripted whitespace normalization, see r14772

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/midcom/build/importStyle.php

    r4824 r14773  
    1717{ 
    1818 
    19        protected $style = null; // package name 
     19    protected $style = null; // package name 
    2020 
    21        function __construct() 
    22        
     21    function __construct() 
     22   
    2323 
    24        
     24   
    2525 
    26        protected $returnProperty; // name of property to set to return value 
     26    protected $returnProperty; // name of property to set to return value 
    2727 
    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; 
    3535 
    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   
    5353 
    5454 
    55        /** 
    56         * The init method: Do init steps. 
    57         */ 
    58        public function init() 
    59        
    60                // nothing to do here 
    61        
     55    /** 
     56    * The init method: Do init steps. 
     57    */ 
     58    public function init() 
     59   
     60        // nothing to do here 
     61   
    6262 
    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         
    6969        $name = $this->template; 
    7070        $style_name = "template_{$name}"; 
     
    116116        if (!$this->clearCache())  
    117117        { 
    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"; 
    119119        } 
    120120         
    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     
    131131} 
    132132?>