PHP Interface Sulu\Bundle\RouteBundle\Entity\RouteRepositoryInterface

Show file Open project: sulu/sulu Interface Usage Examples

Public Methods

Method Description
createNew ( ) : Sulu\Bundle\RouteBundle\Model\RouteInterface Returns new route entity.
find ( integer $id ) : Sulu\Bundle\RouteBundle\Model\RouteInterface Returns route-entity by id.
findByPath ( string $path, string $locale ) : Sulu\Bundle\RouteBundle\Model\RouteInterface Returns route-entity by route.

Method Details

createNew() public method

Returns new route entity.
public createNew ( ) : Sulu\Bundle\RouteBundle\Model\RouteInterface
return Sulu\Bundle\RouteBundle\Model\RouteInterface

find() public method

Returns route-entity by id.
public find ( integer $id ) : Sulu\Bundle\RouteBundle\Model\RouteInterface
$id integer
return Sulu\Bundle\RouteBundle\Model\RouteInterface

findByPath() public method

Returns route-entity by route.
public findByPath ( string $path, string $locale ) : Sulu\Bundle\RouteBundle\Model\RouteInterface
$path string
$locale string
return Sulu\Bundle\RouteBundle\Model\RouteInterface