فهرست منبع

Se pasaron funciones protected a public.

gabriel 7 سال پیش
والد
کامیت
28c54c63e8
1فایلهای تغییر یافته به همراه9 افزوده شده و 9 حذف شده
  1. 9 9
      Migrations/MigrationsBase.php

+ 9 - 9
Migrations/MigrationsBase.php

@@ -194,7 +194,7 @@ class MigrationsBase extends AbstractMigration implements ContainerAwareInterfac
      * @param string $dir Contiene el nombre del directorio a leer.
      * @param string $fileName Contiene el nombre del archivo a incorporar.
      */
-    protected function interpretYaml($dir, $fileName)
+    public function interpretYaml($dir, $fileName)
     {
         $dir = trim($dir);
         if (!(substr($dir, count($dir) - 2, count($dir) - 2) == "\\" ||
@@ -453,7 +453,7 @@ class MigrationsBase extends AbstractMigration implements ContainerAwareInterfac
      * @param string $dir Contiene el path del directorio donde se encuentra el archio a leer.
      * @param string $file Contiene el nombre de archivo a procesar.
      */
-    protected function executeYaml($dir, $file)
+    public function executeYaml($dir, $file)
     {
         try {
             $tmp = explode("\\", get_class($this));
@@ -535,7 +535,7 @@ class MigrationsBase extends AbstractMigration implements ContainerAwareInterfac
      * Borra la migracion de la tabla de migraciones.
      * @param string $obj Contiene el objeto this.
      */
-    protected function deleteMigrationsVersion($obj)
+    public function deleteMigrationsVersion($obj)
     {
         if ($this->existTable("migration_versions")) {
             $this->connection->beginTransaction();
@@ -552,7 +552,7 @@ class MigrationsBase extends AbstractMigration implements ContainerAwareInterfac
      * @param string $obj Contiene el objeto this.
      * @return bool Retorna TRUE si ya se realizo la migracion.
      */
-    protected function verifyMigrationsVersion($obj)
+    public function verifyMigrationsVersion($obj)
     {
         $existe = false;
         try {
@@ -584,7 +584,7 @@ class MigrationsBase extends AbstractMigration implements ContainerAwareInterfac
     /**
      * Funcion que muestra por pantalla el resultado de la ejecucion y de los errores.
      */
-    protected function showResult()
+    public function showResult()
     {
         if (count($this->getLineExecution()) > 0) {
             echo "-----------------------------------------------\n";
@@ -616,7 +616,7 @@ class MigrationsBase extends AbstractMigration implements ContainerAwareInterfac
      * @param string $field Contiene el nombre el campo.
      * @return bool Retorna true si el campo existe.
      */
-    protected function existFieldInTable($table, $field)
+    public function existFieldInTable($table, $field)
     {
         $existe = false;
         try {
@@ -648,7 +648,7 @@ class MigrationsBase extends AbstractMigration implements ContainerAwareInterfac
      * @param string $type Contiene el typo de dato.
      * @return bool Retorna true si el campo existe.
      */
-    protected function existFieldType($table, $field, $type)
+    public function existFieldType($table, $field, $type)
     {
         $existe = false;
         try {
@@ -679,7 +679,7 @@ class MigrationsBase extends AbstractMigration implements ContainerAwareInterfac
      * @param string $table Contiene el nombre de la tabla.
      * @return bool Retorna true si la tabla existe.
      */
-    protected function existTable($table)
+    public function existTable($table)
     {
         $existe = false;
         try {
@@ -708,7 +708,7 @@ class MigrationsBase extends AbstractMigration implements ContainerAwareInterfac
      * Funcion que obtiene el nombre de la base de datos a la cual estoy conectado.
      * @return string Retorna el nombre de la base de datos o NULL en caso de error.
      */
-    protected function getDataBaseName()
+    public function getDataBaseName()
     {
         $resp = null;
         try {