Пример #1
0
 /**
  * Coloca el nombre de la clase del registro
  * @param string $registryClassName Nombre de la clase del registro
  */
 public static function setClassName($registryClassName = 'Model3_Registry')
 {
     if (self::$_registry !== null) {
         require_once 'Model3/Exception.php';
         throw new Exception('Registry ya esta inicializado');
     }
     if (!is_string($registryClassName)) {
         require_once 'Model3/Exception.php';
         throw new Exception("El argument no es un nombre de clase");
     }
     require_once 'Model3/Loader.php';
     Model3_Loader::loadClass($registryClassName);
     self::$_registryClassName = $registryClassName;
 }