/**
  * @return Aitoc_Aitsys_Model_Platform
  */
 public static function getInstance()
 {
     if (!self::$_instance) {
         self::$_instance = new self();
         self::$_instance->preInit();
     }
     return self::$_instance;
 }
Exemple #2
0
 /**
  * 
  * @return Aitoc_Aitsys_Model_Platform
  */
 public static function getInstance()
 {
     if (!self::$_instance) {
         self::$_instance = new self();
         try {
             try {
                 self::$_instance->init();
             } catch (Exception $exc) {
                 self::$_instance->block();
                 throw $exc;
             }
         } catch (Aitoc_Aitsys_Model_Aitfilesystem_Exception $exc) {
             $msg = "Error in the file: %s. Probably it does not have write permissions.";
             self::$_instance->addAdminError(Aitoc_Aitsys_Abstract_Service::get()->getHelper()->__($msg, $exc->getMessage()));
         }
     }
     return self::$_instance;
 }