Definition at line 7 of file ClassUtils.php.
◆ cleanClassname()
static cleanClassname |
( |
|
$classname | ) |
|
|
static |
◆ getClassFullNameFromFile()
static getClassFullNameFromFile |
( |
|
$filePathName, |
|
|
|
$backSlash = false |
|
) |
| |
|
static |
get the full name (name \ namespace) of a class from its file path result example: (string) "I\Am\The\Namespace\Of\This\Class"
- Parameters
-
- Returns
- string
Definition at line 17 of file ClassUtils.php.
◆ getClassNameFromFile()
static getClassNameFromFile |
( |
|
$filePathName | ) |
|
|
static |
get the class name form file path using token
- Parameters
-
- Returns
- mixed
Definition at line 108 of file ClassUtils.php.
◆ getClassNameFromPhpCode()
static getClassNameFromPhpCode |
( |
|
$phpCode | ) |
|
|
staticprivate |
◆ getClassNamespaceFromFile()
static getClassNamespaceFromFile |
( |
|
$filePathName | ) |
|
|
static |
get the class namespace form file path using token
- Parameters
-
- Returns
- null|string
Definition at line 67 of file ClassUtils.php.
◆ getClassNamespaceFromPhpCode()
static getClassNamespaceFromPhpCode |
( |
|
$phpCode | ) |
|
|
staticprivate |
◆ getClassNameWithNS()
static getClassNameWithNS |
( |
|
$defaultNS, |
|
|
|
$name |
|
) |
| |
|
static |
◆ getClassObjectFromFile()
static getClassObjectFromFile |
( |
|
$filePathName | ) |
|
|
static |
build and return an object of a class from its file path
- Parameters
-
- Returns
- mixed
Definition at line 54 of file ClassUtils.php.
◆ getClassSimpleName()
static getClassSimpleName |
( |
|
$classnameWithNamespace | ) |
|
|
static |
◆ getNamespaceFromParts()
static getNamespaceFromParts |
( |
|
$parts | ) |
|
|
static |
Returns a cleanly namespace.
- Parameters
-
- Returns
- string
Definition at line 35 of file ClassUtils.php.
The documentation for this class was generated from the following file: