[ Index ]

PHP Cross Reference of Nucleus CMS 3.64




/nucleus3.64/nucleus/libs/ -> MEMBER.php (summary)

(no description)

File Size: 827 lines (23 kb)
Included or required: 1 time
Referenced: 0 times
Includes or requires: 1 file

Defines 1 class

MEMBER:: (59 methods):

Class: MEMBER  - X-Ref

A class representing site members

MEMBER()   X-Ref
Constructor for a member object

createFromName($displayname)   X-Ref
Create a member object for a given displayname

createFromID($id)   X-Ref
Create a member object for a given ID

readFromName($displayname)   X-Ref
No description

readFromID($id)   X-Ref
No description

login($login, $password)   X-Ref
Tries to login as a given user.
Returns true when succeeded, returns false when failed
3.40 adds CustomLogin event

cookielogin($login, $cookiekey)   X-Ref
Login using cookie key

logout()   X-Ref
No description

isLoggedIn()   X-Ref
No description

read($where)   X-Ref
Read member information from the database

isBlogAdmin($blogid)   X-Ref
Returns true if member is an admin for the given blog
(returns false if not a team member)

blogAdminRights($blogid)   X-Ref
No description

teamRights($blogid)   X-Ref
No description

isTeamMember($blogid)   X-Ref
Returns true if this member is a team member of the given blog

canAddItem($catid)   X-Ref
No description

canAlterComment($commentid)   X-Ref
Returns true if this member can edit/delete a commentitem. This can be in the
following cases:
- member is a super-admin
- member is the author of the comment
- member is admin of the blog associated with the comment
- member is author of the item associated with the comment

canAlterItem($itemid)   X-Ref
Returns true if this member can edit/delete an item. This is true in the following
cases: - member is a super-admin
- member is the author of the item
- member is admin of the the associated blog

canBeDeleted()   X-Ref
Return true if member can be deleted. This means that there are no items
posted by the member left

canUpdateItem($itemid, $newcat)   X-Ref
returns true if this member can move/update an item to a given category,
false if not (see comments fot the tests that are executed)

param: itemid
param: newcat (can also be of form 'newcat-x' with x=blogid)

setCookies($shared = 0)   X-Ref
Sets the cookies for the member

param: shared

sendActivationLink($type, $extra='')   X-Ref
No description

getAdminBlogs()   X-Ref
Returns an array of all blogids for which member has admin rights

getTeamBlogs($incAdmin = 1)   X-Ref
Returns an array of all blogids for which member has team rights

getNotifyFromMailAddress($suggest = "")   X-Ref
Returns an email address from which notification of commenting/karma voting can
be sent. A suggestion can be given for when the member is not logged in

write()   X-Ref
Write data to database

checkCookieKey($key)   X-Ref
No description

checkPassword($pw)   X-Ref
No description

getRealName()   X-Ref
No description

setRealName($name)   X-Ref
No description

getEmail()   X-Ref
No description

setEmail($email)   X-Ref
No description

getPassword()   X-Ref
No description

setPassword($pwd)   X-Ref
No description

getCookieKey()   X-Ref
No description

newCookieKey()   X-Ref
Generate new cookiekey, save it, and return it

setCookieKey($val)   X-Ref
No description

getURL()   X-Ref
No description

setURL($site)   X-Ref
No description

getLanguage()   X-Ref
No description

setLanguage($lang)   X-Ref
No description

setDisplayName($nick)   X-Ref
No description

getDisplayName()   X-Ref
No description

isAdmin()   X-Ref
No description

setAdmin($val)   X-Ref
No description

canLogin()   X-Ref
No description

setCanLogin($val)   X-Ref
No description

getNotes()   X-Ref
No description

setNotes($val)   X-Ref
No description

getAutosave()   X-Ref
No description

setAutosave($val)   X-Ref
No description

getID()   X-Ref
No description

exists($name)   X-Ref
Returns true if there is a member with the given login name

existsID($id)   X-Ref
Returns true if there is a member with the given ID

isNameProtected($name)   X-Ref
Checks if a username is protected.
If so, it can not be used on anonymous comments

create($name, $realname, $password, $email, $url, $admin, $canlogin, $notes)   X-Ref
Adds a new member

getActivationInfo($key)   X-Ref
Returns activation info for a certain key (an object with properties vkey, vmember, ...)

author: karma

generateActivationEntry($type, $extra = '')   X-Ref
Creates an account activation key

author: dekarma
param: $type one of the following values (determines what to do when activation expires)
param: $extra extra info (needed when validation link expires)

activate($key)   X-Ref
Inidicates that an activation link has been clicked and any forms displayed
there have been successfully filled out.

author: dekarma

cleanupActivationTable()   X-Ref
Cleans up entries in the activation table. All entries older than 2 days are removed.

author: dekarma

Generated: Mon May 2 16:14:08 2011 Cross-referenced by PHPXref 0.7.1