[Alba-desarrollo] SVN Alba r5517 - prosistem/alba/trunk/alba/lib/model

commits en pressenter.com.ar commits en pressenter.com.ar
Mie Abr 9 21:20:47 CEST 2008


Author: hsanchez
Date: 2008-04-09 16:20:45 -0300 (Wed, 09 Apr 2008)
New Revision: 5517

Modified:
   prosistem/alba/trunk/alba/lib/model/Alumno.php
   prosistem/alba/trunk/alba/lib/model/Docente.php
   prosistem/alba/trunk/alba/lib/model/Responsable.php
Log:
Agregando metodos getApellidos  y agregando el apellido materno

Modified: prosistem/alba/trunk/alba/lib/model/Alumno.php
===================================================================
--- prosistem/alba/trunk/alba/lib/model/Alumno.php	2008-04-09 18:29:39 UTC (rev 5516)
+++ prosistem/alba/trunk/alba/lib/model/Alumno.php	2008-04-09 19:20:45 UTC (rev 5517)
@@ -15,9 +15,13 @@
  * @package model
  */	
 class Alumno extends BaseAlumno {
- 	public function __toString() {
-         return $this->getApellido() . " " . $this->getNombre() ;
-	}		 
+    public function __toString() {
+        return $this->getApellido() . " ".$this->getApellidoMaterno()." ". $this->getNombre() ;
+    } 
+        
+    public function getApellidos(){
+        return $this->getApellido().' '.$this->getApellidoMaterno();
+    }
 
     public function toArrayInforme($keyType = BasePeer::TYPE_PHPNAME)
     {

Modified: prosistem/alba/trunk/alba/lib/model/Docente.php
===================================================================
--- prosistem/alba/trunk/alba/lib/model/Docente.php	2008-04-09 18:29:39 UTC (rev 5516)
+++ prosistem/alba/trunk/alba/lib/model/Docente.php	2008-04-09 19:20:45 UTC (rev 5517)
@@ -16,6 +16,9 @@
  */	
 class Docente extends BaseDocente {
     public function __toString() {
-        return $this->getApellido().' '.$this->getNombre();
+        return $this->getApellido().' '.$this->getApellidoMaterno().' '.$this->getNombre();
     }
+    public function getApellidos(){
+        return $this->getApellido().' '.$this->getApellidoMaterno();
+    }
 } // Docente

Modified: prosistem/alba/trunk/alba/lib/model/Responsable.php
===================================================================
--- prosistem/alba/trunk/alba/lib/model/Responsable.php	2008-04-09 18:29:39 UTC (rev 5516)
+++ prosistem/alba/trunk/alba/lib/model/Responsable.php	2008-04-09 19:20:45 UTC (rev 5517)
@@ -16,4 +16,8 @@
  */	
 class Responsable extends BaseResponsable {
 
+    public function getApellidos(){
+        return $this->getApellido().' '.$this->getApellidoMaterno();
+    }
+
 } // Responsable




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