app/admin/controller/Base.php

(开头部分) 11KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

<?php
/**
 * 人人站CMS
 * ============================================================================
 * 版权所有 2015-2030 山东康程信息科技有限公司,并保留所有权利。
 * 网站地址: http://www.rrzcms.com
 * ----------------------------------------------------------------------------
 * 如果商业用途务必到官方购买正版授权, 以免引起不必要的法律纠纷.
 * ============================================================================
 */

namespace app\admin\controller;

use app\BaseController;


class Base extends BaseController
{
    protected $account;

    var $pagedata = [
        'columns' => [],//展示列
        'tabs' => [],//页签
        'search' => [],//搜索项
        'toolbar_html' => '',//自定义
        'actions' => [],//按钮列表
        'model' => null,//数据模型
        'fields' => '',//查询字段
        'where' => null,//查询条件
        'order' => null,//排序规则
        'group' => null,//分组查询
        'ajax_url' => '',//分页查询等ajax数据请求地址
        'limit' => 10,//分页每页数据
        'pk_field' => null,//主键,如果不赋值则自动获取
        'checkType' => false,//选择按钮类型,不显示则为false,默认:false,亦可设置:checkbox,radio
        'fixedColumn' => false,//固定列宽:是否
        'colsNo' => false,//列序号,是否显示序号
        'grid_class' => '',//样式名称
        'grid_desc' => '',//其他内容
        'isPage' => true,//是否分页
        'data' => [],//表格数据
        'trAttr' => [],//表格行属性 ['attrName'=>'fieldName']
    ];

    protected function initialize() {
        parent::initialize();
        $this->account = $this->getAccount();
    }

    /**
     * 检测id是否合法参数
     * @param string $id
     * @return array|string
     * @throws \Exception
     */
    protected function checkIds($id = '') {
        if (strpos($id, ',') !== false) {
            $id = explode(',', $id);
            $id = array_values(array_filter($id, 'is_numeric'));
            $id or $this->error('参数不合法!');
后面还有 224 行代码,购买后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。