<i id='utLD3'><tr id='utLD3'><dt id='utLD3'><q id='utLD3'><span id='utLD3'><b id='utLD3'><form id='utLD3'><ins id='utLD3'></ins><ul id='utLD3'></ul><sub id='utLD3'></sub></form><legend id='utLD3'></legend><bdo id='utLD3'><pre id='utLD3'><center id='utLD3'></center></pre></bdo></b><th id='utLD3'></th></span></q></dt></tr></i><div id='utLD3'><tfoot id='utLD3'></tfoot><dl id='utLD3'><fieldset id='utLD3'></fieldset></dl></div>

    • <bdo id='utLD3'></bdo><ul id='utLD3'></ul>

      1. <legend id='utLD3'><style id='utLD3'><dir id='utLD3'><q id='utLD3'></q></dir></style></legend>

      2. <small id='utLD3'></small><noframes id='utLD3'>

        <tfoot id='utLD3'></tfoot>

        是否可以使用 Drupal api 来获取用户列表?

        时间:2023-06-22

            <small id='OFdDZ'></small><noframes id='OFdDZ'>

              <legend id='OFdDZ'><style id='OFdDZ'><dir id='OFdDZ'><q id='OFdDZ'></q></dir></style></legend>
                <bdo id='OFdDZ'></bdo><ul id='OFdDZ'></ul>

              • <i id='OFdDZ'><tr id='OFdDZ'><dt id='OFdDZ'><q id='OFdDZ'><span id='OFdDZ'><b id='OFdDZ'><form id='OFdDZ'><ins id='OFdDZ'></ins><ul id='OFdDZ'></ul><sub id='OFdDZ'></sub></form><legend id='OFdDZ'></legend><bdo id='OFdDZ'><pre id='OFdDZ'><center id='OFdDZ'></center></pre></bdo></b><th id='OFdDZ'></th></span></q></dt></tr></i><div id='OFdDZ'><tfoot id='OFdDZ'></tfoot><dl id='OFdDZ'><fieldset id='OFdDZ'></fieldset></dl></div>
                    <tbody id='OFdDZ'></tbody>

                  <tfoot id='OFdDZ'></tfoot>
                  本文介绍了是否可以使用 Drupal api 来获取用户列表?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我想获取已分配特定角色的所有用户的列表.我可以编写自己的 SQL,但我想尽可能多地使用 api.

                  I would like to get a list of all the users who have been assigned a certain role. I could write my own SQL but I would like to use the api as much as possible.

                  推荐答案

                  对于此类任务(提取符合特定条件的实体),通常没有 Drupal API 函数.它倾向于关注 API 中的单实体 CRUD 功能;其他一切都取决于开发人员自己的 SQL 技能.

                  There are generally no Drupal API functions for this sort of task (pulling up entities that match certain criteria). It tends to focus on single-entity CRUD functions in the API; everything else is up to a developer's own SQL skills.

                  Views 模块允许您构建按角色、权限等过滤的用户列表 - 但它很容易被过度使用.

                  The Views module allows you to build lists of users filtered by role, permission, etc -- but it could easily be overkill.

                  这篇关于是否可以使用 Drupal api 来获取用户列表?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:XAMPP PhpMyAdmin 错误 1045,“拒绝用户 'root'@'localhost 下一篇:如何使用 Drupal 发布驻留在外部数据库中的数据?

                  相关文章

                      <bdo id='givMf'></bdo><ul id='givMf'></ul>

                    1. <tfoot id='givMf'></tfoot>

                      <legend id='givMf'><style id='givMf'><dir id='givMf'><q id='givMf'></q></dir></style></legend>

                    2. <i id='givMf'><tr id='givMf'><dt id='givMf'><q id='givMf'><span id='givMf'><b id='givMf'><form id='givMf'><ins id='givMf'></ins><ul id='givMf'></ul><sub id='givMf'></sub></form><legend id='givMf'></legend><bdo id='givMf'><pre id='givMf'><center id='givMf'></center></pre></bdo></b><th id='givMf'></th></span></q></dt></tr></i><div id='givMf'><tfoot id='givMf'></tfoot><dl id='givMf'><fieldset id='givMf'></fieldset></dl></div>

                      <small id='givMf'></small><noframes id='givMf'>