IBOS open source
  • Namespace
  • Class

Namespaces

  • application
    • core
      • cache
        • driver
        • provider
      • components
      • controllers
      • engines
        • local
        • sae
      • model
      • modules
      • utils
      • widgets
    • modules
      • article
        • controllers
        • core
        • model
        • utils
      • calendar
        • controllers
        • model
        • utils
      • contact
        • controllers
        • model
        • utils
      • dashboard
        • controllers
        • model
        • utils
      • department
        • components
        • model
        • utils
      • diary
        • components
        • controllers
        • model
        • utils
        • widgets
      • email
        • controllers
        • core
        • model
        • utils
      • main
        • behaviors
        • components
        • controllers
        • model
        • utils
        • widgets
      • message
        • controllers
        • core
          • co
          • wx
            • callback
            • event
        • model
        • utils
      • mobile
        • components
        • controllers
        • utils
      • position
        • components
        • model
        • utils
      • recruit
        • components
        • controllers
        • core
        • model
        • utils
        • widgets
      • role
        • model
        • utils
      • user
        • components
        • controllers
        • model
        • utils
      • vote
        • components
        • controllers
        • model
        • utils
      • weibo
        • controllers
        • core
        • model
        • utils

Classes

  • AuthItem
  • AuthItemChild
  • Node
  • NodeRelated
  • Role
  • RoleRelated

Class NodeRelated

CActiveRecord
Extended by application\core\model\Model
Extended by application\modules\role\model\NodeRelated
Namespace: application\modules\role\model
Located at system/modules/role/model/NodeRelated.php

Methods summary

public static
# model( $className = __CLASS__ )
public
# tableName( )
public
# deleteAllByRoleIdWithKeys( $roleid, $exceptKeyS, $module )
public string
# fetchDataValByIdentifier( string $id, string $roleId )

三个值组成唯一值,根据此值查找所属数据权限ID

三个值组成唯一值,根据此值查找所属数据权限ID

Parameters

$id
$roleId
角色id

Returns

string
public array
# fetchDataByIdentifier( string $id, string $roleId )

看懂↑(方法fetchDataValByIdentifier)的注释了么,反正我没看懂 意思是说:根据由node_related表里的module/key/node(也就是这里的id,把module,key,node换成表里的值)的值,以及roleid获取val的值 而这个函数是得到整条记录

看懂↑(方法fetchDataValByIdentifier)的注释了么,反正我没看懂 意思是说:根据由node_related表里的module/key/node(也就是这里的id,把module,key,node换成表里的值)的值,以及roleid获取val的值 而这个函数是得到整条记录

Parameters

$id
module/key/node的格式的字符串
$roleId
角色id

Returns

array
public array
# fetchAllByRoleId( integer $id )

根据角色ID查找所有该角色关联记录

根据角色ID查找所有该角色关联记录

Parameters

$id
角色id

Returns

array
public integer
# deleteAllByRoleId( integer $id )

根据角色ID删除所有节点关联记录

根据角色ID删除所有节点关联记录

Parameters

$id
角色ID

Returns

integer
public integer
# addRelated( string $val = '', integer $roleId = 0, array $node = array() )

更新关联记录

更新关联记录

Parameters

$val
$roleId
$node

Returns

integer

Methods inherited from application\core\model\Model

add(), beforeDelete(), create(), deleteByPk(), fetch(), fetchAll(), fetchAllByAttributes(), fetchAllByPk(), fetchAllSortByPk(), fetchByAttributes(), fetchByPk(), fetchCache(), fetchCaches(), getCacheKey(), getIsAllowCache(), getMaxId(), getModelClass(), init(), modify(), remove(), updateAll(), updateByPk()

Properties summary

Properties inherited from application\core\model\Model

$allowCache, $cacheLife

IBOS open source API documentation generated by ApiGen