modified 优化函数命名规则

This commit is contained in:
zhaoxiang 2016-11-19 20:12:22 +08:00
parent c4ac54112b
commit 0654c7d9b4
3 changed files with 9 additions and 9 deletions

View File

@ -12,7 +12,7 @@
* @return array 系统环境数据 * @return array 系统环境数据
* @author jry <598821125@qq.com> * @author jry <598821125@qq.com>
*/ */
function check_env(){ function checkEnv(){
$items = [ $items = [
'os' => [ 'os' => [
'title' => '操作系统', 'title' => '操作系统',
@ -64,7 +64,7 @@ function check_env(){
* @return array 检测数据 * @return array 检测数据
* @author jry <598821125@qq.com> * @author jry <598821125@qq.com>
*/ */
function check_dirfile(){ function checkDirFile(){
$items = [ $items = [
'0' => [ '0' => [
'type' => 'file', 'type' => 'file',
@ -117,7 +117,7 @@ function check_dirfile(){
* 函数检测 * 函数检测
* @return array 检测数据 * @return array 检测数据
*/ */
function check_func_and_ext(){ function checkFuncAndExt(){
$items = [ $items = [
[ [
'type' => 'ext', 'type' => 'ext',

View File

@ -26,13 +26,13 @@ class Index extends Controller {
session('error', false); session('error', false);
//环境检测 //环境检测
$this->assign('check_env', check_env()); $this->assign('checkEnv', checkEnv());
//目录文件读写检测 //目录文件读写检测
$this->assign('check_dirfile', check_dirfile()); $this->assign('checkDirFile', checkDirFile());
//函数及扩展库检测 //函数及扩展库检测
$this->assign('check_func_and_ext', check_func_and_ext()); $this->assign('checkFuncAndExt', checkFuncAndExt());
return $this->fetch(); return $this->fetch();
} }

View File

@ -21,7 +21,7 @@
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
{volist name="check_env" id="item"} {volist name="checkEnv" id="item"}
<tr> <tr>
<td>{$item['title']}</td> <td>{$item['title']}</td>
<td>{$item['limit']}</td> <td>{$item['limit']}</td>
@ -40,7 +40,7 @@
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
{volist name="check_dirfile" id="item"} {volist name="checkDirFile" id="item"}
<tr> <tr>
<td>{$item['path']}</td> <td>{$item['path']}</td>
<td>可写</td> <td>可写</td>
@ -58,7 +58,7 @@
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
{volist name="check_func_and_ext" id="item"} {volist name="checkFuncAndExt" id="item"}
<tr> <tr>
<td>{$item['name']}</td> <td>{$item['name']}</td>
<td><i class="{$item['icon']}"></i> {$item['title']}</td> <td><i class="{$item['icon']}"></i> {$item['title']}</td>