Location: PHPKode > projects > PBBoard > PBBoard_v2.1.4/Upload/engine/systems/info.class.php
<?php

/**
 * PowerBB Engine - The Engine Helps You To Create Bulletin Board System.
 */
 
/**
 * @package 	: 	PowerBBInfo
 * @author 		: 	Mohammed Q. Hussain <hide@address.com>
 * @start 		: 	20/1/2007 , 9:29 PM
 * @end   		: 	20/1/2007 , 9:33 PM
 * @updated		: 	21/08/2008 08:47:19 PM 
 */

class PowerBBInfo
{
	var $Engine;
	
	function PowerBBInfo($Engine)
	{
		$this->Engine = $Engine;
	}
	
	function GetSettingInfo($param=null)
	{
 		if (!isset($param)
 			or !is_array($param))
 		{
 			$param = array();
 		}
 	 	
		$param['select'] 	= 	'*';
		$param['from'] 		= 	$this->Engine->table['info'];
		
		$rows = $this->Engine->records->GetList($param);
		
		return $rows;
	}
	
 	function UpdateInfo($param)
 	{
 		if (!isset($param['var_name']))
 		{
 			trigger_error('ERROR::NEED_PARAMETER -- FROM UpdateInfo() -- EMPTY var_name',E_USER_ERROR);
 		}
 		
 		$field = array('value'		=>	$param['value']);
		
		$where = array('var_name',$param['var_name']);
		
		$query = $this->Engine->records->Update($this->Engine->table['info'],$field,$where);
		           
		return ($query) ? true : false;
 	}
}

?>
Return current item: PBBoard