PHP 클래스 Aimeos\ShopBundle\Command\AccountCommand

상속: extends Aimeos\ShopBundle\Command\Command
파일 보기 프로젝트 열기: aimeos/aimeos-symfony2

보호된 메소드들

메소드 설명
addGroup ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output, Aimeos\MShop\Context\Item\Iface $context, Aimeos\MShop\Customer\Item\Iface $user, string $group ) Adds the group to the given user
addListItem ( Aimeos\MShop\Context\Item\Iface $context, string $userid, string $groupid ) Associates the user to the group by their given IDs
configure ( ) Configures the command name and description.
createCustomerItem ( Aimeos\MShop\Context\Item\Iface $context, string $email, string $password ) : Aimeos\MShop\Customer\Item\Iface Returns the customer item for the given e-mail and set its password
execute ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output ) Execute the console command.
getGroupItem ( Aimeos\MShop\Context\Item\Iface $context, string $code ) : Aimeos\MShop\Customer\Item\Group\Iface Returns the customer group item for the given code

메소드 상세

addGroup() 보호된 메소드

Adds the group to the given user
protected addGroup ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output, Aimeos\MShop\Context\Item\Iface $context, Aimeos\MShop\Customer\Item\Iface $user, string $group )
$input Symfony\Component\Console\Input\InputInterface Input object
$output Symfony\Component\Console\Output\OutputInterface Output object
$context Aimeos\MShop\Context\Item\Iface Aimeos context object
$user Aimeos\MShop\Customer\Item\Iface Aimeos customer object
$group string Unique customer group code

addListItem() 보호된 메소드

Associates the user to the group by their given IDs
protected addListItem ( Aimeos\MShop\Context\Item\Iface $context, string $userid, string $groupid )
$context Aimeos\MShop\Context\Item\Iface Aimeos context object
$userid string Unique user ID
$groupid string Unique group ID

configure() 보호된 메소드

Configures the command name and description.
protected configure ( )

createCustomerItem() 보호된 메소드

If the customer doesn't exist yet, it will be created.
protected createCustomerItem ( Aimeos\MShop\Context\Item\Iface $context, string $email, string $password ) : Aimeos\MShop\Customer\Item\Iface
$context Aimeos\MShop\Context\Item\Iface Aimeos context object
$email string Unique e-mail address
$password string New user password
리턴 Aimeos\MShop\Customer\Item\Iface Aimeos customer item object

execute() 보호된 메소드

Execute the console command.
protected execute ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output )
$input Symfony\Component\Console\Input\InputInterface Input object
$output Symfony\Component\Console\Output\OutputInterface Output object

getGroupItem() 보호된 메소드

Returns the customer group item for the given code
protected getGroupItem ( Aimeos\MShop\Context\Item\Iface $context, string $code ) : Aimeos\MShop\Customer\Item\Group\Iface
$context Aimeos\MShop\Context\Item\Iface Aimeos context object
$code string Unique customer group code
리턴 Aimeos\MShop\Customer\Item\Group\Iface Aimeos customer group item object