OpenMediaVault
0.6 (Kralizec)
The open network attached storage solution
|
Public Member Functions | |
getName () | |
setDirty () | |
setDirtyByName ($name) | |
isDirty () | |
![]() | |
__construct () | |
getLastError () | |
Protected Member Functions | |
exec ($command, &$output=NULL) | |
getAdminContext () | |
addTask ($id, $name, $params) | |
execTasks ($id) | |
![]() | |
setLastError ($error) | |
debug () | |
This file is part of OpenMediaVault.
OpenMediaVault is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or any later version.
OpenMediaVault is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with OpenMediaVault. If not, see http://www.gnu.org/licenses/. The core module class.
|
finalprotected |
Add a task that can be performed at a later date.
id | The identifier of the task type. |
name | The name of the class method to be executed. |
params | The parameters passed to the method when it is executed. |
E_MISC_FAILURE |
|
finalprotected |
Helper function to execute an external program.
command | The command that will be executed. |
output | If the output argument is present, then the specified array will be filled with every line of output from the command. Trailing whitespace, such as , is not included in this array. |
|
finalprotected |
Execute the tasks with the given identifier.
id | The identifier of the tasks to be executed. |
|
finalprotected |
Helper function to get the administrator context.
|
abstract |
Get the name of the module.
|
final |
Helper function to check whether the module is marked dirty.
|
final |
Helper function to mark this module as dirty.
|
final |
Helper function to mark the given module as dirty.
name | The name of the module. |