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
Exibir arquivo Open project: openeyes/openeyes

Public Properties

Property Type Description
$defaultAction
$horizon
$verbosity

Protected Properties

Property Type Description
$DEFAULT_LOG_LEVEL
$log_level
$log_levels
$manager WorklistManager

Public Methods

Method 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 )

Protected Methods

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

Method Details

__construct() public method

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

actionGenerate() public method

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

debug() public method

public debug ( $msg )

error() public method

public error ( $msg )

fatal() public method

public fatal ( $msg, $exit_code = 1 )

finish() protected method

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

getDateLimit() public method

public getDateLimit ( $horizon ) : DateTime
$horizon
return DateTime

getHelp() public method

public getHelp ( ) : string
return string

getName() public method

public getName ( ) : string
return string

info() public method

public info ( $msg )

output() public method

public output ( $level, $msg )

setLogLevel() protected method

protected setLogLevel ( $verbosity )
$verbosity

warn() public method

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
return WorklistManager

$verbosity public_oe property

public $verbosity