/** * @param \Magento\Framework\Stdlib\DateTime\TimezoneInterface $localeDate * @param \Magento\Framework\Logger $logger * @param \Magento\Customer\Service\V1\Data\Eav\AttributeMetadata $attribute * @param \Magento\Framework\Locale\ResolverInterface $localeResolver * @param null $value * @param string $entityTypeCode * @param bool $isAjax * @param \Magento\Core\Helper\Data $coreData * @param \Magento\Core\Model\File\Validator\NotProtectedExtension $fileValidator * @param \Magento\Framework\App\Filesystem $fileSystem */ public function __construct(\Magento\Framework\Stdlib\DateTime\TimezoneInterface $localeDate, \Magento\Framework\Logger $logger, \Magento\Customer\Service\V1\Data\Eav\AttributeMetadata $attribute, \Magento\Framework\Locale\ResolverInterface $localeResolver, $value, $entityTypeCode, $isAjax, \Magento\Core\Helper\Data $coreData, \Magento\Core\Model\File\Validator\NotProtectedExtension $fileValidator, \Magento\Framework\App\Filesystem $fileSystem) { parent::__construct($localeDate, $logger, $attribute, $localeResolver, $value, $entityTypeCode, $isAjax); $this->_coreData = $coreData; $this->_fileValidator = $fileValidator; $this->_fileSystem = $fileSystem; }
public function __construct($ticketingData, $productsData) { $this->setRequiredFields(array("csmdd33" => array("name" => "CS - Ticketing - CSMDD33", "xml" => "CSMDD33"), "csmdd34" => array("name" => "CS - Ticketing - CSMDD34", "xml" => "CSMDD34"))); parent::__construct($ticketingData); foreach ($productsData as $product) { $this->products_data[] = new Product($product); } }
public function __construct(array $details) { // Map event details to objects. $addresses = array_map(function ($address) { return new Address($address); }, $details); parent::__construct($addresses); }
public function __construct(array $details) { // If we have point data... if (isset($details['point'])) { // Wrap it in a Point object. $details['point'] = new Point($details['point']); } parent::__construct($details); }
public function __construct($digitalgoodsData, $productsData) { $this->products_data = new Collection(); $this->setRequiredFields(array("csmdd32" => array("name" => "CS - DigitalGoods - CSMDD32", "xml" => "CSMDD32"))); parent::__construct($digitalgoodsData); foreach ($productsData as $product) { $this->products_data[] = new Product($product); } }
public function __construct($serviceData, $productsData) { $this->products_data = new Collection(); $this->setRequiredFields(array("csmdd28" => array("name" => "CS - Services - CSMDD28", "xml" => "CSMDD28"))); $this->setOptionalFields(array("csmdd29" => array("name" => "CS - Services - CSMDD29", "xml" => "CSMDD29"), "csmdd30" => array("name" => "CS - Services - CSMDD30", "xml" => "CSMDD30"), "csmdd31" => array("name" => "CS - Services - CSMDD31", "xml" => "CSMDD31"))); parent::__construct($serviceData); foreach ($productsData as $product) { $this->products_data[] = new Product($product); } }
public function __construct($retailData, $productsData) { $this->products_data = new Collection(); $this->setRequiredFields(array("csstcity" => array("name" => "CS - Retail - CSSTCITY", "xml" => "CSSTCITY"), "csstcountry" => array("name" => "CS - Retail - CSSTCOUNTRY", "xml" => "CSSTCOUNTRY"), "csstemail" => array("name" => "CS - Retail - CSSTEMAIL", "xml" => "CSSTEMAIL"), "csstfirstname" => array("name" => "CS - Retail - CSSTFIRSTNAME", "xml" => "CSSTFIRSTNAME"), "csstlastname" => array("name" => "CS - Retail - CSSTLASTNAME", "xml" => "CSSTLASTNAME"), "csstphonenumber" => array("name" => "CS - Retail - CSSTPHONENUMBER", "xml" => "CSSTPHONENUMBER"), "csstpostalcode" => array("name" => "CS - Retail - CSSTPOSTALCODE", "xml" => "CSSTPOSTALCODE"), "csststate" => array("name" => "CS - Retail - CSSTSTATE", "xml" => "CSSTSTATE"), "csststreet1" => array("name" => "CS - Retail - CSSTSTREET1", "xml" => "CSSTSTREET1"))); $this->setOptionalFields(array("csststreet2" => array("name" => "CS - Retail - CSSTSTREET2", "xml" => "CSSTSTREET2"), "csmdd12" => array("name" => "CS - Retail - CSMDD12", "xml" => "CSMDD12"), "csmdd13" => array("name" => "CS - Retail - CSMDD13", "xml" => "CSMDD13"), "csmdd14" => array("name" => "CS - Retail - CSMDD14", "xml" => "CSMDD14"), "csmdd15" => array("name" => "CS - Retail - CSMDD15", "xml" => "CSMDD15"), "csmdd16" => array("name" => "CS - Retail - CSMDD16", "xml" => "CSMDD16"))); parent::__construct($retailData); foreach ($productsData as $product) { $this->products_data[] = new Product($product); } }
/** * @param \Magento\Framework\Stdlib\DateTime\TimezoneInterface $localeDate * @param \Magento\Framework\Logger $logger * @param \Magento\Customer\Service\V1\Data\Eav\AttributeMetadata $attribute * @param \Magento\Framework\Locale\ResolverInterface $localeResolver * @param string $value * @param string $entityTypeCode * @param bool $isAjax * @param \Magento\Framework\Stdlib\String $stringHelper */ public function __construct(\Magento\Framework\Stdlib\DateTime\TimezoneInterface $localeDate, \Magento\Framework\Logger $logger, \Magento\Customer\Service\V1\Data\Eav\AttributeMetadata $attribute, \Magento\Framework\Locale\ResolverInterface $localeResolver, $value, $entityTypeCode, $isAjax, \Magento\Framework\Stdlib\String $stringHelper) { parent::__construct($localeDate, $logger, $attribute, $localeResolver, $value, $entityTypeCode, $isAjax); $this->_string = $stringHelper; }
public function __construct($pagofacilData) { $this->setRequiredFields(array("recargo" => array("name" => "PagoFacil - Recargo", "xml" => "RECARGO"), "fechavto" => array("name" => "PagoFacil - FechaVto", "xml" => "FECHAVTO"), "fechavto2" => array("name" => "PagoFacil - FechaVto2", "xml" => "FECHAVTO2"))); parent::__construct($pagofacilData); }
public function __construct($id) { parent::__construct(); $sql = "SELECT * FROM products WHERE id = " . $id; $this->productInfo = $this->query($sql)->fetchAll(PDO::FETCH_ASSOC); }
public function getData() { $output = parent::getXmlData(); $output .= $this->products_data->getData("passanger"); return $output; }
public function __construct($pmcData) { $this->setRequiredFields(array("fechavto" => array("name" => "PagoMisCuentas - FechaVto", "xml" => "FECHAVTO"))); parent::__construct($pmcData); }
public function __construct($rapipagoData) { $this->setRequiredFields(array("cantdiasfechavenc" => array("name" => "Rapipago - CantDiasFechaVenc", "xml" => "CANTDIASFECHAVENC"), "cantdiaspago" => array("name" => "Rapipago - CantDiasPago", "xml" => "CANTDIASPAGO"), "recargo" => array("name" => "Rapipago - Recargo", "xml" => "RECARGO"), "fechavto" => array("name" => "Rapipago - FechaVto", "xml" => "FECHAVTO"), "cliente" => array("name" => "Rapipago - Cliente", "xml" => "CLIENTE"))); parent::__construct($rapipagoData); }
/** * @return string */ public function toRepresentation() { return parent::toRepresentation() . ($this->isPrefix ? '*' : ''); }
public function __construct($tarjetaData) { $this->setRequiredFields(array("cuotas" => array("name" => "Tarjeta Credito - Cuotas", "xml" => "CUOTAS"))); $this->setOptionalFields(array("bin" => array("name" => "Tarjeta Credito - BIN", "xml" => "BIN"))); parent::__construct($tarjetaData); }
/** * @return string */ public function toRepresentation() { return '"' . str_replace('"', '""', parent::toRepresentation()) . '"'; }
public function __construct($data = null, $options = []) { parent::__construct($data, array_merge(['type' => 'number'], $options)); }