Horde_Kolab_Storage_List_Manipulation_Decorator_Log
extends Horde_Kolab_Storage_List_Manipulation
in package
Logs Kolab folder list manipulations.
Copyright 2012-2017 Horde LLC (http://www.horde.org/)
See the enclosed file LICENSE for license information (LGPL). If you did not receive this file, see http://www.horde.org/licenses/lgpl21.
Tags
Table of Contents
- $_logger : mixed
- A log handler.
- $_manipulation : Horde_Kolab_Storage_List_Manipulation
- Decorated manipulation handler.
- __construct() : mixed
- Constructor.
- createFolder() : null
- Create a new folder.
- deleteFolder() : null
- Delete a folder.
- registerListener() : mixed
- Register a new manipulation listener.
- renameFolder() : null
- Rename a folder.
Properties
$_logger
A log handler.
private
mixed
$_logger
$_manipulation
Decorated manipulation handler.
private
Horde_Kolab_Storage_List_Manipulation
$_manipulation
Methods
__construct()
Constructor.
public
__construct(Horde_Kolab_Storage_List_Manipulation $manipulation, mixed $logger) : mixed
Parameters
- $manipulation : Horde_Kolab_Storage_List_Manipulation
-
The list manipulator.
- $logger : mixed
-
The log handler. This instance must provide the debug() method.
Return values
mixed —createFolder()
Create a new folder.
public
createFolder(string $folder[, string $type = null ]) : null
Parameters
- $folder : string
-
The path of the folder to create.
- $type : string = null
-
An optional type for the folder.
Return values
null —deleteFolder()
Delete a folder.
public
deleteFolder(string $folder) : null
Parameters
- $folder : string
-
The path of the folder to delete.
Return values
null —registerListener()
Register a new manipulation listener.
public
registerListener(Horde_Kolab_Storage_List_Manipulation_Listener $listener) : mixed
Parameters
- $listener : Horde_Kolab_Storage_List_Manipulation_Listener
-
The new listener.
Return values
mixed —renameFolder()
Rename a folder.
public
renameFolder(string $old, string $new) : null
Parameters
- $old : string
-
The old path of the folder.
- $new : string
-
The new path of the folder.