php 写model层

<?php
/**
 * @author Administrator
 *
 */
class User {
	private $id;
	private $admin;
	private $paw;
	private $reg;
	public function getId(){
		return $this->$id;
	}
	public function setId($id){
		return $this->$id = $id;
	}
	//
	public function getAdmin(){
		return $this->$admin;
	}
	public function setAdmin($admin){
		return $this->$admin = $admin;
	}
	//
	public function getPaw(){
		return $this->$paw;
	}
	public function setPaw($paw){
		return $this->$paw = $paw;
	}
	//
	public function getReg(){
		return $this->$reg;
	}
	public function setReg($reg){
		return $this->$reg = $reg;
	}
}

 

posted on 2015-03-07 10:57  手撕高达的村长  阅读(433)  评论(0编辑  收藏  举报

导航