XBRL for PHP - Manual

XBRL::zipFiles

(PHP 5)

- ZIP file is unzipped and analyzed

Description

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.

Parameters

$file
The specified ZIP file is unzipped and analyzed.
$print
When '1' is specified, it displays information about each element of the ZIP file in a way that's readable by humans.
$lists
When '1' is specified, the list of the file name (included ZIP) is returned by the array.
$ajaxfile
The content of the specified file is returned to easy-to-use by Ajax.
$xbrlid
When '1' is specified, It corresponds to the XBRL expanding account of EDINET and TDnet. (*XBRL for PHP ver.0.11 - )

Examples 1

$file = "test.zip";

require_once("/xbrlphp/xml/XBRL.php");
$xbrl = new XBRL();
$array = $xbrl->zipFiles($file);
var_dump($array);

Examples 2

$file = "test.zip";

require_once("/xbrlphp/xml/XBRL.php");
$xbrl = new XBRL();
$xbrl->zipFiles($file, 1);

Examples 3

$file = "test.zip";

require_once("/xbrlphp/xml/XBRL.php");
$xbrl = new XBRL();
$xbrl->zipFiles($file, "", 1);

Examples 4

$file = "test.zip";
$filename = "test2.txt";

require_once("/xbrlphp/xml/XBRL.php");
$xbrl = new XBRL();
$xbrl->zipFiles($file, "", 1, $filename);

Examples 5

$file = "test.zip";

require_once("/xbrlphp/xml/XBRL.php");
$xbrl = new XBRL();
$xbrl->zipFiles($file, "", "", "", 1);

XBRL for PHP - Manual

XBRL for PHP