PHP 클래스 Piwik\API\DocumentationGenerator

파일 보기 프로젝트 열기: piwik/piwik 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$countPluginsLoaded

공개 메소드들

메소드 설명
__construct ( ) trigger loading all plugins with an API.php file in the Proxy
addExamples ( $class, $methodName, $prefixUrls )
checkDocumentation ( $moduleToCheck ) : mixed Check if documentation contains @hide annotation and deletes it
checkIfClassCommentContainsHideAnnotation ( ReflectionClass $rClass ) : boolean Check if Class contains @hide
getAllInterfaceString ( boolean $outputExampleUrls = true, string $prefixUrls = '' ) : string Returns a HTML page containing help for all the successfully loaded APIs.
getExampleUrl ( string $class, string $methodName, array $parametersToSet = [] ) : string | boolean Returns a string containing links to examples on how to call a given method on a given API It will export links to XML, CSV, HTML, JSON, PHP, etc.
getParametersString ( string $class, string $name ) : string Returns the methods $class.$name parameters (and default value if provided) as a string.
prepareMethodToDisplay ( $moduleName, $info, $methods, $class, $outputExampleUrls, $prefixUrls )
prepareModuleToDisplay ( $moduleName )
prepareModulesAndMethods ( $info, $moduleName )

비공개 메소드들

메소드 설명
checkIfCommentContainsInternalAnnotation ( ReflectionClas\ReflectionClass | ReflectionMethod $rClass ) : boolean Check if Class contains @internal
getInterfaceString ( $moduleName, $class, $info, $parametersToSet, $outputExampleUrls, $prefixUrls )
getMethodString ( $moduleName, $class, $parametersToSet, $outputExampleUrls, $prefixUrls, $methodName )

메소드 상세

__construct() 공개 메소드

trigger loading all plugins with an API.php file in the Proxy
public __construct ( )

addExamples() 공개 메소드

public addExamples ( $class, $methodName, $prefixUrls )

checkDocumentation() 공개 메소드

Check if documentation contains @hide annotation and deletes it
public checkDocumentation ( $moduleToCheck ) : mixed
$moduleToCheck
리턴 mixed

checkIfClassCommentContainsHideAnnotation() 공개 메소드

Check if Class contains @hide
public checkIfClassCommentContainsHideAnnotation ( ReflectionClass $rClass ) : boolean
$rClass ReflectionClass instance of ReflectionMethod
리턴 boolean

getAllInterfaceString() 공개 메소드

For each module it will return a mini help with the method names, parameters to give, links to get the result in Xml/Csv/etc
public getAllInterfaceString ( boolean $outputExampleUrls = true, string $prefixUrls = '' ) : string
$outputExampleUrls boolean
$prefixUrls string
리턴 string

getExampleUrl() 공개 메소드

It will not export links for methods such as deleteSite or deleteUser
public getExampleUrl ( string $class, string $methodName, array $parametersToSet = [] ) : string | boolean
$class string the class
$methodName string the method
$parametersToSet array parameters to set
리턴 string | boolean when not possible

getParametersString() 공개 메소드

Returns the methods $class.$name parameters (and default value if provided) as a string.
public getParametersString ( string $class, string $name ) : string
$class string The class name
$name string The method name
리턴 string For example "(idSite, period, date = 'today')"

prepareMethodToDisplay() 공개 메소드

public prepareMethodToDisplay ( $moduleName, $info, $methods, $class, $outputExampleUrls, $prefixUrls )

prepareModuleToDisplay() 공개 메소드

public prepareModuleToDisplay ( $moduleName )

prepareModulesAndMethods() 공개 메소드

public prepareModulesAndMethods ( $info, $moduleName )

프로퍼티 상세

$countPluginsLoaded 보호되어 있는 프로퍼티

protected $countPluginsLoaded