Location: PHPKode > projects > Monyet > classes/content.php
<?php
Class Content Extends EntityBase{

	private $page;
	private $content;

	public function __construct(){
	  	//PHYSIC TABLE DEFINITION for User
		//-----------------------------------------------------
		$tablename = 'content';

		$field_page = 'page';
		$field_content = 'content';
		//-----------------------------------------------------

		$rawfields = array('page'=>$field_page,'content'=>$field_content);
		$attributes = array($field_page,$field_content);

		parent::__construct($tablename,$field_page,$attributes,$rawfields,1);
	}
	public function selectByID($id){
		$tempobj = parent::selectByID($id);
		if($tempobj){
			foreach($this->rawfields as $key => $value){
				$this->$key = $tempobj->$value;
			}
		}
	}
	public function getPage(){
		return $this->page;
	}
	public function getContent(){
		return $this->content;
	}
	public function __destruct(){
		parent::__destruct();	
	}
}
?>
Return current item: Monyet