OpenMediaVault  0.6 (Kralizec)
The open network attached storage solution
 All Classes Functions Variables Groups Pages
Static Public Member Functions | List of all members

Static Public Member Functions

static uuid ()
 
static exec ($command, &$output=NULL, &$exitStatus=NULL)
 
static debug ()
 
static mail ($from, $to, $subject, $message)
 
static readlink ($path)
 

Detailed Description

This file is part of OpenMediaVault.

License:
http://www.gnu.org/licenses/gpl.html GPL Version 3
Author
Volker Theile volke.nosp@m.r.th.nosp@m.eile@.nosp@m.open.nosp@m.media.nosp@m.vaul.nosp@m.t.org

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/. This class provides various helper methods.

Member Function Documentation

static OMVUtil::debug ( )
static

Write debug message to file '/tmp/phpdebug.log'. Take care about the permissions: touch /tmp/phpdebug.log chmod openmediavault:openmediavault /tmp/phpdebug.log

static OMVUtil::exec (   $command,
$output = NULL,
$exitStatus = NULL 
)
static

Execute the given command.

static OMVUtil::mail (   $from,
  $to,
  $subject,
  $message 
)
static

Send an email.

Parameters
fromThe sender email address.
toThe receiver email address(es), e.g. 'test@.nosp@m.xzy..nosp@m.com' or 'xzy@1.nosp@m.23.o.nosp@m.rg,test@.nosp@m.xzy..nosp@m.com'. Use the character , or ; as seperator.
subjectThe subject.
messageThe message.
Returns
Return TRUE if successful, otherwise FALSE.
static OMVUtil::readlink (   $path)
static

Returns the target of a symbolic link. Canonicalize by following every symlink in every component of the given name recursively, without requirements on components existence.

Parameters
pathThe symbolic link path.
Returns
Returns the value of the symbolic link or FALSE on error.
static OMVUtil::uuid ( )
static

Create a UUID Version 4 (random).

Returns
A new UUID string if successful, otherwise FALSE.

The documentation for this class was generated from the following file: