Deny all given rows groups to all users
static Boolean
denyRowGroupsToUsers
(array $groups)
-
array
$groups: : the groups name to deny
Deny all given templates groups to all users
static Boolean
denyTemplateGroupsToUsers
(array $groups)
-
array
$groups: : the groups name to deny
Returns all the profile users, sorted by last name + first name.
Static function.
static array(CMS_profile_user)
getAll
([boolean $activeOnly = false], [boolean $withDeleted = false], [boolean $returnObjects = true], [array $attrs = array()])
-
boolean
$activeOnly: activeOnly : return only active users (default : false)
-
boolean
$withDeleted: withDeleted : return deleted users also (default false)
-
boolean
$returnObjects: returnObjects : return CMS_profile_user objects (default) or array of userId
-
array
$attrs: attrs : filter for search : array($attrName => $attrValue)
Returns a CMS_profile_user when given an ID Static function.
-
integer
$id: The DB ID of the wanted CMS_profile_user
-
boolean
$reset: : Reset the local cache (force to reload user from DB)
Returns an active CMS_profile_user with a given user login Static function.
-
string
$login: The user login of the wanted CMS_profile_user
-
boolean
$reset: : Reset the local cache (force to reload user from DB)
Get all the letters that have a least one user with a lastname beginning with Static function.
static array(string)
getLettersForLastName
()
Get all users labels
static array(id
getUsersLabels
([ $activeOnly = false], [ $lastNameFirst = false])
-
$activeOnly
-
$lastNameFirst
Returns a queried CMS_profile_user value Static function.
static
CMS_profile_user
getUserValue
(
mixed $id,
string $type, [
integer $currentUserId =
null])
-
mixed
$id: The DB ID of the wanted CMS_profile_user or "self" to get info from the user passed in third parameter
-
string
$type: The value type to get
-
integer
$currentUserId: The user Id to get the value if first parameter is "self"
Returns all the validators.
Static function.
static array(CMS_profile_user)
getValidators
(string $moduleCodename)
-
string
$moduleCodename: The codename of the module to validate
Has a user the right to view a page biven by its ID ? Static function.
-
CMS_profile_user
$user: The user viewing the page
-
integer
$pageID: The DB ID of the page
-
&$cms_user
Checks all the profile users, except $user to see if login doesnt exist.
Static function.
static
boolean
loginExists
(
string $login, [
CMS_profile_user $user =
false], [
boolean $returnProfileUserId =
false])
-
CMS_profile_user
$user
-
string
$login
-
boolean
$returnProfileUserId: : if true, return the user ID
Search users Static function.
static array(CMS_profile_user)
search
([string $search = ''], [string $letter = ''], [integer $group = ''], [string $order = ''], [integer $direction = 'asc'], [integer $start = 0], [boolean $limit = 0], [boolean $activeOnly = false], [ $returnObjects = true], [ &$score = array()])
-
string
$search: search : search user by lastname, firstname or login
-
string
$letter: letter : search user by first lastname letter
-
integer
$group: group : search user by group ID
-
string
$order: order : order by fieldname (without suffix). default : lastname, firstname
-
integer
$direction: start : search start offset
-
integer
$start: limit : search limit (default : 0 : unlimited)
-
boolean
$limit: activeOnly : return only active users (default : false)
-
boolean
$activeOnly: returnObjects : return CMS_profile_user objects (default) or array of userId
-
$returnObjects
-
&$score
Get user by ID
static string
soapGetUser
([integer $userId = 0])
-
integer
$userId: The user ID
Search users by xml definition. Return XML
static string
soapSearch
([string $searchConditions = ''])
-
string
$searchConditions: XML definition to search with ('id','login','firstName','lastName','contactData','profile','language')
Inherited Methods
Inherited From CMS_grandFather
CMS_grandFather::autoload()
CMS_grandFather::hasError()
CMS_grandFather::log()
CMS_grandFather::PHPErrorHandler()
CMS_grandFather::raiseError()
CMS_grandFather::setDebug()
CMS_grandFather::setLog()
CMS_grandFather::_raiseError()
CMS_grandFather::__call()