PHP Class Brabijan\Images\ImagePipe

Author: Jan Brabec ([email protected])
Inheritance: extends Nette\Object
Show file Open project: brabijan/images Class Usage Examples

Public Properties

Property Type Description
$onBeforeSaveThumbnail array

Protected Properties

Property Type Description
$assetsDir string
$namespace string | null

Public Methods

Method Description
__construct ( $assetsDir, $wwwDir, Nette\Http\Request $httpRequest )
getAssetsDir ( ) : string
getOriginalPrefix ( ) : string
getPath ( ) : string
request ( string $image, null $size = NULL, null $flags = NULL, boolean $strictMode = FALSE ) : string
setAssetsDir ( $dir )
setNamespace ( $namespace )
setOriginalPrefix ( $originalPrefix )
setPath ( $path )

Private Methods

Method Description
checkSettings ( )
mkdir ( string $dir ) : void

Method Details

__construct() public method

public __construct ( $assetsDir, $wwwDir, Nette\Http\Request $httpRequest )
$assetsDir
$wwwDir
$httpRequest Nette\Http\Request

getAssetsDir() public method

public getAssetsDir ( ) : string
return string

getOriginalPrefix() public method

public getOriginalPrefix ( ) : string
return string

getPath() public method

public getPath ( ) : string
return string

request() public method

public request ( string $image, null $size = NULL, null $flags = NULL, boolean $strictMode = FALSE ) : string
$image string
$size null
$flags null
$strictMode boolean
return string

setAssetsDir() public method

public setAssetsDir ( $dir )
$dir

setNamespace() public method

public setNamespace ( $namespace )
$namespace

setOriginalPrefix() public method

public setOriginalPrefix ( $originalPrefix )
$originalPrefix

setPath() public method

public setPath ( $path )
$path

Property Details

$assetsDir protected property

protected string $assetsDir
return string

$namespace protected property

protected string|null $namespace
return string | null

$onBeforeSaveThumbnail public property

public array $onBeforeSaveThumbnail
return array