[Alba-desarrollo] SVN Alba r6132 - in prosistem/alba/trunk/alba: apps/principal/modules/boletin/actions apps/principal/modules/legajopedagogico/templates lib/model

commits en pressenter.com.ar commits en pressenter.com.ar
Lun Abr 27 21:44:38 CEST 2009


Author: josx
Date: 2009-04-27 16:44:37 -0300 (Mon, 27 Apr 2009)
New Revision: 6132

Modified:
   prosistem/alba/trunk/alba/apps/principal/modules/boletin/actions/actions.class.php
   prosistem/alba/trunk/alba/apps/principal/modules/legajopedagogico/templates/editSuccess.php
   prosistem/alba/trunk/alba/apps/principal/modules/legajopedagogico/templates/verLegajoSuccess.php
   prosistem/alba/trunk/alba/lib/model/BoletinActividades.php
   prosistem/alba/trunk/alba/lib/model/BoletinConceptual.php
   prosistem/alba/trunk/alba/lib/model/Examen.php
   prosistem/alba/trunk/alba/lib/model/Legajopedagogico.php
Log:
Arreglando problema de blobs, arreglando el modelo sobreescribiendo los metodos que traen blobs

Modified: prosistem/alba/trunk/alba/apps/principal/modules/boletin/actions/actions.class.php
===================================================================
--- prosistem/alba/trunk/alba/apps/principal/modules/boletin/actions/actions.class.php	2009-04-27 19:14:33 UTC (rev 6131)
+++ prosistem/alba/trunk/alba/apps/principal/modules/boletin/actions/actions.class.php	2009-04-27 19:44:37 UTC (rev 6132)
@@ -322,8 +322,8 @@
                             $aNotaAlumno[$alumno->getId()][$periodo->getId()] = $boletinConceptual->getEscalanota()->getNombre();
                         }
                         if($boletinConceptual->getObservacion()) {
-                            if($boletinConceptual->getObservacion()->getContents()) {
-                                $aNotaAlumnoObs[$alumno->getId()][$periodo->getId()] = $boletinConceptual->getObservacion()->getContents();
+                            if($boletinConceptual->getObservacion()!=null) {
+                                $aNotaAlumnoObs[$alumno->getId()][$periodo->getId()] = $boletinConceptual->getObservacion();
                             }
                         }
                     }
@@ -424,8 +424,8 @@
                     if($boletinConceptual->getFkEscalanotaId()) {
                         $conceptoAlumno[$boletinConceptual->getFkPeriodoId()][$boletinConceptual->getFkConceptoId()] = $boletinConceptual->getEscalanota()->getNombre();
                     }
-                    if($boletinConceptual->getObservacion()->getContents()) {
-                        $conceptoAlumno[$boletinConceptual->getFkPeriodoId()][$boletinConceptual->getFkConceptoId()] = $boletinConceptual->getObservacion()->getContents();
+                    if($boletinConceptual->getObservacion() != null) {
+                        $conceptoAlumno[$boletinConceptual->getFkPeriodoId()][$boletinConceptual->getFkConceptoId()] = $boletinConceptual->getObservacion();
                     }
                 }            
                 $criteria = new Criteria();

Modified: prosistem/alba/trunk/alba/apps/principal/modules/legajopedagogico/templates/editSuccess.php
===================================================================
--- prosistem/alba/trunk/alba/apps/principal/modules/legajopedagogico/templates/editSuccess.php	2009-04-27 19:14:33 UTC (rev 6131)
+++ prosistem/alba/trunk/alba/apps/principal/modules/legajopedagogico/templates/editSuccess.php	2009-04-27 19:44:37 UTC (rev 6132)
@@ -60,12 +60,8 @@
   <?php endif; ?>
 
 <?php 
-if(method_exists($legajopedagogico->getResumen(),'getContents')) {
-    echo object_input_tag($legajopedagogico->getResumen(), 'getContents', array ( 'size' => 40, 'control_name' => 'legajopedagogico[resumen]',));
-} else {
     echo object_input_tag($legajopedagogico, 'getResumen', array ( 'size' => 40, 'control_name' => 'legajopedagogico[resumen]',));
-}
- ?>
+?>
     </div>
 </div>
 
@@ -77,11 +73,7 @@
   <?php endif; ?>
 
 <?php 
-if(method_exists($legajopedagogico->getTexto(),'getContents')) {
-    echo object_textarea_tag($legajopedagogico->getTexto(), 'getContents', array ( 'rows' => '10' , 'cols' => '80', 'control_name' => 'legajopedagogico[texto]',));
-} else {
-    echo object_textarea_tag($legajopedagogico, 'getTexto', array (  'rows' => '10' , 'cols' => '80', 'control_name' => 'legajopedagogico[texto]',));
-}
+    echo object_textarea_tag($legajopedagogico, 'getTexto', array ( 'rows' => '10' , 'cols' => '80', 'control_name' => 'legajopedagogico[texto]',));
 ?>
    </div>
 </div>

Modified: prosistem/alba/trunk/alba/apps/principal/modules/legajopedagogico/templates/verLegajoSuccess.php
===================================================================
--- prosistem/alba/trunk/alba/apps/principal/modules/legajopedagogico/templates/verLegajoSuccess.php	2009-04-27 19:14:33 UTC (rev 6131)
+++ prosistem/alba/trunk/alba/apps/principal/modules/legajopedagogico/templates/verLegajoSuccess.php	2009-04-27 19:44:37 UTC (rev 6132)
@@ -66,6 +66,7 @@
   <?php } ?>
   </tbody>
 
+
 <tfoot>
   <tr>
     <th colspan="9">

Modified: prosistem/alba/trunk/alba/lib/model/BoletinActividades.php
===================================================================
--- prosistem/alba/trunk/alba/lib/model/BoletinActividades.php	2009-04-27 19:14:33 UTC (rev 6131)
+++ prosistem/alba/trunk/alba/lib/model/BoletinActividades.php	2009-04-27 19:44:37 UTC (rev 6132)
@@ -15,5 +15,9 @@
  * @package model
  */	
 class BoletinActividades extends BaseBoletinActividades {
+    public function getObservacion() {
+        return stream_get_contents(parent::getObservacion());
+    }
 
+
 } // BoletinActividades

Modified: prosistem/alba/trunk/alba/lib/model/BoletinConceptual.php
===================================================================
--- prosistem/alba/trunk/alba/lib/model/BoletinConceptual.php	2009-04-27 19:14:33 UTC (rev 6131)
+++ prosistem/alba/trunk/alba/lib/model/BoletinConceptual.php	2009-04-27 19:44:37 UTC (rev 6132)
@@ -16,4 +16,8 @@
  */	
 class BoletinConceptual extends BaseBoletinConceptual {
 
+    public function getObservacion() {
+        return stream_get_contents(parent::getObservacion());
+    }
+
 } // BoletinConceptual

Modified: prosistem/alba/trunk/alba/lib/model/Examen.php
===================================================================
--- prosistem/alba/trunk/alba/lib/model/Examen.php	2009-04-27 19:14:33 UTC (rev 6131)
+++ prosistem/alba/trunk/alba/lib/model/Examen.php	2009-04-27 19:44:37 UTC (rev 6132)
@@ -15,5 +15,9 @@
  * @package model
  */	
 class Examen extends BaseExamen {
+    public function getObservacion() {
+        return stream_get_contents(parent::getObservacion());
+    }
 
+
 } // Examen

Modified: prosistem/alba/trunk/alba/lib/model/Legajopedagogico.php
===================================================================
--- prosistem/alba/trunk/alba/lib/model/Legajopedagogico.php	2009-04-27 19:14:33 UTC (rev 6131)
+++ prosistem/alba/trunk/alba/lib/model/Legajopedagogico.php	2009-04-27 19:44:37 UTC (rev 6132)
@@ -16,4 +16,12 @@
  */	
 class Legajopedagogico extends BaseLegajopedagogico {
 
+
+    public function getResumen() {
+        return stream_get_contents(parent::getResumen());
+    }
+    public function getTexto() {
+        return stream_get_contents(parent::getTexto());
+    }
+
 } // Legajopedagogico




Más información sobre la lista de distribución Alba-desarrollo