Sunnysideup\UpgradeToSilverstripe4\Api\FileNameToClass
Synopsis
class FileNameToClass
{
- // methods
- public string getClassFullNameFromFile()
- public mixed getClassObjectFromFile()
- public string|null getClassNamespaceFromFile()
- public string getClassNameFromFile()
Methods
public
- getClassFullNameFromFile() — get the full name (name \ namespace) of a class from its file path result example: (string) "I\Am\The\Namespace\Of\This\Class"
- getClassNameFromFile() — get the class name form file path using token
- getClassNamespaceFromFile() — get the class namespace form file path using token
- getClassObjectFromFile() — build and return an object of a class from its file path