[ Index ] |
|
Code source de LifeType 1.2.4 |
[Code source] [Imprimer] [Statistiques]
(pas de description)
Poids: | 432 lignes (16 kb) |
Inclus ou requis: | 0 fois |
Référencé: | 1 fois |
Nécessite: | 0 fichiers |
SimplePostNukeUserDataProvider:: (15 méthodes):
SimplePostNukeUserDataProvider()
authenticateUser()
getUserInfoFromPostNukeUser()
_PostNukeAddBlog()
getUserInfoFromUsername()
getUserInfoFromId()
getAllUsers()
buildSearchCondition()
updateUser()
addUser()
getBlogUsers()
deleteUser()
getNumUsers()
emailExists()
getSearchConditions()
Classe: SimplePostNukeUserDataProvider - X-Ref
Model representing the users in our application. Provides the methods such asSimplePostNukeUserDataProvider( $providerConfig ) X-Ref |
Initializes the model |
authenticateUser( $username, $pass ) X-Ref |
Returns true if the user is in the database and the username and password match First, we check if the user exists as a standard lt user. If not, we check if he has an PostNuke account, validate username/password and open a lt account for him. This is the only time we interact with the postnuke db. Password changes, user removal and and everything else possible within LifeType does not affect the PostNuke database in any way. param: username Username of the user who we'd like to authenticate param: pass Password of the user return: true if user and password correct or false otherwise. |
getUserInfoFromPostNukeUser( $username ) X-Ref |
param: username Username of the user who we'd like to get all info from the PN DB return: Returns an array with all userinformation |
_PostNukeAddBlog( &$username, &$userid ) X-Ref |
param: username Username for having a meaningful Blogname param: userid UserID to link the blog to the new created user return: Returns true if blog is created successfully and false otherwise |
getUserInfoFromUsername( $username ) X-Ref |
Retrieves the user information but given only a username param: username The username of the user return: Returns a UserInfo object with the requested information, or false otherwise. |
getUserInfoFromId( $userid ) X-Ref |
Retrieves the user infromation but given only a userid param: userId User ID of the user from whom we'd like to get the information return: Returns a UserInfo object with the requested information, or false otherwise. |
getAllUsers( $status = USER_STATUS_ALL, $searchTerms = "",$orderBy = "",$page = DEFAULT_PAGING_ENABLED, $itemsPerPage = DEFAULT_ITEMS_PER_PAGE ) X-Ref |
Returns an array with all the users available in the database param: status param: includeExtraInfo param: searchTerms param: page param: itemsPerPage return: An array containing all the users. |
buildSearchCondition( $searchTerms ) X-Ref |
updateUser( $user ) X-Ref |
Updates the information related to a user param: userInfo An UserInfo object containing the <b>already udpated</b> information of the return: Returns true if ok or false otherwise. |
addUser( &$user ) X-Ref |
Adds a user to the database. param: user An UserInfo object with the necessary information return: Returns the identifier assigned to the user, or false if there was any error. It will also modify the |
getBlogUsers( $blogId, $includeOwner = true, $status = USER_STATUS_ALL, $searchTerms = "" ) X-Ref |
Returns an array with all the users that belong to the given blog. param: blogId The blog identifier. param: includeOwner Wether to include the owner of the blog or not. param: status param: searchTerms return: An array with the information about the users who belong in |
deleteUser( $userId ) X-Ref |
Removes users from the database param: userId The identifier of the user we are trying to remove |
getNumUsers( $status = USER_STATUS_ALL, $searchTerms = "" ) X-Ref |
returns the total number of users return: total number of users |
emailExists($email) X-Ref |
check if the email account has been registered return: true if the email account has been registered |
getSearchConditions( $searchTerms ) X-Ref |
Généré le : Mon Nov 26 21:04:15 2007 | par Balluche grâce à PHPXref 0.7 |
![]() |