Helix Core is now P4. Product user interfaces will be updated soon. Learn more >>

P4 API for PHP Documentation | 2025.2

# Class P4_DepotFile

## Description

Utility class providing easy access to the attributes of a file in a P4 Server depot. Each `P4_DepotFile` object contains summary information about the file and an array of revisions (`P4_Revision` objects) of that file. Currently, only the `P4::run_filelog()` method returns an array of `P4_DepotFile` objects.

## Properties

### $df->depotFile -> string

Returns the name of the depot file to which this object refers.

### $df->revisions -> array

Returns an array of `P4_Revision` objects, one for each revision of the depot file.

## Static Methods

None.

## Instance Methods

None.

Your search for returned results