Page MenuHomePhabricator

final class PhabricatorFileQuery
Phabricator Technical Documentation (Files)

This class is not documented.

Methods

public function withIDs($ids)

This method is not documented.
Parameters
array$ids
Return
wild

public function withPHIDs($phids)

This method is not documented.
Parameters
array$phids
Return
wild

public function withAuthorPHIDs($phids)

This method is not documented.
Parameters
array$phids
Return
wild

public function withDateCreatedBefore($date_created_before)

This method is not documented.
Parameters
$date_created_before
Return
wild

public function withDateCreatedAfter($date_created_after)

This method is not documented.
Parameters
$date_created_after
Return
wild

public function withContentHashes($content_hashes)

This method is not documented.
Parameters
array$content_hashes
Return
wild

public function withBuiltinKeys($keys)

This method is not documented.
Parameters
array$keys
Return
wild

public function withIsBuiltin($is_builtin)

This method is not documented.
Parameters
$is_builtin
Return
wild

public function withTransforms($specs)

Select files which are transformations of some other file. For example, you can use this query to find previously generated thumbnails of an image file.

As a parameter, provide a list of transformation specifications. Each specification is a dictionary with the keys originalPHID and transform. The originalPHID is the PHID of the original file (the file which was transformed) and the transform is the name of the transform to query for. If you pass true as the transform, all transformations of the file will be selected.

For example:

array(
  array(
    'originalPHID' => 'PHID-FILE-aaaa',
    'transform'    => 'sepia',
  ),
  array(
    'originalPHID' => 'PHID-FILE-bbbb',
    'transform'    => true,
  ),
)

This selects the "sepia" transformation of the file with PHID PHID-FILE-aaaa and all transformations of the file with PHID PHID-FILE-bbbb.

Parameters
list<dict>$specsList of transform specifications, described above.
Return
this

public function withLengthBetween($min, $max)

This method is not documented.
Parameters
$min
$max
Return
wild

public function withNames($names)

This method is not documented.
Parameters
array$names
Return
wild

public function withIsPartial($partial)

This method is not documented.
Parameters
$partial
Return
wild

public function withIsDeleted($deleted)

This method is not documented.
Parameters
$deleted
Return
wild

public function withNameNgrams($ngrams)

This method is not documented.
Parameters
$ngrams
Return
wild

public function withStorageEngines($engines)

This method is not documented.
Parameters
array$engines
Return
wild

public function showOnlyExplicitUploads($explicit_uploads)

This method is not documented.
Parameters
$explicit_uploads
Return
wild

public function needTransforms($transforms)

This method is not documented.
Parameters
array$transforms
Return
wild

public function newResultObject()

This method is not documented.
Return
wild

protected function loadPage()

This method is not documented.
Return
wild

protected function didFilterPage($files)

This method is not documented.
Parameters
array$files
Return
wild

protected function buildJoinClauseParts($conn)

This method is not documented.
Parameters
AphrontDatabaseConnection$conn
Return
wild

protected function buildWhereClauseParts($conn)

This method is not documented.
Parameters
AphrontDatabaseConnection$conn
Return
wild

protected function getPrimaryTableAlias()

This method is not documented.
Return
wild

public function getQueryApplicationClass()

This method is not documented.
Return
wild