Documentation

Horde_Core_Controller_SettingsFinder
in package

The Horde_Core_Controller_SettingsFinder class provides logic to find the most appropriate SettingsExporter for a controller

Copyright 2009-2020 Horde LLC (http://www.horde.org/)

See the enclosed file LICENSE for license information (LGPL-2). If you did not receive this file, see http://www.horde.org/licenses/lgpl.

Tags
author

Michael Slusarz slusarz@horde.org

category

Horde

license

http://www.horde.org/licenses/lgpl LGPL-2

Table of Contents

Methods

getSettingsExporterName()  : string
Find the appropriate SettingsExporter's class name
_getParentName()  : string|null
Derive the parent class name from the controller class name
_mapName()  : string
Derive the SettingsExporter class name from the controller class name

Methods

getSettingsExporterName()

Find the appropriate SettingsExporter's class name

public getSettingsExporterName(string $controllerName) : string

The default exporter is Horde_Controller_SettingsExporter_Default. If a SettingsExporter with the same base name as the controller is found, it is used instead. Direct and indirect parent classes of the controller are also checked.

Parameters
$controllerName : string

The controller's class name

Return values
string

The SettingsExporter's class name

_getParentName()

Derive the parent class name from the controller class name

private _getParentName(string $controllerName) : string|null
Parameters
$controllerName : string

The controller class name

Return values
string|null

The parent class name or null

_mapName()

Derive the SettingsExporter class name from the controller class name

private _mapName(string $controllerName) : string
Parameters
$controllerName : string

The controller class name

Return values
string

The most relevant SettingsExporter class name found


        
On this page

Search results