Example #1
0
 /**
  * @param \Magento\Framework\View\Element\Template\Context $context         
  * @param \Magento\Framework\Registry                      $registry        
  * @param \Ves\Brand\Helper\Data                           $brandHelper     
  * @param \Ves\Brand\Model\Brand                           $brandCollection 
  * @param array                                            $data            
  */
 public function __construct(\Magento\Framework\View\Element\Template\Context $context, \Magento\Framework\Registry $registry, \Ves\Brand\Helper\Data $brandHelper, \Ves\Brand\Model\Brand $brandCollection, array $data = [])
 {
     $this->_brandCollection = $brandCollection;
     $this->_brandHelper = $brandHelper;
     $this->_coreRegistry = $registry;
     parent::__construct($context, $brandHelper);
 }
 /**
  * Constructor
  *
  * @uses AbstractWidget::__construct()
  *
  * @param \WP_Customize_Manager $manager
  * @param string                $id
  * @param array                 $args
  */
 public function __construct($manager, $id, array $args)
 {
     parent::__construct($manager, $id, $args);
     if (!empty($args['available_widgets'])) {
         $this->_available_widgets = $args['available_widgets'];
     }
     add_action('customize_controls_print_footer_scripts', function () {
         $this->_render_widgets_list();
     });
 }
 /**
  * @param string $id
  * @param array $options
  */
 public function __construct($id, array $options = [])
 {
     parent::__construct($options);
     $this->id = $id;
 }
Example #4
0
File: Box.php Project: neatphp/neat
 /**
  * Constructor.
  */
 public function __construct()
 {
     parent::__construct();
     $this->top = new Bar();
     $this->bottom = new Bar();
 }
Example #5
0
 /**
  * Constructor.
  *
  * @param \Magento\Framework\View\Element\Template\Context                        $context
  * @param \Magento\Customer\Helper\Address                              $addressHelper
  * @param \Magento\Customer\Service\V1\CustomerMetadataServiceInterface $attributeMetadata
  * @param array                                                         $data
  */
 public function __construct(\Magento\Framework\View\Element\Template\Context $context, \Magento\Customer\Helper\Address $addressHelper, \Magento\Customer\Service\V1\CustomerMetadataServiceInterface $attributeMetadata, array $data = array())
 {
     parent::__construct($context, $addressHelper, $attributeMetadata, $data);
     $this->_isScopePrivate = true;
 }
Example #6
0
 public function __construct(EngineInterface $templatingEngine, ContainerInterface $container, array $data = array(), array $parameters = array())
 {
     parent::__construct($data, $parameters);
     $this->container = $container;
     $this->setEngine($templatingEngine);
 }