PHP Класс Piwik\BaseFactory

Factory types are base classes that contain a **factory** method. This method is used to instantiate concrete instances by a specified string ID. Fatal errors do not occur if a class does not exist. Instead an exception is thrown. Derived classes should override the **getClassNameFromClassId** and **getInvalidClassIdExceptionMessage** static methods.
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
factory ( string $classId ) : Piwik\DataTable\Renderer Creates a new instance of a class using a string ID.

Защищенные методы

Метод Описание
getClassNameFromClassId ( $id ) Should return a class name based on the class's associated string ID.
getInvalidClassIdExceptionMessage ( $id ) Should return a message to use in an Exception when an invalid class ID is supplied to {@link factory()}.

Приватные методы

Метод Описание
sendPlainHeader ( )

Описание методов

factory() публичный статический Метод

Creates a new instance of a class using a string ID.
public static factory ( string $classId ) : Piwik\DataTable\Renderer
$classId string The ID of the class.
Результат Piwik\DataTable\Renderer

getClassNameFromClassId() защищенный статический Метод

Should return a class name based on the class's associated string ID.
protected static getClassNameFromClassId ( $id )

getInvalidClassIdExceptionMessage() защищенный статический Метод

Should return a message to use in an Exception when an invalid class ID is supplied to {@link factory()}.
protected static getInvalidClassIdExceptionMessage ( $id )