Cheetah
Public Member Functions | Public Attributes | Protected Member Functions | List of all members
ChFaceBookConnectModule Class Reference
Inheritance diagram for ChFaceBookConnectModule:
ChWsbConnectModule ChWsbModule

Public Member Functions

 __construct (&$aModule)
 
 actionAdministration ()
 
 actionLoginCallback ()
 
 actionLoginForm ()
 
 serviceSupported ()
 
 serviceLogin ($aFacebookProfileInfo, $sToken='')
 
 _makeFriends ($iProfileId)
 
 _proccesNickName ($sProfileName)
 
 _setAccessToken ($sToken='')
 
- Public Member Functions inherited from ChWsbConnectModule
 __construct ($aModule)
 
 _actionAdministration ($sOptionApiKey, $sLangSettingsTitle, $sLangInfoTitle='', $sLangInfoText='', $sInfoTextParam='')
 
 setLogged ($iProfileId, $sPassword, $sCallbackUrl='', $bRedirect=true)
 
 getAlternativeName ($sNickName)
 
 getJoinAfterPaymentPage ($aProfileInfo)
 
 processJoinAfterPayment (&$oAlert)
 
 _assignAvatar ($sAvatarUrl, $iProfileId=false)
 
 _createProfile ($aProfileInfo, $sAlternativeName='')
 
 _createProfileRaw ($aProfileInfo, $sAlternativeName='', $isAutoFriends=true, $isSetLoggedIn=true)
 
 _getJoinPage ($aProfileFields, $iRemoteProfileId)
 
 _getRedirectUrl ($iProfileId, $isExistingProfile=false)
 
- Public Member Functions inherited from ChWsbModule
 isLogged ()
 
 getUserId ()
 
 getUserPassword ()
 
 getTitleKey ($sUri)
 
 serviceGetBaseUrl ()
 

Public Attributes

 $oFacebook
 
- Public Attributes inherited from ChWsbModule
 $_aModule
 
 $_oDb
 
 $_oTemplate
 
 $_oConfig
 

Protected Member Functions

 _convertRemoteFields ($aProfileInfo, $sAlternativeName='')
 
- Protected Member Functions inherited from ChWsbConnectModule
 _redirect ($sUrl, $iStatus=302)
 

Additional Inherited Members

- Static Public Member Functions inherited from ChWsbModule
static getInstance ($sClassName)
 
static getTitle ($sUri)
 

Detailed Description

Definition at line 15 of file ChFaceBookConnectModule.php.

Constructor & Destructor Documentation

◆ __construct()

ChFaceBookConnectModule::__construct ( $aModule)

Class constructor ;

Parameters
:$aModule(array) - contain some information about this module; [ id ] - (integer) module's id ; [ title ] - (string) module's title ; [ vendor ] - (string) module's vendor ; [ path ] - (string) path to this module ; [ uri ] - (string) this module's URI ; [ class_prefix ] - (string) this module's php classes file prefix ; [ db_prefix ] - (string) this module's Db tables prefix ; [ date ] - (string) this module's date installation ;

Definition at line 32 of file ChFaceBookConnectModule.php.

Member Function Documentation

◆ _convertRemoteFields()

ChFaceBookConnectModule::_convertRemoteFields (   $aProfileInfo,
  $sAlternativeName = '' 
)
protected
Parameters
$aProfileInfo- remote profile info
$sAlternativeName- suffix to add to NickName to make it unique
Returns
profile array info, ready for the local database

Reimplemented from ChWsbConnectModule.

Definition at line 340 of file ChFaceBookConnectModule.php.

◆ _makeFriends()

ChFaceBookConnectModule::_makeFriends (   $iProfileId)

Make friends

Parameters
$iProfileIdinteger
Returns
void

Definition at line 300 of file ChFaceBookConnectModule.php.

◆ _proccesNickName()

ChFaceBookConnectModule::_proccesNickName (   $sProfileName)

Function will clear all unnecessary sybmols from profile's nickname;

Parameters
:$sProfileName(string) - profile's nickname;
Returns
: (string) - cleared nickname;

Definition at line 401 of file ChFaceBookConnectModule.php.

◆ _setAccessToken()

ChFaceBookConnectModule::_setAccessToken (   $sToken = '')

Definition at line 410 of file ChFaceBookConnectModule.php.

◆ actionAdministration()

ChFaceBookConnectModule::actionAdministration ( )

Function will generate facebook's admin page;

Returns
: (text) - html presentation data;

Definition at line 56 of file ChFaceBookConnectModule.php.

◆ actionLoginCallback()

ChFaceBookConnectModule::actionLoginCallback ( )

Facebook login callback url;

Returns
(text) - html presentation data;

Definition at line 67 of file ChFaceBookConnectModule.php.

◆ actionLoginForm()

ChFaceBookConnectModule::actionLoginForm ( )

Generare facebook login form;

Returns
(text) - html presentation data;

Definition at line 150 of file ChFaceBookConnectModule.php.

◆ serviceLogin()

ChFaceBookConnectModule::serviceLogin (   $aFacebookProfileInfo,
  $sToken = '' 
)

Definition at line 183 of file ChFaceBookConnectModule.php.

◆ serviceSupported()

ChFaceBookConnectModule::serviceSupported ( )

Definition at line 178 of file ChFaceBookConnectModule.php.

Member Data Documentation

◆ $oFacebook

ChFaceBookConnectModule::$oFacebook

Definition at line 17 of file ChFaceBookConnectModule.php.


The documentation for this class was generated from the following file: