12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091 |
- <?php
- return array
- (
- # 表名
- 'name' => 'relation',
- # 显示给用户看的名称
- 'lang' => '邀请关系',
- # 是否显示在后台菜单
- 'order' => 9,
- 'menu' => false,
- # 数据结构
- 'struct' => array
- (
- 'id' => array
- (
- 'type' => 'int-11',
- 'name' => 'ID',
- 'default' => '',
- 'desc' => '',
- 'match' => 'is_numeric',
- //'list' => true,
- ),
- 'uid' => array
- (
- 'type' => 'int-11',
- 'name' => '邀请人',
- 'default' => '',
- 'desc' => '邀请人',
- 'match' => 'is_numeric',
- 'list' => true,
- ),
- 'to_uid' => array
- (
- 'type' => 'int-11',
- 'name' => '被邀请人',
- 'default' => '',
- 'desc' => '被邀请人',
- 'match' => 'is_numeric',
- 'list' => true,
- ),
- 'level' => array
- (
- 'type' => 'int-11',
- 'name' => '邀请级数',
- 'default' => '',
- 'desc' => '邀请级数',
- 'match' => 'is_numeric',
- 'list' => true,
- ),
-
- 'cdate' => array
- (
- 'type' => 'int-11',
- 'name' => '录入时间',
- 'match' => array('is_numeric', time()),
- 'desc' => '',
- # 只有insert时才生效
- 'insert' => true,
- 'search' => 'date',
- 'list' => 'date("Y-m-d H:i:s", {cdate})',
- ),
- ),
- 'manage' => array
- (
- 'delete' => false,
- 'edit' => false,
- 'insert' => false,
- ),
- 'request' => array
- (
- 'getChild' => array
- (
- # 匹配的正则或函数 选填项
- 'where' => array
- (
- 'uid' => 'yes',
- 'level' => array('yes', '<='),
- ),
- 'type' => 'all',
- 'order' => array('id' => 'desc'),
- 'col' => '*',
- ),
- )
- );
|