示例#1
0
 /**
  * Updata entity access info 
  *
  * @param RM_Permission_iPermissionable $object
  */
 public function updateAccessInfo(RM_Permission_iPermissionable $object)
 {
     M('Db')->exec("UPDATE " . $this->_tables['holder'] . " SET access_id = ?, access_inherit = ? WHERE id = ?", $object->_accessId(), $object->_accessInherit(), $object->id());
     $this->_storage['holder']->cacheClear($object);
 }
示例#2
0
 public function entityUpdateAccessInfo(RM_Permission_iPermissionable $object)
 {
     M('Db')->exec("UPDATE " . $this->_fileStorage->table() . " SET access_id = ?, access_inherit = ? WHERE id = ?", $object->_accessId(), $object->_accessInherit(), $object->id());
     $this->_fileStorage->cacheClear($object);
 }