public function initialize($params)
 {
     //declare current class as attribute handler
     $this->registerAttributeHandler($this, array("frontend_input:(media_image|gallery)"));
     $this->magdir = Magmi_Config::getInstance()->getMagentoDir();
     $this->_mdh = MagentoDirHandlerFactory::getInstance()->getHandler($this->magdir);
     $this->forcename = $this->getParam("IMG:renaming");
     foreach ($params as $k => $v) {
         if (preg_match_all("/^IMG_ERR:(.*)\$/", $k, $m)) {
             $this->errattrs[$m[1][0]] = $params[$k];
         }
     }
     $this->debug = $this->getParam("IMG:debug", 0);
 }
 public function initialize($params)
 {
     // declare current class as attribute handler
     $this->registerAttributeHandler($this, array("frontend_input:(media_image|gallery)"));
     $this->magdir = Magmi_Config::getInstance()->getMagentoDir();
     $this->_mdh = MagentoDirHandlerFactory::getInstance()->getHandler($this->magdir);
     $this->_mdh->setRemoteGetterId("image");
     // remote root
     if ($this->getParam("IMG:remoteroot", "")) {
         if ($this->getParam("IMG:remoteauth", false) == true) {
             $this->_mdh->setRemoteCredentials($this->getParam("IMG:remoteuser"), $this->getParam("IMG:remotepass"));
         }
         $this->_remoteroot = $this->getParam("IMG:remoteroot");
     }
     $this->forcename = $this->getParam("IMG:renaming");
     foreach ($params as $k => $v) {
         if (preg_match_all("/^IMG_ERR:(.*)\$/", $k, $m)) {
             $this->errattrs[$m[1][0]] = $params[$k];
         }
     }
     $this->debug = $this->getParam("IMG:debug", 0);
 }
Пример #3
0
 /**
  * Constructor
  * 
  * @param unknown $magdir            
  */
 public function __construct($magdir)
 {
     parent::__construct($magdir);
     // Registers itself in the factory
     MagentoDirHandlerFactory::getInstance()->registerHandler($this);
     $this->_rfgid = "default";
 }
 public function initialize($params)
 {
     $magdir = Magmi_Config::getInstance()->getMagentoDir();
     $this->_mdh = MagentoDirHandlerFactory::getInstance()->getHandler($magdir);
     $this->log("Using execution mode :" . $this->_mdh->getexecmode(), "startup");
 }
Пример #5
0
 public function __construct($magdir)
 {
     parent::__construct($magdir);
     MagentoDirHandlerFactory::getInstance()->registerHandler($this);
 }
Пример #6
0
 public function patchFSHelper()
 {
     MagentoDirHandlerFactory::registerHandler($this);
 }
Пример #7
0
 public function initialize($params)
 {
     $magdir = Magmi_Config::getInstance()->getMagentoDir();
     $this->_mdh = MagentoDirHandlerFactory::getInstance()->getHandler($magdir);
 }