Manipulates class and namespace names Ubiquity\cache$ClassUtils This class is part of Ubiquity.
More...
Manipulates class and namespace names Ubiquity\cache$ClassUtils This class is part of Ubiquity.
- Author
- jcheron myadd.nosp@m.ress.nosp@m.mail@.nosp@m.gmai.nosp@m.l.com
- Version
- 1.0.1
Definition at line 16 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 70 of file ClassUtils.php.
◆ getClassNameFromFile()
static getClassNameFromFile |
( |
|
$filePathName | ) |
|
|
static |
get the class name from file path using token
- Parameters
-
- Returns
- mixed
Definition at line 148 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 136 of file ClassUtils.php.
◆ getClassNamespaceFromPhpCode()
static getClassNamespaceFromPhpCode |
( |
|
$phpCode | ) |
|
|
staticprivate |
◆ getClassNameWithNS()
static getClassNameWithNS |
( |
|
$defaultNS, |
|
|
|
$name |
|
) |
| |
|
static |
Returns the complete name of a class.
- Parameters
-
string | $defaultNS | |
string | $name | |
- Returns
- string
Definition at line 160 of file ClassUtils.php.
◆ getClassObjectFromFile()
static getClassObjectFromFile |
( |
|
$filePathName | ) |
|
|
static |
build and return an object of a class from its file path
- Parameters
-
- Returns
- mixed
Definition at line 123 of file ClassUtils.php.
◆ getClassSimpleName()
static getClassSimpleName |
( |
|
$classnameWithNamespace | ) |
|
|
static |
Returns the simple class name of a class, without namespace.
- Parameters
-
string | $classnameWithNamespace | |
- Returns
- string
Definition at line 173 of file ClassUtils.php.
◆ getNamespaceFromCompleteClassname()
static getNamespaceFromCompleteClassname |
( |
|
$completeClassname | ) |
|
|
static |
Returns the namespace from a complete classname.
- Parameters
-
- Returns
- string
Definition at line 111 of file ClassUtils.php.
◆ getNamespaceFromParts()
static getNamespaceFromParts |
( |
|
$parts | ) |
|
|
static |
Returns a cleanly namespace.
- Parameters
-
- Returns
- string
Definition at line 93 of file ClassUtils.php.
The documentation for this class was generated from the following file:
- C:/Users/myadd/Documents/GitHub/ubiquity-doc-api/vendor/phpmv/ubiquity/src/Ubiquity/cache/ClassUtils.php