Omeka Classic Logo
  • What’s new in Omeka
  • Tutorials
  • Reference
    • Global (Theming) Functions
    • Hooks
    • Filters
    • models
    • views/helpers
    • controllers
    • Packages
      • Acl
      • Application
      • Auth
      • Captcha
      • Controller
      • Db
      • File\Derivative
      • Filter
      • Form
      • Global Functions
        • Db-related functions
        • Locale-related functions
        • Log-related functions
        • Plugin-related functions
        • Search-related functions
        • Text-related functions
        • User-related functions
        • Utility-related functions
        • View-related functions
      • Http
      • Install
      • Job
      • Navigation
      • Output
      • Plugin
      • Record
      • Session
      • Storage
      • Test
      • Validate
      • View
    • libraries/Omeka
    • Omeka REST API
  • Helping With Documentation
  • Registering a new module or theme with omeka.org
Omeka Classic
  • Reference
  • Global (Theming) Functions
  • Global Functions
  • Db-related functions
  • View page source

Db-related functions

Up to Global Functions

  • get_db — Get the database object.
  • get_recent_files — Get the most recent files.
  • get_record — Get a single record from the database.
  • get_record_by_id — Get a record by its ID.
  • get_records — Get a set of records from the database.
  • total_records — Get the total number of a given type of record in the database.
  • Collection-related functions
    • get_random_featured_collection — Get a random featured collection.
    • get_recent_collections — Get the most recently added collections.
    • insert_collection — Insert a collection
    • update_collection — Update an existing collection.
  • ElementSet-related functions
    • element_exists — Check whether an element set contains a specific element.
    • insert_element_set — Insert an element set and its elements into the database.
  • Item-related functions
    • get_collection_for_item — Get the Collection object for the current item.
    • insert_files_for_item — Add files to an item.
    • insert_item — Insert a new item into the Omeka database.
    • update_item — Update an existing item.
  • ItemType-related functions
    • insert_item_type — Insert a new item type.
  • Option-related functions
    • delete_option — Delete an option from the options table.
    • get_option — Get an option from the options table.
    • get_theme_option — Get a theme option.
    • set_option — Set an option to the options table.
    • set_theme_option — Set a theme option.
Previous Next

© Copyright 2012-2023, Omeka.

Built with Sphinx using a theme provided by Read the Docs.