Method |
Description |
|
countAll ( ) : integer |
Get total users count |
|
countBy ( array $criteria ) : integer |
Get users count for given criteria |
|
delete ( User $user ) : void |
Delete user |
|
findActiveUsers ( boolean $countOnly, integer $offset, integer $limit, array $editorRoles ) : array | integer |
Find active members of community |
|
findEditors ( integer $blogRole, integer $limit, integer $offset ) : array |
Get editors |
|
findUsersLastNameInRange ( array $letters, $countOnly, $offset, $limit, $firstName = false ) : array |
Return Users if their last name begins with one of the letter passed in. |
|
findVerifiedUsers ( $countOnly, $offset, $limit ) |
|
|
getActiveUsers ( $public = true ) |
|
|
getBatch ( $count = self::BATCH_COUNT, array $filter = null ) : array |
Find users for indexing |
|
getEditorsCount ( integer $blogRole ) : integer |
Get editors count |
|
getExternalLoginCount ( ) : integer |
Get external login count |
|
getLatelyLoggedInUsers ( $daysNumber = 7, $count = false ) : integer |
Get getLatelyLoggedInUsers (logged in x days before today) |
|
getListByCriteria ( UserCriteria $criteria, $results = true ) : Newscoop\ListResult |
Get list for given criteria |
|
getNewscoopLoginCount ( ) : integer |
Get newscoop login count |
|
getOneActiveUser ( $id, $public = true ) |
|
|
getRandomList ( integer $limit ) : array |
Get random list of users |
|
isUnique ( string $property, string $value, integer $id = null ) : boolean |
Test if property value is unique |
|
save ( User $user, array $values ) : void |
Save user |
|
searchUsers ( string $search, $countOnly, $offset, $limit, array $attributes = ["first_name", "last_name", "username"] ) : array |
Return Users if any of their searched attributes contain the searched term. |
|
setIndexedNow ( array $users ) : void |
Set indexed now |
|
setIndexedNull ( array $items = null ) : void |
Set indexed null |
|
setUserPoints ( User $user = null, string | integer $authorId = null ) : void |
Set user points |
|