Code Monkey home page Code Monkey logo

digitalis-framework's Introduction

digitalis-framework

some abstract objects.

The WordPress Query Controller

graph TB

    direction TB

    index(["index.php"]) -->
    wp-blog-header(["wp-blog-header.php"])

    wp-blog-header
    -- "wp()" --> wp

    admin-edit(["wp-admin/edit.php"]) -->
    prepare_items(["WP_Posts_List_Table::prepare_items()"]) -->
    admin-posts(["wp_edit_posts_query()\nwp-admin/includes/post.php"])
    -- "wp($query)" --> wp

    wp(["wp($query_vars = '')\nfunctions.php"]) -->
    main(["WP::main($query_vars = '')"])

    main --> parse_request(["WP::parse_request($query_vars = '')"])
    main --> query_posts(["WP::query_posts()"])
    main --> handle_404(["WP::handle_404()"])
    main --> register_globals(["WP::register_globals()"])
    main --> send_headers(["WP::send_headers()"])

Loading

The Digitalis Query Controller

Digitalis Framework extends the functionality of WordPress queries rather than overwriting them.

graph TB

    direction TB

    ajax(["wp_ajax_query_{$post_type}"]) -->
    parse-request("global $wp, $wp_query;\n$wp->parse_request();\n$wp_query->query_vars = $wp->query_vars;") -->
    ajax-query("Post_Type::ajax_query") <--> query-args

    pre-get(["pre_get_posts"]) -- "$wp_query" -->
    is-main("Post_Type::is_main_query") -->
    main-query("Post_Type::main_query") <-->
    query-args("Post_Type::get_query_vars") -->
    model-query("Model::query") -->
    get-inst("Model::get_instances")

    pre-get -- "$wp_query" -->
    is-main-admin("Post_Type::is_main_admin_query") -->
    admin-query("Post_Type::admin_query") <-->
    admin-query-args("Post_Type::get_admin_query_vars") -->
    model-query

    


Loading

digitalis-framework's People

Contributors

perrelet avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.