Exemple #1
0
 /**
  * Short description of method singleton
  *
  * @access public
  * @author firstname and lastname of author, <*****@*****.**>
  * @return core_kernel_impl_ApiModelOO
  */
 public static function singleton()
 {
     $returnValue = null;
     if (!isset(self::$instance)) {
         $c = __CLASS__;
         self::$instance = new $c();
     }
     $returnValue = self::$instance;
     return $returnValue;
 }