4.1. Opl_Class class
4.1.1. _pluginLoader()
4.1. Opl_Class class
« Previous
4.1.2. _securePath()
Next »

4.1.1. _pluginLoader()

ConstructMethod
Visibilityprotected
Referencevoid Opl_Class::_pluginLoader( string $directory, string $file )
Argument list
$directory - string
The directory, where the plugin is stored.
$file - string
The file, where the plugin is stored.
Versionssince 2.0.0-dev7

The method is used, when the temporary plugin file is being rebuilt. It takes the directory and the filename and it must generate a PHP code that loads it. This is a sample implementation:

protected function _pluginLoader($dir, $file)
{
    return 'require(\''.$dir.$file.'\'); ';
} // end _pluginLoader();

See also:

4.1.1. _pluginLoader()
4.1. Opl_Class class
« Previous
4.1. Opl_Class class
Next »
4.1.2. _securePath()