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

4.1.2. _securePath()

Statusinternal
ConstructMethod
Visibilitypublic
Referencevoid Opl_Class::_securePath( string &$path )
Argument list
$path - &string
The path to secure.
Versionssince 2.0.0-dev8

A help method to sanitize the file paths by adding the slash to the end, if the user has not provided it:

$path = 'this/is/some/path';
$this->_securePath($path);
echo $path; // shows "this/is/secure/path/"

As of OPL 2.0.2 the method visibility is changed from protected to public in order to simplify the further migration to OPL 2.1. This is an internal method, so the change should not affect existing scripts.

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