📄 space.class.php
字号:
<?php
class space
{
var $table;
var $api_table;
var $db;
var $api;
var $blockids;
function __construct()
{
global $db;
$this->table = DB_PRE.'space';
$this->api_table = DB_PRE.'space_api';
$this->db = $db;
$this->api = cache_read('space_api.php');
}
function space()
{
$this->__construct();
}
/**
* 鑾峰緱鍗曚釜API淇℃伅
*
* @param INT $apiid
* @return $result
*/
function get_api($apiid)
{
$apiid = intval($apiid);
if($apiid < 1) return false;
$result = $this->db->get_one("SELECT * FROM $this->api_table WHERE apiid='$apiid'");
return $result;
}
/**
* 缁熻
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -