checkStoreVersion/inc/class.csv.store.reader.php

35 lines
869 B
PHP
Raw Normal View History

2022-12-02 23:39:07 +00:00
<?php
/**
* @brief checkStoreVersion, a plugin for Dotclear 2
*
* @package Dotclear
* @subpackage Plugin
*
* @author Jean-Christian Denis and Contributors
*
* @copyright Jean-Christian Denis
* @copyright GPL-2.0 https://www.gnu.org/licenses/gpl-2.0.html
*/
2022-12-02 10:18:09 +00:00
class csvStoreReader extends dcStoreReader
{
# overwrite dcStoreReader to remove cache and use mvStoreParser
public function parse($url)
{
$this->validators = [];
if (!$this->getModulesXML($url) || $this->getStatus() != '200') {
return false;
}
return new csvStoreParser($this->getContent());
}
# overwrite dcStoreReader to remove cache and use mvStoreParser
public static function quickParse($url, $cache_dir = null, $force = true)
{
$parser = new self();
return $parser->parse($url);
}
}