PHP Класс Aimeos\ShopBundle\Command\AccountCommand

Наследование: extends Aimeos\ShopBundle\Command\Command
Показать файл Открыть проект

Защищенные методы

Метод Описание
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