예제 #1
0
 public function __construct($source, array $options = [], $sourceRoot = null, $lastModified = null)
 {
     if (is_null($sourceRoot)) {
         $sourceRoot = dirname($source);
     }
     parent::__construct($source, $options, $sourceRoot, $lastModified);
 }
예제 #2
0
 public function __construct($type, Source\DataSourceInterface $source, $options = array())
 {
     parent::__construct($type, $options);
     $this->source = $source;
     $this->initReader();
     $this->initWriter();
 }
예제 #3
0
 /**
  * @param \Magento\Eav\Model\Entity\Context $context
  * @param \Magento\Store\Model\StoreManagerInterface $storeManager
  * @param \Magento\Catalog\Model\Factory $modelFactory
  * @param \Magento\Framework\Event\ManagerInterface $eventManager
  * @param Category\TreeFactory $categoryTreeFactory
  * @param Category\CollectionFactory $categoryCollectionFactory
  * @param array $data
  */
 public function __construct(\Magento\Eav\Model\Entity\Context $context, \Magento\Store\Model\StoreManagerInterface $storeManager, \Magento\Catalog\Model\Factory $modelFactory, \Magento\Framework\Event\ManagerInterface $eventManager, \Magento\Catalog\Model\ResourceModel\Category\TreeFactory $categoryTreeFactory, \Magento\Catalog\Model\ResourceModel\Category\CollectionFactory $categoryCollectionFactory, $data = [])
 {
     parent::__construct($context, $storeManager, $modelFactory, $data);
     $this->_categoryTreeFactory = $categoryTreeFactory;
     $this->_categoryCollectionFactory = $categoryCollectionFactory;
     $this->_eventManager = $eventManager;
     $this->connectionName = 'catalog';
 }
예제 #4
0
 /**
  * Constructor
  *
  * @param mixed $name_or_obj
  */
 public function __construct($name_or_obj = null)
 {
     if (is_string($name_or_obj)) {
         $this->name = $name_or_obj;
     } else {
         parent::__construct($name_or_obj);
     }
 }
예제 #5
0
 /**
  * Construct
  *
  * @param \Magento\Framework\App\Resource $resource
  * @param \Magento\Eav\Model\Config $eavConfig
  * @param \Magento\Eav\Model\Entity\Attribute\Set $attrSetEntity
  * @param \Magento\Framework\Locale\FormatInterface $localeFormat
  * @param \Magento\Eav\Model\Resource\Helper $resourceHelper
  * @param \Magento\Framework\Validator\UniversalFactory $universalFactory
  * @param \Magento\Framework\StoreManagerInterface $storeManager
  * @param \Magento\Catalog\Model\Factory $modelFactory
  * @param \Magento\Catalog\Model\Resource\Category\CollectionFactory $categoryCollectionFactory
  * @param Category $catalogCategory
  * @param array $data
  *
  * @SuppressWarnings(PHPMD.ExcessiveParameterList)
  */
 public function __construct(\Magento\Framework\App\Resource $resource, \Magento\Eav\Model\Config $eavConfig, \Magento\Eav\Model\Entity\Attribute\Set $attrSetEntity, \Magento\Framework\Locale\FormatInterface $localeFormat, \Magento\Eav\Model\Resource\Helper $resourceHelper, \Magento\Framework\Validator\UniversalFactory $universalFactory, \Magento\Framework\StoreManagerInterface $storeManager, \Magento\Catalog\Model\Factory $modelFactory, \Magento\Catalog\Model\Resource\Category\CollectionFactory $categoryCollectionFactory, Category $catalogCategory, $data = array())
 {
     $this->_categoryCollectionFactory = $categoryCollectionFactory;
     $this->_catalogCategory = $catalogCategory;
     parent::__construct($resource, $eavConfig, $attrSetEntity, $localeFormat, $resourceHelper, $universalFactory, $storeManager, $modelFactory, $data);
     $this->setType(\Magento\Catalog\Model\Product::ENTITY)->setConnection('catalog_read', 'catalog_write');
     $this->_productWebsiteTable = $this->getTable('catalog_product_website');
     $this->_productCategoryTable = $this->getTable('catalog_category_product');
 }
예제 #6
0
 /**
  * @param \Magento\Eav\Model\Entity\Context $context
  * @param \Magento\Store\Model\StoreManagerInterface $storeManager
  * @param \Magento\Catalog\Model\Factory $modelFactory
  * @param \Magento\Framework\Event\ManagerInterface $eventManager
  * @param Category\TreeFactory $categoryTreeFactory
  * @param Category\CollectionFactory $categoryCollectionFactory
  * @param array $data
  */
 public function __construct(\Magento\Eav\Model\Entity\Context $context, \Magento\Store\Model\StoreManagerInterface $storeManager, \Magento\Catalog\Model\Factory $modelFactory, \Magento\Framework\Event\ManagerInterface $eventManager, \Magento\Catalog\Model\Resource\Category\TreeFactory $categoryTreeFactory, \Magento\Catalog\Model\Resource\Category\CollectionFactory $categoryCollectionFactory, $data = [])
 {
     parent::__construct($context, $storeManager, $modelFactory, $data);
     $this->_categoryTreeFactory = $categoryTreeFactory;
     $this->_categoryCollectionFactory = $categoryCollectionFactory;
     $this->_eventManager = $eventManager;
     $this->setType(\Magento\Catalog\Model\Category::ENTITY)->setConnection($this->_resource->getConnection('catalog_read'), $this->_resource->getConnection('catalog_write'));
     $this->_categoryProductTable = $this->getTable('catalog_category_product');
 }
예제 #7
0
 /**
  * @param \Magento\Eav\Model\Entity\Context $context
  * @param \Magento\Store\Model\StoreManagerInterface $storeManager
  * @param \Magento\Catalog\Model\Factory $modelFactory
  * @param Category\CollectionFactory $categoryCollectionFactory
  * @param Category $catalogCategory
  * @param \Magento\Framework\Event\ManagerInterface $eventManager
  * @param \Magento\Eav\Model\Entity\Attribute\SetFactory $setFactory
  * @param \Magento\Eav\Model\Entity\TypeFactory $typeFactory
  * @param \Magento\Catalog\Model\Product\Attribute\DefaultAttributes $defaultAttributes
  * @param array $data
  *
  * @SuppressWarnings(PHPMD.ExcessiveParameterList)
  */
 public function __construct(\Magento\Eav\Model\Entity\Context $context, \Magento\Store\Model\StoreManagerInterface $storeManager, \Magento\Catalog\Model\Factory $modelFactory, \Magento\Catalog\Model\ResourceModel\Category\CollectionFactory $categoryCollectionFactory, Category $catalogCategory, \Magento\Framework\Event\ManagerInterface $eventManager, \Magento\Eav\Model\Entity\Attribute\SetFactory $setFactory, \Magento\Eav\Model\Entity\TypeFactory $typeFactory, \Magento\Catalog\Model\Product\Attribute\DefaultAttributes $defaultAttributes, $data = [])
 {
     $this->_categoryCollectionFactory = $categoryCollectionFactory;
     $this->_catalogCategory = $catalogCategory;
     $this->eventManager = $eventManager;
     $this->setFactory = $setFactory;
     $this->typeFactory = $typeFactory;
     $this->defaultAttributes = $defaultAttributes;
     parent::__construct($context, $storeManager, $modelFactory, $data);
     $this->connectionName = 'catalog';
 }
예제 #8
0
파일: Product.php 프로젝트: opexsw/magento2
 /**
  * @param \Magento\Eav\Model\Entity\Context $context
  * @param \Magento\Store\Model\StoreManagerInterface $storeManager
  * @param \Magento\Catalog\Model\Factory $modelFactory
  * @param Category\CollectionFactory $categoryCollectionFactory
  * @param Category $catalogCategory
  * @param \Magento\Framework\Event\ManagerInterface $eventManager
  * @param \Magento\Eav\Model\Entity\Attribute\SetFactory $setFactory
  * @param \Magento\Eav\Model\Entity\TypeFactory $typeFactory
  * @param array $data
  *
  * @SuppressWarnings(PHPMD.ExcessiveParameterList)
  */
 public function __construct(\Magento\Eav\Model\Entity\Context $context, \Magento\Store\Model\StoreManagerInterface $storeManager, \Magento\Catalog\Model\Factory $modelFactory, \Magento\Catalog\Model\Resource\Category\CollectionFactory $categoryCollectionFactory, Category $catalogCategory, \Magento\Framework\Event\ManagerInterface $eventManager, \Magento\Eav\Model\Entity\Attribute\SetFactory $setFactory, \Magento\Eav\Model\Entity\TypeFactory $typeFactory, $data = [])
 {
     $this->_categoryCollectionFactory = $categoryCollectionFactory;
     $this->_catalogCategory = $catalogCategory;
     $this->eventManager = $eventManager;
     $this->setFactory = $setFactory;
     $this->typeFactory = $typeFactory;
     parent::__construct($context, $storeManager, $modelFactory, $data);
     $this->_read = 'catalog_read';
     $this->_write = 'catalog_write';
 }
예제 #9
0
 /**
  * @param \Magento\Eav\Model\Entity\Context $context
  * @param \Magento\Store\Model\StoreManagerInterface $storeManager
  * @param \Magento\Catalog\Model\Factory $modelFactory
  * @param Category\CollectionFactory $categoryCollectionFactory
  * @param Category $catalogCategory
  * @param \Magento\Framework\Event\ManagerInterface $eventManager
  * @param \Magento\Eav\Model\Entity\Attribute\SetFactory $setFactory
  * @param \Magento\Eav\Model\Entity\TypeFactory $typeFactory
  * @param array $data
  *
  * @SuppressWarnings(PHPMD.ExcessiveParameterList)
  */
 public function __construct(\Magento\Eav\Model\Entity\Context $context, \Magento\Store\Model\StoreManagerInterface $storeManager, \Magento\Catalog\Model\Factory $modelFactory, \Magento\Catalog\Model\Resource\Category\CollectionFactory $categoryCollectionFactory, Category $catalogCategory, \Magento\Framework\Event\ManagerInterface $eventManager, \Magento\Eav\Model\Entity\Attribute\SetFactory $setFactory, \Magento\Eav\Model\Entity\TypeFactory $typeFactory, $data = [])
 {
     $this->_categoryCollectionFactory = $categoryCollectionFactory;
     $this->_catalogCategory = $catalogCategory;
     $this->eventManager = $eventManager;
     $this->setFactory = $setFactory;
     $this->typeFactory = $typeFactory;
     parent::__construct($context, $storeManager, $modelFactory, $data);
     $this->setType(\Magento\Catalog\Model\Product::ENTITY)->setConnection('catalog_read', 'catalog_write');
     $this->_productWebsiteTable = $this->getTable('catalog_product_website');
     $this->_productCategoryTable = $this->getTable('catalog_category_product');
 }
예제 #10
0
파일: Modules.php 프로젝트: alab1001101/zf2
 /**
  * Constructor
  *
  * @param  mixed $options
  * @return void
  */
 public function __construct($options = null)
 {
     $this->_bootstraps = new \ArrayObject(array(), \ArrayObject::ARRAY_AS_PROPS);
     parent::__construct($options);
 }
예제 #11
0
파일: Quote.php 프로젝트: aiesh/magento2
 /**
  * @param \Magento\Framework\App\Resource $resource
  * @param \Magento\Framework\Stdlib\DateTime $dateTime
  * @param \Magento\Eav\Model\Config $config
  */
 public function __construct(\Magento\Framework\App\Resource $resource, \Magento\Framework\Stdlib\DateTime $dateTime, \Magento\Eav\Model\Config $config)
 {
     parent::__construct($resource, $dateTime);
     $this->_config = $config;
 }
예제 #12
0
 /**
  * Creates a new image resource.
  *
  * @param resource $resource A GD2 resource for an image.
  */
 public function __construct($resource)
 {
     parent::__construct($resource);
 }
예제 #13
0
 /**
  *	Constructor
  *
  *	Used to reset the endpoint for the BuzzAdapter
  *
  *	@param mixed  $adapter 		Adpater chosen during initialization
  *	@param int    $workspace 	Workspace used for reports
  *	@param string $user_agent 	Require User Agento
  */
 public function __construct($adapter, $workspace)
 {
     $this->workspace = $workspace;
     parent::__construct($adapter, 'https://toggl.com/reports/api/v2');
 }
 /**
  * Constructor
  *
  * @param  stdClass $response
  * @param  array $options
  * @ignore
  */
 public function __construct($response = null, $options = array())
 {
     $this->signers = new SignerList();
     parent::__construct($response, $options);
 }
 public function __construct($source, array $options = [])
 {
     parent::__construct($source, $options);
 }