(PHP 5)
- ZIP file is unzipped and analyzed
public XBRL::zipFiles ( string $file [, int $print , int $lists , string $ajaxfile, int $xbrlid] )
* Class 'dUnzip2' is necessary. ('/xbrlphp/dunzip2/dUnzip2.inc.php')
* It corresponds to the ZIP file of XBRL that can be acquired with EDINET and TDnet.
* It corresponds to Ajax output.
$file = "test.zip"; require_once("/xbrlphp/xml/XBRL.php"); $xbrl = new XBRL(); $array = $xbrl->zipFiles($file); var_dump($array);
$file = "test.zip"; require_once("/xbrlphp/xml/XBRL.php"); $xbrl = new XBRL(); $xbrl->zipFiles($file, 1);
$file = "test.zip"; require_once("/xbrlphp/xml/XBRL.php"); $xbrl = new XBRL(); $xbrl->zipFiles($file, "", 1);
$file = "test.zip"; $filename = "test2.txt"; require_once("/xbrlphp/xml/XBRL.php"); $xbrl = new XBRL(); $xbrl->zipFiles($file, "", 1, $filename);
$file = "test.zip"; require_once("/xbrlphp/xml/XBRL.php"); $xbrl = new XBRL(); $xbrl->zipFiles($file, "", "", "", 1);