Models

Models

acl

The m_acl model gives access the id of the currently logged in user, and provides a mechanism to do basic access control checks.

Models

category

This model can retrieve information about the resource category hierarchy in different ways.

Models

config

Zotonic has two places where a site's configuration is kept:

Models

dispatch

Dispatch or generate URLs or page paths. Useful to check dispatch rules or for client side code to dispatch page paths.

Models

edge

Access information about page connections.

Models

hierarchy

The category hierarchy tables have been replaced by m_hierarchy . This model defines named hierarchies of resources (pages).

Models

identity

The m_identity model manages usernames and other user identities. module#mod_authentication uses it to store and check salted passwords, but also provides a…

Models

media

Access to data about uploaded files and other media.

Models

modules

Access information about which modules are installed and which ones are active.

Models

predicate

Retrieve information about predicates. Predicates are the labels on edges (connections between resources) that give meaning to an edge. An example is the…

Models

rdf

Model for RDF summaries of resources. It provides short RDF-oriented summary maps for resources, with translated and non-translated variants.

Models

req

This model gives access to the request variables from within a template.

Models

rsc

The main resource model, which is the central part of the Zotonic data model. This model provides an interface to all resource ("page") information. It also…

Models

rsc_export

Export a full resource representation for API and model access.

Models

rsc_gone

This model tracks deleted resources (see model#rsc). Its primary goal is to be able to determine if a resource never existed, has been deleted or has been…

Models

rsc_import

Import model for resources exported by m_rsc_export .

Models

rsc_update

Resource update helper module used by m_rsc .

Models

search

The m_search model provides access to different kinds of search queries for searching through models.

Models

site

Retrieve information that is stored in the site configuration. If you want to query values from the config table instead, you should use model#config.