PHP 클래스 Newscoop\Services\ListUserService

파일 보기 프로젝트 열기: sourcefabric/newscoop 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$config array
$em Doctrine\ORM\EntityManager

공개 메소드들

메소드 설명
__construct ( array $config, EntityManager $em )
countBy ( array $criteria = [] ) : integer Count by given criteria
findBy ( array $criteria, array $orderBy = [], integer $limit = NULL, integer $offset = NULL ) : array Find by given criteria
findByCriteria ( UserCriteria $criteria ) : Newscoop\ListResult; Find by criteria
findEditors ( integer $limit = NULL, integer $offset = NULL ) : array List editors
findOneBy ( array $criteria ) : User Find one user by criteria
findUsersBySearch ( $search, $countOnly = false, $page = 1, $limit = 25 ) : array Find user by string
findUsersLastNameInRange ( $letters, $countOnly = false, $page = 1, $limit = 25 ) : array List users by first letter
getActiveUsers ( $countOnly = false, $page = 1, $limit = 8, $editors = [] ) : array List active users
getEditorsCount ( ) : integer Get editors count
getRandomList ( integer $limit = 25 ) : array Get random list of users

보호된 메소드들

메소드 설명
getRepository ( ) : Newscoop\Entity\Repository\UserRepository Get repository

메소드 상세

__construct() 공개 메소드

public __construct ( array $config, EntityManager $em )
$config array
$em Doctrine\ORM\EntityManager

countBy() 공개 메소드

Count by given criteria
public countBy ( array $criteria = [] ) : integer
$criteria array
리턴 integer

findBy() 공개 메소드

Find by given criteria
public findBy ( array $criteria, array $orderBy = [], integer $limit = NULL, integer $offset = NULL ) : array
$criteria array
$orderBy array
$limit integer
$offset integer
리턴 array

findByCriteria() 공개 메소드

Find by criteria
public findByCriteria ( UserCriteria $criteria ) : Newscoop\ListResult;
$criteria Newscoop\User\UserCriteria
리턴 Newscoop\ListResult;

findEditors() 공개 메소드

List editors
public findEditors ( integer $limit = NULL, integer $offset = NULL ) : array
$limit integer
$offset integer
리턴 array

findOneBy() 공개 메소드

Find one user by criteria
public findOneBy ( array $criteria ) : User
$criteria array
리턴 Newscoop\Entity\User

findUsersBySearch() 공개 메소드

Find user by string
public findUsersBySearch ( $search, $countOnly = false, $page = 1, $limit = 25 ) : array
리턴 array

findUsersLastNameInRange() 공개 메소드

List users by first letter
public findUsersLastNameInRange ( $letters, $countOnly = false, $page = 1, $limit = 25 ) : array
리턴 array

getActiveUsers() 공개 메소드

List active users
public getActiveUsers ( $countOnly = false, $page = 1, $limit = 8, $editors = [] ) : array
리턴 array

getEditorsCount() 공개 메소드

Get editors count
public getEditorsCount ( ) : integer
리턴 integer

getRandomList() 공개 메소드

Get random list of users
public getRandomList ( integer $limit = 25 ) : array
$limit integer
리턴 array

getRepository() 보호된 메소드

Get repository
protected getRepository ( ) : Newscoop\Entity\Repository\UserRepository
리턴 Newscoop\Entity\Repository\UserRepository

프로퍼티 상세

$config 보호되어 있는 프로퍼티

protected array $config
리턴 array

$em 보호되어 있는 프로퍼티

protected EntityManager,Doctrine\ORM $em
리턴 Doctrine\ORM\EntityManager