PHP Class Aimeos\ShopBundle\Command\AccountCommand

Inheritance: extends Aimeos\ShopBundle\Command\Command
Show file Open project: aimeos/aimeos-symfony2

Protected Methods

Method Description
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

Method Details

addGroup() protected method

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() protected method

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() protected method

Configures the command name and description.
protected configure ( )

createCustomerItem() protected method

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
return Aimeos\MShop\Customer\Item\Iface Aimeos customer item object

execute() protected method

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() protected method

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
return Aimeos\MShop\Customer\Item\Group\Iface Aimeos customer group item object