WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru Самая быстрая Тема-конструктор для WordPress
функция не описана

PclZip::listContent() public WP 1.0

Function : listContent() Description : This public method, gives the list of the files and directories, with their properties. The properties of each entries in the list are (used also in other functions) :

filename : Name of the file. For a create or add action it is the filename
		   given by the user. For an extract function it is the filename
		   of the extracted file.
stored_filename : Name of the file / directory stored in the archive.
size : Size of the stored file.
compressed_size : Size of the file's data compressed in the archive
				  (without the headers overhead)
mtime : Last known modification date of the file (UNIX timestamp)
comment : Comment associated with the file
folder : true | false
index : index of the file in the archive
status : status of the action (depending of the action) :
		 Values are :
		   ok : OK !
		   filtered : the file / dir is not extracted (filtered by user)
		   already_a_directory : the file can not be extracted because a
								 directory with the same name already exists
		   write_protected : the file can not be extracted because a file
							 with the same name already exists and is
							 write protected
		   newer_exist : the file was not extracted because a newer file exists
		   path_creation_fail : the file is not extracted because the folder
								does not exist and can not be created
		   write_error : the file was not extracted because there was a
						 error while writing the file
		   read_error : the file was not extracted because there was a error
						while reading the file
		   invalid_header : the file was not extracted because of an archive
							format error (bad file header)

Note that each time a method can continue operating when there is an action error on a file, the error is only logged in the file status. Return Values :
0 on an unrecoverable failure, The list of the files in the archive.

Это метод класса: PclZip{}

Хуков нет.

Возвращает

Null. Ничего.

Использование

$PclZip = new PclZip();
$PclZip->listContent();

Код PclZip::listContent() WP 5.5.1

<?php
function listContent()
{
  $v_result=1;

  // ----- Reset the error handler
  $this->privErrorReset();

  // ----- Check archive
  if (!$this->privCheckFormat()) {
    return(0);
  }

  // ----- Call the extracting fct
  $p_list = array();
  if (($v_result = $this->privList($p_list)) != 1)
  {
    unset($p_list);
    return(0);
  }

  // ----- Return
  return $p_list;
}