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.
파일 보기 프로젝트 열기: piwik/piwik 1 사용 예제들

공개 메소드들

메소드 설명
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 )