PHP Class Devise\Media\Files\Repository

Datei anzeigen Open project: devisephp/cms

Protected Properties

Property Type Description
$Filesystem Filesystem
$config
$input

Public Methods

Method Description
__construct ( Filesystem $Filesystem, MediaPaths $MediaPaths, Images $Image, null $Config = null, null $Request = null, null $URL = null ) Constructs a new repository
compileIndexData ( null $input = null ) : array Not really sure, gonna revisit this later.

Private Methods

Method Description
attemptThumbGeneration ( $path, $thumbnailPath ) : string
buildCategories ( $dir, $input ) : array
buildCrumbs ( $input ) : array Builds the bread crumbs for a specific directory?.
buildMediaItems ( $dir ) : array Get a list of media items in a directory
buildMediaItemsFromFiles ( $files ) : array Get a list of media items from files
buildSearchedItems ( $currentDirectory, $searchFor ) : array Get
ensureRootDirectoryAvailable ( ) : boolean Ensures that the media root directory is available
getCurrentCategory ( ) : [type] Gets the current category
getCurrentDirectory ( $input ) : string The current directory of the
getDefaultThumb ( $pathName ) : mixed
getFileName ( $path ) : mixed
getFilePath ( $path, $imageName ) : mixed
getPath ( $path, null $imageName = null ) : string
getThumbName ( $pathName, $possibleThumbPathName ) : string
matchingCroppedfiles ( $pathName, &$croppedFiles ) : mixed
passesFilters ( $file ) : boolean
setCurrentDirectory ( [type] $input, $openLastCategory ) [setCurrentDirectory description]
sortByCategoryName ( $category1, $category2 ) : integer
stringPopExtension ( $path, integer $amnt = 1 ) : string

Method Details

__construct() public method

Constructs a new repository
public __construct ( Filesystem $Filesystem, MediaPaths $MediaPaths, Images $Image, null $Config = null, null $Request = null, null $URL = null )
$Filesystem Filesystem
$MediaPaths Devise\Media\MediaPaths
$Image Devise\Media\Images\Images
$Config null
$Request null
$URL null

compileIndexData() public method

..
public compileIndexData ( null $input = null ) : array
$input null
return array

Property Details

$Filesystem protected_oe property

protected Filesystem,Devise\Media\Files $Filesystem
return Filesystem

$config protected_oe property

protected $config

$input protected_oe property

protected $input