예제 #1
0
파일: File.php 프로젝트: aiesh/magento2
 /**
  * @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;
 }
예제 #2
0
파일: Ticketing.php 프로젝트: lukio/sdk-php
 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);
 }
예제 #5
0
 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);
     }
 }
예제 #6
0
파일: Services.php 프로젝트: lukio/sdk-php
 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);
     }
 }
예제 #7
0
파일: Retail.php 프로젝트: lukio/sdk-php
 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);
     }
 }
예제 #8
0
파일: Text.php 프로젝트: aiesh/magento2
 /**
  * @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;
 }
예제 #9
0
파일: PagoFacil.php 프로젝트: lukio/sdk-php
 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);
 }
예제 #10
0
파일: product.php 프로젝트: haruya/ec_app
 public function __construct($id)
 {
     parent::__construct();
     $sql = "SELECT * FROM products WHERE id = " . $id;
     $this->productInfo = $this->query($sql)->fetchAll(PDO::FETCH_ASSOC);
 }
예제 #11
0
파일: Travel.php 프로젝트: lukio/sdk-php
 public function getData()
 {
     $output = parent::getXmlData();
     $output .= $this->products_data->getData("passanger");
     return $output;
 }
예제 #12
0
 public function __construct($pmcData)
 {
     $this->setRequiredFields(array("fechavto" => array("name" => "PagoMisCuentas - FechaVto", "xml" => "FECHAVTO")));
     parent::__construct($pmcData);
 }
예제 #13
0
파일: Rapipago.php 프로젝트: lukio/sdk-php
 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);
 }
예제 #14
0
파일: Lexeme.php 프로젝트: gridguyz/search
 /**
  * @return  string
  */
 public function toRepresentation()
 {
     return parent::toRepresentation() . ($this->isPrefix ? '*' : '');
 }
예제 #15
0
 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);
 }
예제 #16
0
파일: Phrase.php 프로젝트: gridguyz/search
 /**
  * @return  string
  */
 public function toRepresentation()
 {
     return '"' . str_replace('"', '""', parent::toRepresentation()) . '"';
 }
 public function __construct($data = null, $options = [])
 {
     parent::__construct($data, array_merge(['type' => 'number'], $options));
 }