예제 #1
0
	public function gridAction() {
		$grid = new Papercut_Query();
		$gridResult = $grid->getRecords();
		
		foreach ($gridResult as $param => $value){
			$this->setParam($param, $value);
		}
	}
예제 #2
0
파일: Model.php 프로젝트: redokes/Framework
	public function query($request = array()) {
		$request['table'] = $this->table;
		$request['primaryKey'] = $this->primaryKey;
		$query = new Papercut_Query($request);
		return $query->getRecords();
	}