PHP Class Ip\Internal\Repository\BrowserModel

Show file Open project: impresspages/impresspages Class Usage Examples

Protected Properties

Property Type Description
$instance
$supportedImageExtensions

Public Methods

Method Description
getAvailableFiles ( integer $seek, integer $limit, string $filter, $filterExtensions, boolean $secure = false, $subdir = null ) : array Get list of files for file browser
getFile ( string $fileName, string $secure = false, $path = null ) : array
getPath ( $secure, $subdir, $absolute = true )
instance ( ) : BrowserModel Get singleton instance
pathMustBeInRepository ( $path, $secure ) Throw an exception if path goes out of repository dir

Protected Methods

Method Description
__clone ( )
__construct ( )

Private Methods

Method Description
createPreview ( string $file ) : string Get preview file for file browser
getFileData ( $fileName, $secure, $subdir = null )

Method Details

__clone() protected method

protected __clone ( )

__construct() protected method

protected __construct ( )

getAvailableFiles() public method

Get list of files for file browser
public getAvailableFiles ( integer $seek, integer $limit, string $filter, $filterExtensions, boolean $secure = false, $subdir = null ) : array
$seek integer
$limit integer
$filter string
$secure boolean use secure folder instead of repository root
return array

getFile() public method

public getFile ( string $fileName, string $secure = false, $path = null ) : array
$fileName string file within file repository directory
$secure string
return array

getPath() public method

public getPath ( $secure, $subdir, $absolute = true )

instance() public static method

Get singleton instance
public static instance ( ) : BrowserModel
return BrowserModel

pathMustBeInRepository() public method

Throw an exception if path goes out of repository dir
public pathMustBeInRepository ( $path, $secure )
$path
$secure

Property Details

$instance protected static property

protected static $instance

$supportedImageExtensions protected property

protected $supportedImageExtensions