PHP Class GenerateWorklistsCommand

(C) OpenEyes Foundation, 2016 This file is part of OpenEyes. OpenEyes 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 (at your option) any later version. OpenEyes 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 OpenEyes in a file titled COPYING. If not, see .
Author: OpenEyes ([email protected])
Inheritance: extends CConsoleCommand
Afficher le fichier Open project: openeyes/openeyes

Méthodes publiques

Свойство Type Description
$defaultAction
$horizon
$verbosity

Protected Properties

Свойство Type Description
$DEFAULT_LOG_LEVEL
$log_level
$log_levels
$manager WorklistManager

Méthodes publiques

Méthode Description
__construct ( string $name, CConsoleCommandRunner $runner, WorklistManager $manager = null ) GenerateWorklistsCommand constructor.
actionGenerate ( null $verbosity = null, null $horizon = null )
debug ( $msg )
error ( $msg )
fatal ( $msg, $exit_code = 1 )
getDateLimit ( $horizon ) : DateTime
getHelp ( ) : string
getName ( ) : string
info ( $msg )
output ( $level, $msg )
warn ( $msg )

Méthodes protégées

Méthode Description
finish ( integer $exit_code = 1 ) Simple wrapper to abstract termination.
setLogLevel ( $verbosity )

Method Details

__construct() public méthode

GenerateWorklistsCommand constructor.
public __construct ( string $name, CConsoleCommandRunner $runner, WorklistManager $manager = null )
$name string
$runner CConsoleCommandRunner
$manager WorklistManager

actionGenerate() public méthode

public actionGenerate ( null $verbosity = null, null $horizon = null )
$verbosity null
$horizon null

debug() public méthode

public debug ( $msg )

error() public méthode

public error ( $msg )

fatal() public méthode

public fatal ( $msg, $exit_code = 1 )

finish() protected méthode

Simple wrapper to abstract termination.
protected finish ( integer $exit_code = 1 )
$exit_code integer

getDateLimit() public méthode

public getDateLimit ( $horizon ) : DateTime
$horizon
Résultat DateTime

getHelp() public méthode

public getHelp ( ) : string
Résultat string

getName() public méthode

public getName ( ) : string
Résultat string

info() public méthode

public info ( $msg )

output() public méthode

public output ( $level, $msg )

setLogLevel() protected méthode

protected setLogLevel ( $verbosity )
$verbosity

warn() public méthode

public warn ( $msg )

Property Details

$DEFAULT_LOG_LEVEL protected_oe static_oe property

protected static $DEFAULT_LOG_LEVEL

$defaultAction public_oe property

public $defaultAction

$horizon public_oe property

public $horizon

$log_level protected_oe property

protected $log_level

$log_levels protected_oe property

protected $log_levels

$manager protected_oe property

protected WorklistManager $manager
Résultat WorklistManager

$verbosity public_oe property

public $verbosity