Changeset 17815

Show
Ignore:
Timestamp:
10/01/08 00:54:50 (2 months ago)
Author:
flack
Message:

small cleanups

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/midcom/midcom.helper.datamanager2/renderer/simple.php

    r17814 r17815  
    237237    { 
    238238        return $this->_html; 
    239     } // end func toHtml 
     239    } 
    240240 
    241241   /** 
     
    278278        } 
    279279        $this->_html = str_replace('{content}', $this->_html, $html); 
     280         
    280281        // add a validation script 
    281282        if ('' != ($script = $form->getValidationScript())) 
     
    295296    { 
    296297        $name = $header->getName(); 
    297         if (!empty($name) && isset($this->_templates[$name])) 
     298        if (!empty($name)  
     299            && isset($this->_templates[$name])) 
    298300        { 
    299301            $this->_html .= str_replace('{header}', $header->toHtml(), $this->_templates[$name]); 
     
    313315    * @param    string      Error message associated with the element 
    314316    * @param    string      Element type (optional) 
    315     * @access   private†
     317    * @access   privateᅵ 
    316318    * @see      renderElement() 
    317319    * @return   string      Html for element 
     
    369371        else 
    370372        { 
    371             //$html = preg_replace("/([ \t\n\r]*)?<!-- BEGIN error -->.*?<!-- END error -->([ \t\n\r]*)?/is", '', $html); 
    372  
    373373            $html = preg_replace("/([ \t\n\r]*)?<!-- BEGIN error -->.*?<!-- END error -->([ \t\n\r]*)?/is", '', $html); 
    374374        } 
     
    410410            $html = $this->_prepareTemplate($element->getName(), $element->getLabel(), $required, $error, $element->getType()); 
    411411            $this->_html .= str_replace('{element}', $element->toHtml(), $html); 
    412  
    413  
    414412        } 
    415413        else if (!empty($this->_groupElementTemplate)) 
    416414        { 
    417  
    418415            $html = str_replace('{label}', $element->getLabel(), $this->_groupElementTemplate); 
    419416            if ($required) 
     
    427424            } 
    428425            $this->_groupElements[] = str_replace('{element}', $element->toHtml(), $html); 
    429  
    430426        } 
    431427        else 
     
    478474            //$this->_currentGroupTemplates[$this->_currentGroupName]['_groupElements'] = $this->_groupElements; 
    479475        } 
    480  
    481476 
    482477        $this->_currentGroupTemplates[$name] = array 
     
    549544        if ($currentGroupId > -1 ) 
    550545        { 
    551  
    552546            $this->_currentGroupName = $this->_currentGroups[$currentGroupId]; 
    553547            $this->_currentGroupTemplates[$this->_currentGroupName]['_groupElements'][] = $html;