class ClassTools
Tools to support class & package inclusion and referencing.
Methods
static string |
classname(string $qualifiedName)
Gets just classname, given a dot-path to class. |
|
static string |
getFilePath(string $path, string $classname = null, string $extension = '.php')
Gets the path to be used in include()/require() statement. |
|
static string |
createFilePath(string $path, string $classname = null, string $extension = '.php')
This method remplaces the `getFilePath()` method in OMBuilder as we consider `$path` as a real path instead of a dot-notation value. |
|
static string |
getBasePeer(Table $table)
Gets the basePeer path if specified for table/db. |
|
static string |
getBaseClass(Table $table)
Gets the baseClass path if specified for table/db. |
|
static string |
getInterface(Table $table)
Gets the interface path if specified for table. |
|
static array |
getPhpReservedWords()
Gets a list of PHP reserved words. |
Details
at line 26
static public string
classname(string $qualifiedName)
Gets just classname, given a dot-path to class.
at line 50
static public string
getFilePath(string $path, string $classname = null, string $extension = '.php')
Gets the path to be used in include()/require() statement.
Supports multiple function signatures:
(1) getFilePath($dotPathClass);
(2) getFilePath($dotPathPrefix, $className);
(3) getFilePath($dotPathPrefix, $className, $extension);
at line 66
static public string
createFilePath(string $path, string $classname = null, string $extension = '.php')
This method remplaces the `getFilePath()` method in OMBuilder as we consider `$path` as a real path instead of a dot-notation value.
`$path` is generated by the `getPackagePath()`
method.
at line 83
static public string
getBasePeer(Table $table)
Gets the basePeer path if specified for table/db.
If not, will return 'propel.util.BasePeer'
at line 96
static public string
getBaseClass(Table $table)
Gets the baseClass path if specified for table/db.
If not, will return 'propel.om.BaseObject'
at line 109
static public string
getInterface(Table $table)
Gets the interface path if specified for table.
If not, will return 'propel.om.Persistent'.
at line 122
static public array
getPhpReservedWords()
Gets a list of PHP reserved words.