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

/**
 * PowerBB Engine - The Engine Helps You To Create Bulletin Board System.
 */

/**
 * @package 	: 	PowerBBUsertitle
 * @author 		: 	Mohammed Q. Hussain <hide@address.com>
 * @start 		: 	22/3/2006 , 5:05 PM
 * @end   		: 	22/3/2006 , 5:19 PM
 * @updated 	: 	17/07/2008 12:29:56 AM
 */

class PowerBBUsertitle
{
	var $id;
	var $Engine;

	function PowerBBUsertitle($Engine)
	{
		$this->Engine = $Engine;
	}

	function InsertUsertitle($param)
	{
 		if (!isset($param)
 			or !is_array($param))
 		{
 			$param = array();
 		}

		$query = $this->Engine->records->Insert($this->Engine->table['usertitle'],$param['field']);

		if ($param['get_id'])
		{
			$this->id = $this->Engine->DB->sql_insert_id();
		}

		return ($query) ? true : false;
	}

	function GetUsertitleList($param)
	{
  		if (!isset($param)
  			or !is_array($param))
 		{
 			$param = array();
 		}

 		$param['select'] 	= 	'*';
 		$param['from'] 		= 	$this->Engine->table['usertitle'];

 	 	$rows = $this->Engine->records->GetList($param);

 		return $rows;
	}

	function GetUsertitleInfo($param)
	{
 		if (!isset($param)
 			or !is_array($param))
 		{
 			$param = array();
 		}

 	 	$param['select'] 	= 	'*';
 	 	$param['from'] 		= 	$this->Engine->table['usertitle'];

 	 	$rows = $this->Engine->records->GetInfo($param);

 	 	return $rows;
	}

	function UpdateUsertitle($param)
	{
 		if (!isset($param)
 			or !is_array($param))
 		{
 			$param = array();
 		}

		$query = $this->Engine->records->Update($this->Engine->table['usertitle'],$param['field'],$param['where']);

		return ($query) ? true : false;
	}

	function DeleteUsertitle($param)
	{
 		if (!isset($param)
 			or !is_array($param))
 		{
 			$param = array();
 		}

		$param['table'] = $this->Engine->table['usertitle'];

		$del = $this->Engine->records->Delete($param);

		return ($del) ? true : false;
	}


}

?>
Return current item: PBBoard