_error = strtolower(get_class( $this )).'::bind failed.'; return false; } else { return mosBindArrayToObject( $array, $this, $ignore ); } } /** * Writes the configuration file line for a particular variable * @return string */ function getVarText() { $txt = ''; $vars = $this->getPublicVars(); foreach ($vars as $v) { $k = str_replace( 'config_', 'mosConfig_', $v ); $txt .= "\$$k = '" . addslashes( $this->$v ) . "';\n"; } return $txt; } /** * Binds the global configuration variables to the class properties */ function bindGlobals() { $vars = $this->getPublicVars(); foreach ($vars as $v) { $k = str_replace( 'config_', 'mosConfig_', $v ); if (isset( $GLOBALS[$k] )) $this->$v = $GLOBALS[$k]; } /* * Maintain the value of $mosConfig_live_site even if * user signs in with https:// */ require('../configuration.php'); if( $mosConfig_live_site != $this->config_live_site ) $this->config_live_site = $mosConfig_live_site; } } ?>