original_string: function freeze($elementList=null)
      {
          if (!isset($elementList)) {
              $this->_freezeAll = true;
              $elementList = array();
          } else {
              if (!is_array($elementList)) {
                  $elementList = preg_split('/[ ]*,[ ]*/', $elementList);
              }
              $elementList = array_flip($elementList);
          }
  
          foreach (array_keys($this->_elements) as $key) {
              $name = $this->_elements[$key]->getName();
              if ($this->_freezeAll || isset($elementList[$name])) {
                  $this->_elements[$key]->freeze();
                  unset($elementList[$name]);
              }
          }
  
          if (!empty($elementList)) {
              return self::raiseError(null, QUICKFORM_NONEXIST_ELEMENT, null, E_USER_WARNING, "Nonexistant element(s): '" . implode("', '", array_keys($elementList)) . "' in HTML_QuickForm::freeze()", 'HTML_QuickForm_Error', true);
          }
          return true;
      }
code: function freeze($elementList=null)
      {
          if (!isset($elementList)) {
              $this->_freezeAll = true;
              $elementList = array();
          } else {
              if (!is_array($elementList)) {
                  $elementList = preg_split('/[ ]*,[ ]*/', $elementList);
              }
              $elementList = array_flip($elementList);
          }
  
          foreach (array_keys($this->_elements) as $key) {
              $name = $this->_elements[$key]->getName();
              if ($this->_freezeAll || isset($elementList[$name])) {
                  $this->_elements[$key]->freeze();
                  unset($elementList[$name]);
              }
          }
  
          if (!empty($elementList)) {
              return self::raiseError(null, QUICKFORM_NONEXIST_ELEMENT, null, E_USER_WARNING, "Nonexistant element(s): '" . implode("', '", array_keys($elementList)) . "' in HTML_QuickForm::freeze()", 'HTML_QuickForm_Error', true);
          }
          return true;
      }
code_tokens: function freeze ( $ elementList = null ) { if ( ! isset ( $ elementList ) ) { $ this -> _freezeAll = true ; $ elementList = array ( ) ; } else { if ( ! is_array ( $ elementList ) ) { $ elementList = preg_split ( '/[ ]*,[ ]*/' , $ elementList ) ; } $ elementList = array_flip ( $ elementList ) ; } foreach ( array_keys ( $ this -> _elements ) as $ key ) { $ name = $ this -> _elements [ $ key ] -> getName ( ) ; if ( $ this -> _freezeAll || isset ( $ elementList [ $ name ] ) ) { $ this -> _elements [ $ key ] -> freeze ( ) ; unset ( $ elementList [ $ name ] ) ; } } if ( ! empty ( $ elementList ) ) { return self :: raiseError ( null , QUICKFORM_NONEXIST_ELEMENT , null , E_USER_WARNING , "Nonexistant element(s): '" . implode ( "', '" , array_keys ( $ elementList ) ) . "' in HTML_QuickForm::freeze()" , 'HTML_QuickForm_Error' , true ) ; } return true ; }
docstring: Displays elements without HTML input tags
  
  @param    mixed   $elementList       array or string of element(s) to be frozen
  @since     1.0
  @access   public
  @throws   HTML_QuickForm_Error
docstring_tokens: Displays elements without HTML input tags