API-数据(index.php)

API.php是由CmsTop发布的接口,新的api需要继承此类API

require_once "path/to/API.php";

class API_Demo extends API

{

            protected function getPickerAction()

            {}

 

            protected function getPortAction()

            {}

 

            protected function getDataAction()

            {}

 

            protected function getContentAction()

            {}

}

$inst = new API_Demo();

$inst->dispatch($_GET['action']);

 

相关主题
getPickerAction
getPortAction
getDataAction
getContentAction


Copyright ©2009 - 2014 CmsTop.Com.All rights reserved.
思拓合众