function ResetConfigArray($array_to_reset = '')
  {
      if (!is_array($array_to_reset)) {
        $array_to_reset = $this->_sql_tables_schema['config'];
      }
      // First, we reset all values (we know the key based on the schema)
      reset($array_to_reset);
      while(list($valid_key, $valid_format) = @each($array_to_reset)) {
          $pos = mb_strpos(mb_strtoupper($valid_format), 'DEFAULT');
          $value = "";
          if ($pos !== FALSE) {
              $value = trim(substr($valid_format, $pos + strlen("DEFAULT")));
              if (("'" == substr($value,0,1)) && ("'" == substr($value,-1))) {
                  $value = substr($value,1,-1);
              }
          }
          $this->_config_data[$valid_key] = $value;
      }
  }
function ResetConfigArray($array_to_reset = '')
  {
      if (!is_array($array_to_reset)) {
        $array_to_reset = $this->_sql_tables_schema['config'];
      }
      // First, we reset all values (we know the key based on the schema)
      reset($array_to_reset);
      while(list($valid_key, $valid_format) = @each($array_to_reset)) {
          $pos = mb_strpos(mb_strtoupper($valid_format), 'DEFAULT');
          $value = "";
          if ($pos !== FALSE) {
              $value = trim(substr($valid_format, $pos + strlen("DEFAULT")));
              if (("'" == substr($value,0,1)) && ("'" == substr($value,-1))) {
                  $value = substr($value,1,-1);
              }
          }
          $this->_config_data[$valid_key] = $value;
      }
  }
function ResetConfigArray ( $ array_to_reset = '' ) { if ( ! is_array ( $ array_to_reset ) ) { $ array_to_reset = $ this -> _sql_tables_schema [ 'config' ] ; } // First, we reset all values (we know the key based on the schema) reset ( $ array_to_reset ) ; while ( list ( $ valid_key , $ valid_format ) = @ each ( $ array_to_reset ) ) { $ pos = mb_strpos ( mb_strtoupper ( $ valid_format ) , 'DEFAULT' ) ; $ value = "" ; if ( $ pos !== FALSE ) { $ value = trim ( substr ( $ valid_format , $ pos + strlen ( "DEFAULT" ) ) ) ; if ( ( "'" == substr ( $ value , 0 , 1 ) ) && ( "'" == substr ( $ value , - 1 ) ) ) { $ value = substr ( $ value , 1 , - 1 ) ; } } $ this -> _config_data [ $ valid_key ] = $ value ; } }
Reset the config array
Reset the config array