PHP 클래스 Contao\FilesModel

The files themselves reside in the files directory. This class only handles the corresponding database entries (database aided file system).
상속: extends Model
파일 보기 프로젝트 열기: contao/core-bundle 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$strTable string Table name

공개 메소드들

메소드 설명
findById ( mixed $intId, array $arrOptions = [] ) : FilesModel | null Find a file by its ID or UUID
findByPath ( string $path, array $arrOptions = [] ) : FilesModel | null Find a file by its path
findByPk ( mixed $varValue, array $arrOptions = [] ) : FilesModel | null Find a file by its primary key
findByUuid ( string $strUuid, array $arrOptions = [] ) : FilesModel | null Find a file by its UUID
findMultipleByBasepath ( string $strPath, array $arrOptions = [] ) : Collection | FilesModel[] | FilesModel | null Find multiple files with the same base path
findMultipleByIds ( array $arrIds, array $arrOptions = [] ) : Collection | FilesModel[] | FilesModel | null Find multiple files by their IDs or UUIDs
findMultipleByPaths ( array $arrPaths, array $arrOptions = [] ) : Collection | FilesModel[] | FilesModel | null Find multiple files by their paths
findMultipleByUuids ( array $arrUuids, array $arrOptions = [] ) : Collection | FilesModel[] | FilesModel | null Find multiple files by their UUIDs
findMultipleByUuidsAndExtensions ( array $arrUuids, array $arrExtensions, array $arrOptions = [] ) : Collection | FilesModel[] | FilesModel | null Find multiple files by UUID and a list of extensions
findMultipleFilesByFolder ( string $strPath, array $arrOptions = [] ) : Collection | FilesModel[] | FilesModel | null Find all files in a folder

보호된 메소드들

메소드 설명
postSave ( integer $intType ) Do not reload the data upon insert

메소드 상세

findById() 공개 정적인 메소드

Find a file by its ID or UUID
public static findById ( mixed $intId, array $arrOptions = [] ) : FilesModel | null
$intId mixed The ID or UUID
$arrOptions array An optional options array
리턴 FilesModel | null The model or null if there is no file

findByPath() 공개 정적인 메소드

Find a file by its path
public static findByPath ( string $path, array $arrOptions = [] ) : FilesModel | null
$path string The path
$arrOptions array An optional options array
리턴 FilesModel | null The model or null if there is no file

findByPk() 공개 정적인 메소드

Find a file by its primary key
public static findByPk ( mixed $varValue, array $arrOptions = [] ) : FilesModel | null
$varValue mixed The value
$arrOptions array An optional options array
리턴 FilesModel | null The model or null if there is no file

findByUuid() 공개 정적인 메소드

Find a file by its UUID
public static findByUuid ( string $strUuid, array $arrOptions = [] ) : FilesModel | null
$strUuid string The UUID string
$arrOptions array An optional options array
리턴 FilesModel | null The model or null if there is no file

findMultipleByBasepath() 공개 정적인 메소드

Find multiple files with the same base path
public static findMultipleByBasepath ( string $strPath, array $arrOptions = [] ) : Collection | FilesModel[] | FilesModel | null
$strPath string The base path
$arrOptions array An optional options array
리턴 Contao\Model\Collection | FilesModel[] | FilesModel | null A collection of models or null if there are no matching files

findMultipleByIds() 공개 정적인 메소드

Find multiple files by their IDs or UUIDs
public static findMultipleByIds ( array $arrIds, array $arrOptions = [] ) : Collection | FilesModel[] | FilesModel | null
$arrIds array An array of IDs or UUIDs
$arrOptions array An optional options array
리턴 Contao\Model\Collection | FilesModel[] | FilesModel | null A collection of models or null if there are no files

findMultipleByPaths() 공개 정적인 메소드

Find multiple files by their paths
public static findMultipleByPaths ( array $arrPaths, array $arrOptions = [] ) : Collection | FilesModel[] | FilesModel | null
$arrPaths array An array of file paths
$arrOptions array An optional options array
리턴 Contao\Model\Collection | FilesModel[] | FilesModel | null A collection of models or null if there are no files

findMultipleByUuids() 공개 정적인 메소드

Find multiple files by their UUIDs
public static findMultipleByUuids ( array $arrUuids, array $arrOptions = [] ) : Collection | FilesModel[] | FilesModel | null
$arrUuids array An array of UUIDs
$arrOptions array An optional options array
리턴 Contao\Model\Collection | FilesModel[] | FilesModel | null A collection of models or null if there are no files

findMultipleByUuidsAndExtensions() 공개 정적인 메소드

Find multiple files by UUID and a list of extensions
public static findMultipleByUuidsAndExtensions ( array $arrUuids, array $arrExtensions, array $arrOptions = [] ) : Collection | FilesModel[] | FilesModel | null
$arrUuids array An array of file UUIDs
$arrExtensions array An array of file extensions
$arrOptions array An optional options array
리턴 Contao\Model\Collection | FilesModel[] | FilesModel | null A collection of models or null of there are no matching files

findMultipleFilesByFolder() 공개 정적인 메소드

Find all files in a folder
public static findMultipleFilesByFolder ( string $strPath, array $arrOptions = [] ) : Collection | FilesModel[] | FilesModel | null
$strPath string The folder path
$arrOptions array An optional options array
리턴 Contao\Model\Collection | FilesModel[] | FilesModel | null A collection of models or null if there are no matching files

postSave() 보호된 메소드

Do not reload the data upon insert
protected postSave ( integer $intType )
$intType integer The query type (Model::INSERT or Model::UPDATE)

프로퍼티 상세

$strTable 보호되어 있는 정적으로 프로퍼티

Table name
protected static string $strTable
리턴 string