mirror of
https://github.com/DzzXH/DzzOffice.git
synced 2026-03-24 08:17:50 +08:00
32 lines
615 B
PHP
32 lines
615 B
PHP
<?php
|
|
/*
|
|
* @copyright Leyun internet Technology(Shanghai)Co.,Ltd
|
|
* @license http://www.dzzoffice.com/licenses/license.txt
|
|
* @package DzzOffice
|
|
* @link http://www.dzzoffice.com
|
|
* @author zyx(zyx@dzz.cc)
|
|
*/
|
|
|
|
if (!defined('IN_DZZ')) {
|
|
exit('Access Denied');
|
|
}
|
|
|
|
class table_test extends dzz_table {
|
|
public function __construct() {
|
|
|
|
$this -> _table = 'test';
|
|
$this -> _pk = 'testid';
|
|
|
|
parent::__construct();
|
|
}
|
|
|
|
public function fetchall(){
|
|
$data=array();
|
|
foreach(DB::fetch_all("select * from %t ",array($this->_table)) as $value){
|
|
$data[]=$value;
|
|
}
|
|
return $data;
|
|
}
|
|
}
|
|
?>
|