File_Cabinet_Exception
[ class tree: File_Cabinet_Exception ] [ index: File_Cabinet_Exception ] [ all elements ]

Class: File_Cabinet

Source Location: /File_Cabinet-0.1.0/Cabinet.php

Class Overview


Microsoft Cabinet file extraction wrapper.


Author(s):

Version:

  • 0.1.0

Variables

Methods


Inherited Variables

Inherited Methods


Class Details

[line 59]
Microsoft Cabinet file extraction wrapper.


[ Top ]


Class Variables

$command =

[line 89]

Command to use
  • Access: public

Type:   string


[ Top ]



Method Detail

__construct (Constructor)   [line 104]

File_Cabinet __construct( string $filename)

Constructor
  • Access: public

Parameters:

string   $filename   —  Path to cabinet file to extract

[ Top ]

extract   [line 182]

string extract( [array/string $files = null], [string $to_directory = null])

Extract files inside cabinet
  • Return: File contents if to_directory is null, null otherwise.
  • Access: public

Parameters:

array/string   $files   —  Either one filename or array of filenames. The filename may contain wildcards.
string   $to_directory   —  Directory to expand to. Leave null to return file contents.

[ Top ]

listFiles   [line 131]

array listFiles( )

List files inside cabinet.

Cabextract will return the filename, size and last modification time whereas expand will only return the filename.

  • Return: An array of associative arrays containing filenames along with attributes if using cabextract.
  • Access: public

[ Top ]


Documentation generated on Mon, 11 Mar 2019 15:16:03 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.