PHP 클래스 Aimeos\ShopBundle\Service\Context

저자: Garret Watkins ([email protected])
파일 보기 프로젝트 열기: aimeos/aimeos-symfony2

공개 메소드들

메소드 설명
__construct ( Symfony\Component\DependencyInjection\Container $container ) Initializes the context manager object
get ( boolean $locale = true, string $type = 'frontend' ) : Aimeos\MShop\Context\Item\Iface Returns the current context.

보호된 메소드들

메소드 설명
addCache ( Aimeos\MShop\Context\Item\Iface $context ) : Aimeos\MShop\Context\Item\Iface Adds the cache object to the context
addDatabaseManager ( Aimeos\MShop\Context\Item\Iface $context ) : Aimeos\MShop\Context\Item\Iface Adds the database manager object to the context
addFilesystemManager ( Aimeos\MShop\Context\Item\Iface $context ) : Aimeos\MShop\Context\Item\Iface Adds the filesystem manager object to the context
addLogger ( Aimeos\MShop\Context\Item\Iface $context ) : Aimeos\MShop\Context\Item\Iface Adds the logger object to the context
addMailer ( Aimeos\MShop\Context\Item\Iface $context ) : Aimeos\MShop\Context\Item\Iface Adds the mailer object to the context
addMessageQueueManager ( Aimeos\MShop\Context\Item\Iface $context ) : Aimeos\MShop\Context\Item\Iface Adds the message queue manager object to the context
addSession ( Aimeos\MShop\Context\Item\Iface $context ) : Aimeos\MShop\Context\Item\Iface Adds the session object to the context
addUserGroups ( Aimeos\MShop\Context\Item\Iface $context ) Adds the user ID and name if available

메소드 상세

__construct() 공개 메소드

Initializes the context manager object
public __construct ( Symfony\Component\DependencyInjection\Container $container )
$container Symfony\Component\DependencyInjection\Container Container object to access parameters

addCache() 보호된 메소드

Adds the cache object to the context
protected addCache ( Aimeos\MShop\Context\Item\Iface $context ) : Aimeos\MShop\Context\Item\Iface
$context Aimeos\MShop\Context\Item\Iface Context object including config
리턴 Aimeos\MShop\Context\Item\Iface Modified context object

addDatabaseManager() 보호된 메소드

Adds the database manager object to the context
protected addDatabaseManager ( Aimeos\MShop\Context\Item\Iface $context ) : Aimeos\MShop\Context\Item\Iface
$context Aimeos\MShop\Context\Item\Iface Context object
리턴 Aimeos\MShop\Context\Item\Iface Modified context object

addFilesystemManager() 보호된 메소드

Adds the filesystem manager object to the context
protected addFilesystemManager ( Aimeos\MShop\Context\Item\Iface $context ) : Aimeos\MShop\Context\Item\Iface
$context Aimeos\MShop\Context\Item\Iface Context object
리턴 Aimeos\MShop\Context\Item\Iface Modified context object

addLogger() 보호된 메소드

Adds the logger object to the context
protected addLogger ( Aimeos\MShop\Context\Item\Iface $context ) : Aimeos\MShop\Context\Item\Iface
$context Aimeos\MShop\Context\Item\Iface Context object
리턴 Aimeos\MShop\Context\Item\Iface Modified context object

addMailer() 보호된 메소드

Adds the mailer object to the context
protected addMailer ( Aimeos\MShop\Context\Item\Iface $context ) : Aimeos\MShop\Context\Item\Iface
$context Aimeos\MShop\Context\Item\Iface Context object
리턴 Aimeos\MShop\Context\Item\Iface Modified context object

addMessageQueueManager() 보호된 메소드

Adds the message queue manager object to the context
protected addMessageQueueManager ( Aimeos\MShop\Context\Item\Iface $context ) : Aimeos\MShop\Context\Item\Iface
$context Aimeos\MShop\Context\Item\Iface Context object
리턴 Aimeos\MShop\Context\Item\Iface Modified context object

addSession() 보호된 메소드

Adds the session object to the context
protected addSession ( Aimeos\MShop\Context\Item\Iface $context ) : Aimeos\MShop\Context\Item\Iface
$context Aimeos\MShop\Context\Item\Iface Context object
리턴 Aimeos\MShop\Context\Item\Iface Modified context object

addUserGroups() 보호된 메소드

Adds the user ID and name if available
protected addUserGroups ( Aimeos\MShop\Context\Item\Iface $context )
$context Aimeos\MShop\Context\Item\Iface Context object

get() 공개 메소드

Returns the current context.
public get ( boolean $locale = true, string $type = 'frontend' ) : Aimeos\MShop\Context\Item\Iface
$locale boolean True to add locale object to context, false if not
$type string Configuration type ("frontend" or "backend")
리턴 Aimeos\MShop\Context\Item\Iface Context object