GithubHelp home page GithubHelp logo

uofs-pulse-binfo / chado_custom_search Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 5.39 MB

Provides custom search functionality for those who don't wish to use Drupal Views.

License: GNU General Public License v2.0

PHP 99.88% Shell 0.12%

chado_custom_search's Introduction

Tripal Dependency Module is Generic GitHub release (latest by date including pre-releases)

Build Status Maintainability Test Coverage

Chado Custom Search

Provides custom search functionality for those who don't wish to use Drupal Views.

Why might you want to use this module?

  • Gives you complete control of the query so you can tweak performance.
  • Removes query-determination overhead of Drupal Views for better performance.
  • Lets you make quick custom searches which can be under version control.
  • Saves you from having to render the result table, generate the filter form, handle the user input and execute the query.
  • Lets you focus on customizing only what you want to!

Chado Custom Search API

  1. Implement hook_chado_custom_search to tell the API about the search you would like to create.
/**
 * Implement hook_chado_custom_search().
 *
 * This hook simply lists the machine name of the searches so that we can find
 * the info hook. We've done this for performance reasons.
 */
function example_ccsearch_chado_custom_search() {
  $searches = [];

  $searches['BreedingCrossSearch'] = 'Breeding Cross Search';

  return $searches;
}
  1. Create a class which extends ChadoCustomSearch. At a minimum you need to set the editable static constants and the getQuery() method. See BreedingCrossSearch for an example.

  2. Clear the cache, navigate to the path defined in the class and enjoy your custom search!

Documentation

For more information on what you can accomplish or how to get started, see our ReadtheDocs Documentation.

chado_custom_search's People

Contributors

laceysanderson avatar reynoldtan avatar

Watchers

 avatar  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.