コード例 #1
0
ファイル: Cursos.php プロジェクト: pablosanjuan/ManosDeOro
 /**
  * Clone will return identical deep copy of this valueObject.
  * Note, that this method is different than the clone() which
  * is defined in java.lang.Object. Here, the retuned cloned object
  * will also have all its attributes cloned.
  */
 function cloneObject()
 {
     $cloned = new Cursos();
     $cloned->setId($this->id);
     $cloned->setFoto($this->foto);
     $cloned->setDescripcion($this->descripcion);
     $cloned->setFecha_lim($this->fecha_lim);
     $cloned->setHorario($this->horario);
     return $cloned;
 }