Constructor
void
ClassesActionSource
(string $basePath, string $fileExtension, [optional $classNameSuffix = ''])
-
string
$basePath: The base path on the filesystem which contains the module folders.
-
string
$fileExtension: The extension to add onto action names to find the files, such that the action "welcome" might look for a file named "welcome.class.php" with a file extension of ".class.php".
-
optional
$classNameSuffix: string $classNameSuffix A string to append to the names of action classes to prevent namespace conflicts with libraries/other classes. For example, with a suffix of 'Action', an action 'welcome' would correspond to a class named 'welcomeAction'.
Checks to see if a given modules/action pair exists for execution within this source.
boolean
actionExists
(string $module, string $action)
-
string
$module
-
string
$action
Redefinition of:
- ActionSource::actionExists()
- Checks to see if a given modules/action pair exists for execution within this source.
Executes the specified action in the specified module, using the Harmoni object as a base.
ref
executeAction
(string $module, string $action, ref $harmoni)
-
string
$module: The module in which to execute.
-
string
$action: The specific action to execute.
-
ref
$harmoni: object $harmoni A reference to a Harmoni object.
Redefinition of:
- ActionSource::executeAction()
- Executes the specified action in the specified module, using the Harmoni object as a base.
Makes a full pathname to an action file.
string
_mkFullPath
(mixed $module, mixed $action)
Inherited Methods
Inherited From ActionSource
ActionSource::actionExists()
ActionSource::executeAction()