Methods summary
public static
string
|
|
public static
string
|
#
get_package( string $class_file )
Returns the class package
Returns the class package
Parameters
- $class_file
- the class file
Returns
string the class package
The package is under the form 'package/subpackage/../sub..subpackage'
|
public static
string
|
#
get_path_from_root( string $path )
Returns the path from the phpboost root directory
Returns the path from the phpboost root directory
Parameters
Returns
string the path from the phpboost root directory beginning by
'/'
|
public static
string
|
#
get_classname( string $class_file )
Deduces the classname regarding the filename
Deduces the classname regarding the filename
Parameters
- $class_file
- the class file path or filename
Returns
string the classname
|
public static
string
|
#
real_path( string $path )
Uniformizes the path getting its real path (absolute one) and replacing all
'\'
by
'/'
Uniformizes the path getting its real path (absolute one) and replacing all
'\'
by
'/'
Parameters
- $path
- the path to uniformize
Returns
string the absolute path
|
public static
string
|
#
uniformize_path( string $path )
Uniformizes the path replacing all
'\'
by
'/'
Uniformizes the path replacing all
'\'
by
'/'
Parameters
- $path
- the path to uniformize
Returns
string the uniformized path
|