PHP 클래스 Ojs\ApiBundle\Handler\UserHandler

파일 보기 프로젝트 열기: ojs/ojs

공개 메소드들

메소드 설명
__construct ( Doctrine\Common\Persistence\ObjectManager $om, $entityClass, Symfony\Component\Form\FormFactoryInterface $formFactory )
all ( integer $limit = 5, integer $offset ) : array Get a list of Users.
delete ( User $entity ) : User Delete a User.
generateRandomString ( $length = 10 )
get ( mixed $id ) : User Get a User.
patch ( User $entity, array $parameters ) : User Partially update a User.
post ( array $parameters ) : User Create a new User.
put ( User $entity, array $parameters ) : User Edit a User.

비공개 메소드들

메소드 설명
createUser ( )
processForm ( User $entity, array $parameters, String $method = "PUT" ) : User Processes the form.

메소드 상세

__construct() 공개 메소드

public __construct ( Doctrine\Common\Persistence\ObjectManager $om, $entityClass, Symfony\Component\Form\FormFactoryInterface $formFactory )
$om Doctrine\Common\Persistence\ObjectManager
$formFactory Symfony\Component\Form\FormFactoryInterface

all() 공개 메소드

Get a list of Users.
public all ( integer $limit = 5, integer $offset ) : array
$limit integer the limit of the result
$offset integer starting from the offset
리턴 array

delete() 공개 메소드

Delete a User.
public delete ( User $entity ) : User
$entity Ojs\UserBundle\Entity\User
리턴 Ojs\UserBundle\Entity\User

generateRandomString() 공개 메소드

public generateRandomString ( $length = 10 )

get() 공개 메소드

Get a User.
public get ( mixed $id ) : User
$id mixed
리턴 Ojs\UserBundle\Entity\User

patch() 공개 메소드

Partially update a User.
public patch ( User $entity, array $parameters ) : User
$entity Ojs\UserBundle\Entity\User
$parameters array
리턴 Ojs\UserBundle\Entity\User

post() 공개 메소드

Create a new User.
public post ( array $parameters ) : User
$parameters array
리턴 Ojs\UserBundle\Entity\User

put() 공개 메소드

Edit a User.
public put ( User $entity, array $parameters ) : User
$entity Ojs\UserBundle\Entity\User
$parameters array
리턴 Ojs\UserBundle\Entity\User