Class we_net_Community

Description

Was diese Klasse können muss:

  • Testen, ob ein community Account existiert
  • Einen Community Account anmelden

Alles andere läuft über die webEdition community Website

folgende Daten müssen in webEdition gespeichert werden:

  • Username
  • Passwort
Die Daten werden in einer XML-Datei gespeichert: webEdition/we/include/conf/we_community.xml.php

Diese Datei hat eine PHP-Endung und beginnt mit <?php exit; ?> um beim Direktaufruf keine Informationen preiszugeben.

Located in /net/Community.php (line 49)


	
			
Method Summary
we_net_Community __construct ()
bool authenticate ()
void deauthenticate ()
bool isValid ()
bool subscribe ($data 0)
void __get ( $var)
void __set (string $var, string $value)
Methods
Constructor __construct (line 90)
  • access: public
we_net_Community __construct ()
authenticate (line 200)

checks entered account data (uid/email and password) by asking the update server using $this->isValid() and - if successful - writes them to the configuration file using $this->S_aveAccountToWE()

  • return: true/false
  • access: public
bool authenticate ()
deauthenticate (line 210)

removes the current subscription from the webEdition configuration file. In order to remove the "real" subscription on the registration server one needs to do that within the web application on the server itself.

  • access: public
void deauthenticate ()
isValid (line 148)

sends a request to the update server to check if the account data is correct.

  • return: true/false
  • access: public
bool isValid ()
subscribe (line 184)

sends entered user data to the server for creating a new webEdition community account.

Writes the data to the class variables and uid (email) and encrypted password to the config file if the data is correct and the account has been created successfully. Note: the password has to be entered twice for verification purposes. The update server will do the checking.

  • return: true/false
  • access: public
bool subscribe ($data 0)
  • $data 0: array associative array with account data
__get (line 103)
  • access: public
void __get ( $var)
  • $var
__set (line 127)

public setter method only for these class variables:

  • uid (email)
  • password (cleartext, will be encrypted for storage and validation later)

  • access: public
void __set (string $var, string $value)
  • string $var: variable name
  • string $value: value of the variable

Documentation generated on Mon, 01 Sep 2008 11:35:35 +0200 by phpDocumentor 1.4.0