Свойство | Type | Description | |
---|---|---|---|
$currencyDetector | Sonata\Component\Currency\CurrencyDetectorInterface | ||
$productRepository | Doctrine\ORM\EntityRepository |
Méthode | Description | |
---|---|---|
__construct ( string $name, Symfony\Bundle\FrameworkBundle\Templating\EngineInterface $templating, Symfony\Bridge\Doctrine\RegistryInterface $registry, Sonata\Component\Currency\CurrencyDetectorInterface $currencyDetector, string $productClass ) | ||
buildEditForm ( Sonata\AdminBundle\Form\FormMapper $formMapper, Sonata\BlockBundle\Model\BlockInterface $block ) | ||
configureSettings ( Symfony\Component\OptionsResolver\OptionsResolver $resolver ) | ||
execute ( Sonata\BlockBundle\Block\BlockContextInterface $blockContext, |
||
getName ( ) | ||
validateBlock ( Sonata\CoreBundle\Validator\ErrorElement $errorElement, Sonata\BlockBundle\Model\BlockInterface $block ) |
Méthode | Description | |
---|---|---|
getProductRepository ( ) : |
Returns the Base ProductRepository. |
public __construct ( string $name, Symfony\Bundle\FrameworkBundle\Templating\EngineInterface $templating, Symfony\Bridge\Doctrine\RegistryInterface $registry, Sonata\Component\Currency\CurrencyDetectorInterface $currencyDetector, string $productClass ) | ||
$name | string | |
$templating | Symfony\Bundle\FrameworkBundle\Templating\EngineInterface | |
$registry | Symfony\Bridge\Doctrine\RegistryInterface | |
$currencyDetector | Sonata\Component\Currency\CurrencyDetectorInterface | |
$productClass | string |
public buildEditForm ( Sonata\AdminBundle\Form\FormMapper $formMapper, Sonata\BlockBundle\Model\BlockInterface $block ) | ||
$formMapper | Sonata\AdminBundle\Form\FormMapper | |
$block | Sonata\BlockBundle\Model\BlockInterface |
public configureSettings ( Symfony\Component\OptionsResolver\OptionsResolver $resolver ) | ||
$resolver | Symfony\Component\OptionsResolver\OptionsResolver |
public execute ( Sonata\BlockBundle\Block\BlockContextInterface $blockContext, |
||
$blockContext | Sonata\BlockBundle\Block\BlockContextInterface | |
$response |
protected getProductRepository ( ) : |
||
Résultat |
public validateBlock ( Sonata\CoreBundle\Validator\ErrorElement $errorElement, Sonata\BlockBundle\Model\BlockInterface $block ) | ||
$errorElement | Sonata\CoreBundle\Validator\ErrorElement | |
$block | Sonata\BlockBundle\Model\BlockInterface |
protected CurrencyDetectorInterface,Sonata\Component\Currency $currencyDetector | ||
Résultat | Sonata\Component\Currency\CurrencyDetectorInterface |