PHP 클래스 Gdn_ApplicationManager, vanilla

저자: Mark O'Sullivan
파일 보기 프로젝트 열기: vanilla/vanilla 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$Paths The valid paths to search for applications.

공개 메소드들

메소드 설명
__construct ( AddonManager $addonManager = null )
availableApplications ( ) Get a list of the available applications.
availableVisibleApplications ( ) : array Get a list of applications that are not marked as invisible.
checkApplication ( string $applicationName ) : boolean Check to see if an application is enabled.
checkRequirements ( string $applicationName ) Check that the requirements for an application have been enabled.
disableApplication ( string $applicationName ) Disable an application.
enableApplication ( string $applicationName ) : boolean Enable an application.
enabledApplicationFolders ( ) : array Get an list of enabled application folders.
enabledApplications ( ) : array Gets an array of all of the enabled applications.
enabledVisibleApplications ( ) : array Get a list of applications that are enabled and not marked as invisible.
getApplicationInfo ( string $applicationName, string $key = null ) : boolean | mixed Get the information about an application.
isEnabled ( string $Name ) : boolean Check whether or not an application is enabled.
registerPermissions ( string $applicationName ) Define the permissions for an application.
testApplication ( string $applicationName ) : boolean Test if an application can be enabled.

메소드 상세

__construct() 공개 메소드

public __construct ( AddonManager $addonManager = null )
$addonManager Vanilla\AddonManager

availableApplications() 공개 메소드

Looks through the root Garden directory for valid applications and returns them as an associative array of "Application Name" => "Application Info Array". It also adds a "Folder" definition to the Application Info Array for each application.

availableVisibleApplications() 공개 메소드

Get a list of applications that are not marked as invisible.
public availableVisibleApplications ( ) : array
리턴 array Returns an array of application info arrays.

checkApplication() 공개 메소드

Check to see if an application is enabled.
public checkApplication ( string $applicationName ) : boolean
$applicationName string The name of the application to check.
리턴 boolean Returns true if the application is enabled, otherwise false.

checkRequirements() 공개 메소드

Check that the requirements for an application have been enabled.
public checkRequirements ( string $applicationName )
$applicationName string The name of the application to check.

disableApplication() 공개 메소드

Disable an application.
public disableApplication ( string $applicationName )
$applicationName string The name of the application to disable.

enableApplication() 공개 메소드

Enable an application.
public enableApplication ( string $applicationName ) : boolean
$applicationName string The name of the application to enable.
리턴 boolean Returns true if the application was enabled or false otherwise.

enabledApplicationFolders() 공개 메소드

Get an list of enabled application folders.
사용 중단:
public enabledApplicationFolders ( ) : array
리턴 array Returns an array of all of the enabled application folders.

enabledApplications() 공개 메소드

Gets an array of all of the enabled applications.
public enabledApplications ( ) : array
리턴 array

enabledVisibleApplications() 공개 메소드

Get a list of applications that are enabled and not marked as invisible.
public enabledVisibleApplications ( ) : array
리턴 array Returns an array of application info arrays.

getApplicationInfo() 공개 메소드

Get the information about an application.
public getApplicationInfo ( string $applicationName, string $key = null ) : boolean | mixed
$applicationName string The name of the application to lookup.
$key string The key of a field in the application info to return.
리턴 boolean | mixed Returns the application's info, a specific value, or false if the application cannot be found.

isEnabled() 공개 메소드

Check whether or not an application is enabled.
사용 중단:
부터: 2.2
public isEnabled ( string $Name ) : boolean
$Name string The name of the application.
리턴 boolean Whether or not the application is enabled.

registerPermissions() 공개 메소드

Define the permissions for an application.
public registerPermissions ( string $applicationName )
$applicationName string The name of the application.

testApplication() 공개 메소드

Test if an application can be enabled.
public testApplication ( string $applicationName ) : boolean
$applicationName string The name of the application to test.
리턴 boolean Returns true if the application can be enabled or false otherwise.

프로퍼티 상세

$Paths 공개적으로 프로퍼티

The valid paths to search for applications.
public $Paths