コード例 #1
0
 /**
  * Singleton Design Pattern
  * Return the instance of the class DAO.class.php
  * @access  private
  * @return  DAO class instance
  * @author  Mauro Donadio
  */
 private static function _getInstance()
 {
     if (AContent_lcl_importxml::$_singleton == null) {
         require_once 'ContentDAO.class.php';
         AContent_lcl_importxml::$_singleton = new ContentDAO();
     }
     return AContent_lcl_importxml::$_singleton;
 }