WrapperGenerator
WrapperGenerator

Encapsulates the legacy functions for generating directory wrappers.

Functions
createDirectoryWrappers
public function createDirectoryWrappers(
$path,
$type,
$instpath ""
)

Create the required wrapper scripts for a directory.  Note that the instpath parameter is for the software installation path and is only required for the BLOG_BASE type, as it is used to create the config.php file.  As of version 0.7.4, this function returns an array of paths for which the file operation returned an error code.

Parameters
path

The path at which we're creating wrappers.

type

The type of wrappers to create.

instpath

The LnBlog install path, only required for type of BLOG_BASE

Returns

List of paths for which there was an error.

removeForEntry
public function removeForEntry(
BlogEntry $entry
)

Removes directory wrappers for a given entry

Parameters
entry

The BlogEntry for which to remove the wrappers.