36 lines
566 B
PHP
36 lines
566 B
PHP
|
<?php
|
||
|
/**
|
||
|
* warnings_class.php file defines method for detecting warnings and display
|
||
|
*/
|
||
|
|
||
|
class BT_OtprWarnings
|
||
|
{
|
||
|
/**
|
||
|
* var $sWarningMsg : stock warning message
|
||
|
*/
|
||
|
public $sWarningMsg = '';
|
||
|
|
||
|
/**
|
||
|
* run() method detect warnings and display them
|
||
|
*/
|
||
|
public function run()
|
||
|
{
|
||
|
// @TODO
|
||
|
$this->sWarningMsg = '';
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* run() method detect warnings and display them
|
||
|
*
|
||
|
* @return array
|
||
|
*/
|
||
|
public static function create()
|
||
|
{
|
||
|
static $oWarning;
|
||
|
|
||
|
if (null === $oWarning) {
|
||
|
$oWarning = new BT_OtprWarnings();
|
||
|
}
|
||
|
return $oWarning;
|
||
|
}
|
||
|
}
|