PHP Class Devise\Media\Categories\Manager

显示文件 Open project: devisephp/cms

Protected Properties

Property Type Description
$CategoryPaths CategoryPaths
$Filesystem Devise\Media\Files\Filesystem

Public Methods

Method Description
__construct ( Filesystem $Filesystem, CategoryPaths $CategoryPaths ) Create a new category manager
destroyCategory ( $input ) : boolean Removes the category path
renameCategory ( $path, $newName ) Renames a category path
storeNewCategory ( $input ) : boolean Stores the category in the filesystem

Method Details

__construct() public method

Create a new category manager
public __construct ( Filesystem $Filesystem, CategoryPaths $CategoryPaths )
$Filesystem Devise\Media\Files\Filesystem
$CategoryPaths CategoryPaths

destroyCategory() public method

Removes the category path
public destroyCategory ( $input ) : boolean
$input
return boolean

renameCategory() public method

Renames a category path
public renameCategory ( $path, $newName )
$path
$newName

storeNewCategory() public method

Stores the category in the filesystem
public storeNewCategory ( $input ) : boolean
$input
return boolean

Property Details

$CategoryPaths protected_oe property

protected CategoryPaths,Devise\Media\Categories $CategoryPaths
return CategoryPaths

$Filesystem protected_oe property

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