PHP Class Ojs\CoreBundle\Service\ApiHandlerHelper

Show file Open project: ojs/ojs

Public Methods

Method Description
__construct ( Symfony\Component\HttpKernel\KernelInterface $kernel, Doctrine\Common\Annotations\Reader $reader, Liip\ImagineBundle\Templating\ImagineExtension $imagine, Symfony\Component\HttpFoundation\RequestStack $requestStack )
createFileHistory ( $fileName, $originalName, $type, $em, boolean $save = true ) : Jb\Bundle\FileUploaderBundle\Entity\FileHistory
getRequestStack ( ) : Symfony\Component\HttpFoundation\RequestStack
normalizeEntities ( $entities )
normalizeEntity ( $entity )

Method Details

__construct() public method

public __construct ( Symfony\Component\HttpKernel\KernelInterface $kernel, Doctrine\Common\Annotations\Reader $reader, Liip\ImagineBundle\Templating\ImagineExtension $imagine, Symfony\Component\HttpFoundation\RequestStack $requestStack )
$kernel Symfony\Component\HttpKernel\KernelInterface
$reader Doctrine\Common\Annotations\Reader
$imagine Liip\ImagineBundle\Templating\ImagineExtension
$requestStack Symfony\Component\HttpFoundation\RequestStack

createFileHistory() public method

public createFileHistory ( $fileName, $originalName, $type, $em, boolean $save = true ) : Jb\Bundle\FileUploaderBundle\Entity\FileHistory
$fileName
$originalName
$type
$em
$save boolean
return Jb\Bundle\FileUploaderBundle\Entity\FileHistory

getRequestStack() public method

public getRequestStack ( ) : Symfony\Component\HttpFoundation\RequestStack
return Symfony\Component\HttpFoundation\RequestStack

normalizeEntities() public method

public normalizeEntities ( $entities )

normalizeEntity() public method

public normalizeEntity ( $entity )
$entity