PHP Class Eko\FeedBundle\Service\FeedDumpService

This class helps to dump your feeds on filesystem
Mostrar archivo Open project: eko/feedbundle Class Usage Examples

Public Methods

Method Description
__construct ( FeedManager $feedManager, Doctrine\ORM\EntityManagerInterface $em, Symfony\Component\Filesystem\Filesystem $filesystem ) Constructor.
dump ( ) Dumps a feed from an entity or feed items using Filesystem component.
getRootDir ( ) : string Return rootdir.
setDirection ( string $direction ) Sets the value of direction.
setEntity ( mixed $entity ) Sets the value of entity.
setFilename ( string $filename ) Sets the value of filename.
setFormat ( string $format ) Sets the value of format.
setItems ( array $items ) Sets items to the feed.
setLimit ( integer $limit ) Sets the value of limit.
setName ( mixed $name ) Sets the value of name.
setOrderBy ( string $orderBy ) Sets the value of orderBy.
setRootDir ( string $rootDir ) Sets the value of rootDir.

Private Methods

Method Description
initDirection ( ) Initialize ordering.

Method Details

__construct() public method

Constructor.
public __construct ( FeedManager $feedManager, Doctrine\ORM\EntityManagerInterface $em, Symfony\Component\Filesystem\Filesystem $filesystem )
$feedManager Eko\FeedBundle\Feed\FeedManager A Feed manager
$em Doctrine\ORM\EntityManagerInterface A Doctrine entity manager
$filesystem Symfony\Component\Filesystem\Filesystem A Symfony Filesystem component

dump() public method

Dumps a feed from an entity or feed items using Filesystem component.
public dump ( )

getRootDir() public method

Return rootdir.
public getRootDir ( ) : string
return string

setDirection() public method

Sets the value of direction.
public setDirection ( string $direction )
$direction string

setEntity() public method

Sets the value of entity.
public setEntity ( mixed $entity )
$entity mixed the entity

setFilename() public method

Sets the value of filename.
public setFilename ( string $filename )
$filename string

setFormat() public method

Sets the value of format.
public setFormat ( string $format )
$format string

setItems() public method

Sets items to the feed.
public setItems ( array $items )
$items array items list

setLimit() public method

Sets the value of limit.
public setLimit ( integer $limit )
$limit integer

setName() public method

Sets the value of name.
public setName ( mixed $name )
$name mixed the name

setOrderBy() public method

Sets the value of orderBy.
public setOrderBy ( string $orderBy )
$orderBy string

setRootDir() public method

Sets the value of rootDir.
public setRootDir ( string $rootDir )
$rootDir string