/** * Function to get all necessary files and the status, whether those files match with the original Shopware-Files */ public function getFileListAction() { $fileName = Shopware()->AppPath() . '/Components/Check/Data/Files.md5sums'; if (!is_file($fileName)) { $this->View()->assign(array('success' => true, 'data' => array())); return; } // skip dummy plugins $skipList = array('engine/Shopware/Plugins/Default/Backend/HeidelActions/Bootstrap.php', 'engine/Shopware/Plugins/Default/Backend/SwagBepado/Bootstrap.php', 'engine/Shopware/Plugins/Default/Frontend/HeidelPayment/Bootstrap.php', 'engine/Shopware/Plugins/Default/Frontend/MoptPaymentPayone/Bootstrap.php', 'engine/Shopware/Plugins/Default/Frontend/PaymentSkrill/Bootstrap.php', 'engine/Shopware/Plugins/Default/Frontend/PigmbhKlarnaPayment/Bootstrap.php', 'engine/Shopware/Plugins/Default/Frontend/PiPaymorrowPayment/Bootstrap.php', 'engine/Shopware/Plugins/Default/Frontend/SwagPaymentBillsafe/Bootstrap.php', 'engine/Shopware/Plugins/Default/Frontend/SwagPaymentPaypal/Bootstrap.php', 'engine/Shopware/Plugins/Default/Frontend/SwagTrustedShopsExcellence/Bootstrap.php', 'engine/Shopware/Plugins/Default/Frontend/SwagDhl/BootstrapDummy.php'); $list = new Shopware_Components_Check_File($fileName, Shopware()->DocPath(), $skipList); $this->View()->assign(array('success' => true, 'data' => $list->toArray())); }
/** * Function to get all necessary files and the status, whether those files match with the original Shopware-Files */ public function getFileListAction() { $fileName = Shopware()->AppPath() . '/Components/Check/Data/Files.md5sums'; if (!is_file($fileName)) { $this->View()->assign(array('success' => true, 'data' => array())); return; } // skip files from check $skipList = []; $list = new Shopware_Components_Check_File($fileName, Shopware()->DocPath(), $skipList); $this->View()->assign(array('success' => true, 'data' => $list->toArray())); }
/** * Function to get all necessary files and the status, whether those files match with the original Shopware-Files */ public function getFileListAction(){ $list = new Shopware_Components_Check_File(); $list->setTestDir(Shopware()->DocPath()); $this->View()->assign(array('success'=>true, 'data'=>$list->toArray())); }