/** * Construtor da classe de Upload * @param string $adapter * @param boolean $direction * @param array $options */ public function __construct($adapter = 'Http', $direction = FALSE, $options = array()) { parent::__construct($adapter, $direction, $options); $this->_direction = (int) $direction; if (NULL !== $options) { $this->setConfig($options); } $this->getAdapter()->addValidator('MimeType', TRUE, array()); }
/** * @param string $adapter * @param bool $direction * @param array $options */ public function __construct($adapter = "\\Pimcore\\File\\Transfer\\Adapter\\Http", $direction = false, $options = array()) { parent::__construct($adapter, $direction, $options); }