Mister Spy Say ="Hello Kids ... :D"
___ ____ _ _____
| \/ (_) | | / ___|
| . . |_ ___| |_ ___ _ __ \ `--. _ __ _ _
| |\/| | / __| __/ _ \ '__| `--. \ '_ \| | | |
| | | | \__ \ || __/ | /\__/ / |_) | |_| |
\_| |_/_|___/\__\___|_| \____/| .__/ \__, |
| | __/ |
|_| |___/
Bot Mister Spy V3
Mister Spy
Mister Spy
<?
require_once('../library/class.noticiaimagenes.php');
class ModuleNoticiaImagenes extends Module
{
function GetName()
{
return "NoticiaImagenes";
}
function GetXMLCommands()
{
$Commands = array();
$Commands[] = 'GetById';
$Commands[] = 'GetLastId';
$Commands[] = 'GetAll';
$Commands[] = 'Create';
$Commands[] = 'Update';
$Commands[] = 'Delete';
return $Commands;
}
function GetById(array $array)
{
$NoticiaImagenes = new NoticiaImagenes();
return $NoticiaImagenes->GetById($array['IdImagen']);
}
function GetLastId(array $array)
{
$NoticiaImagenes = new NoticiaImagenes();
return $NoticiaImagenes->GetLastId();
}
function GetAll(array $array)
{
$NoticiaImagenes = new NoticiaImagenes();
$oPage = new Page($array['CurrentPage']);
$filter = array();
$filter['Nombre'] = $array['Filter_Nombre'];
return $NoticiaImagenes->GetAll($filter, $oPage);
}
function Create(array $array)
{
$NoticiaImagenes = new NoticiaImagenes();
$oNoticiaImagen = new NoticiaImagen();
$oNoticiaImagen->IdNoticia = $array['IdNoticia'];
$oNoticiaImagen->Imagen = $array['Imagen'];
$oNoticiaImagen->Epigrafe = $array['Epigrafe'];
$oNoticiaImagen = $NoticiaImagenes->Create($oNoticiaImagen);
if (!$oNoticiaImagen)
return false;
return $oNoticiaImagen;
}
function Update(array $array)
{
$NoticiaImagenes = new NoticiaImagenes();
/* obtiene los datos del registro */
$oNoticiaImagen = $NoticiaImagenes->GetById($array['IdImagen']);
if (!$oNoticiaImagen)
return false;
$oNoticiaImagen->Epigrafe = $array['Epigrafe'];
return $NoticiaImagenes->Update($oNoticiaImagen);
}
function Delete(array $array)
{
$NoticiaImagenes = new NoticiaImagenes();
/* obtiene los datos del registro */
$oNoticiaImagen = $NoticiaImagenes->GetById($array['IdImagen']);
if (!$oNoticiaImagen)
return false;
return $NoticiaImagenes->Delete($oNoticiaImagen->IdImagen);
}
}
?>
Mr. DellatioNx196 GaLers xh3LL Backd00r 1.0, Coded By Mr. DellatioNx196 - Bogor BlackHat