space.class.php

来自「Phpcms2008 是一款基于 PHP+Mysql 架构的网站内容管理系统」· PHP 代码 · 共 39 行

PHP
39
字号
<?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 + =
减小字号Ctrl + -
显示快捷键?