同步操作将从 anziguoer/restAPI 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
<?php/*** @Author: anziguoer@sina.com* @Email: anziguoer@sina.com* @link: https://git.oschina.net/anziguoer* @Date: 2015年04月30日 16:52:53* @Last Modified by: yangyulong* @Last Modified time: 2015年04月30日 17:26:37*/include './ApiServer.php';class testServer extends apiServer{/*** 先执行apiServer中的方法,初始化数据* @param object $obj 可以传入的全局对象[数据库对象,框架全局对象等]*/private $obj;function __construct()//object $obj{parent::__construct();//$this->obj = $obj;//$this->resourse; 父类中已经实现,此类中可以直接使用//$tihs->resourseId; 父类中已经实现,此类中可以直接使用}/*** 获取资源操作* @return [type] [description]*/protected function _get(){echo "get";//逻辑代码根据自己实际项目需要实现}/*** 新增资源操作* @return [type] [description]*/protected function _post(){echo "post";//逻辑代码根据自己实际项目需要实现}/*** 删除资源操作* @return [type] [description]*/protected function _delete(){//逻辑代码根据自己实际项目需要实现}/*** 更新资源操作* @return [type] [description]*/protected function _put(){echo "put";//逻辑代码根据自己实际项目需要实现}}$server = new testServer();
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。