Code-Formatierungen und Anpassungen an neue Editoren
This commit is contained in:
@@ -1,34 +1,32 @@
|
||||
<?php
|
||||
|
||||
class viewClass_abstract
|
||||
{
|
||||
protected static $_instance = null;
|
||||
|
||||
/**
|
||||
* Konstruktor
|
||||
*/
|
||||
public function __construct( )
|
||||
{
|
||||
$this -> _instance = $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Destruktor
|
||||
*/
|
||||
public function __destruct( )
|
||||
{
|
||||
}
|
||||
|
||||
public function getInstance( )
|
||||
{
|
||||
if ( ! isset( self::$_instance ) )
|
||||
{
|
||||
$class = __CLASS__;
|
||||
$instance = new $class;
|
||||
}
|
||||
return self::$_instance;
|
||||
}
|
||||
|
||||
}
|
||||
class viewClass_abstract
|
||||
{
|
||||
protected static $_instance = null;
|
||||
|
||||
?>
|
||||
/**
|
||||
* Konstruktor
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
$this->_instance = $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Destruktor
|
||||
*/
|
||||
public function __destruct()
|
||||
{
|
||||
}
|
||||
|
||||
public function getInstance()
|
||||
{
|
||||
if (!isset(self::$_instance))
|
||||
{
|
||||
$class = __CLASS__;
|
||||
self::$_instance = new $class;
|
||||
}
|
||||
return self::$_instance;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user