PHP Класс Gdn_ApplicationManager, vanilla

Автор: Mark O'Sullivan
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
$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