public function __construct($options) { parent::__construct($options); if (isset($options['workspace'])) { $this->workspace = $options['workspace']; } else { $this->workspace = Billrun_Factory::config()->getConfigValue('ilds.workspace', './workspace/'); } }
public function __construct($options) { parent::__construct($options); $this->ftpConfig = isset($options['ftp']['host']) ? array($options['ftp']) : $options['ftp']; if (isset($options['ftp']['remote_directory'])) { $this->ftp_path = $options['ftp']['remote_directory']; } if (isset($options['workspace'])) { $this->workspace = $options['workspace']; } Zend_Ftp_Factory::registerParserType(Zend_Ftp::UNKNOWN_SYSTEM_TYPE, 'Zend_Ftp_Parser_NsnFtpParser'); Zend_Ftp_Factory::registerInteratorType(Zend_Ftp::UNKNOWN_SYSTEM_TYPE, 'Zend_Ftp_Directory_NsnIterator'); Zend_Ftp_Factory::registerFileType(Zend_Ftp::UNKNOWN_SYSTEM_TYPE, 'Zend_Ftp_File_NsnCDRFile'); Zend_Ftp_Factory::registerDirecotryType(Zend_Ftp::UNKNOWN_SYSTEM_TYPE, 'Zend_Ftp_Directory_Nsn'); }
public function __construct($options) { parent::__construct($options); if (isset($options['workspace'])) { $this->workspace = $options['workspace']; } if (isset($options['path'])) { $this->srcPath = $options['path']; } else { if (isset($options['receiver']['path'])) { $this->srcPath = $options['receiver']['path']; } } if (isset($options['receiver']['sort'])) { $this->sort = $options['receiver']['sort']; } if (isset($options['receiver']['order'])) { $this->order = $options['receiver']['order']; } }
public function __construct($options) { parent::__construct($options); if (isset($options['workspace'])) { $this->workspace = $options['workspace']; // if (!file_exists($this->workspace)) { // mkdir($this->workspace, 0755, true); // } } if (isset($options['file_content'])) { $this->file_content = $options['file_content']; } else { if (isset($options['receiver']['file_content'])) { $this->file_content = $options['receiver']['file_content']; } } if (isset($options['file_name'])) { $this->filename = $options['file_name']; } else { if (isset($options['receiver']['file_name'])) { $this->filename = $options['receiver']['file_name']; } } }