z (zotonic_core v1.0.0-rc.14)
Link to this section Summary
Functions
Return a new context
(Re)make all erlang source modules with the supplied compile options. Do not reset the caches.
Log a debug message to the logs and the database, with extra meta data. To add the current source location, use the ?zDebug macro.
Echo and return a debugging value. This is useful for adding debug anywhere in the code, as the passed argument is also returned. Example: foo( ?DEBUG(Arg) ) will add Arg as a notice to the logs and still call foo(Arg).
Return the complete dispatch information for the site.
Shell command: dispatch a path, return trace
Dispatch an URL - find matching site and dispatch the path
Log a error to the logs and the database, with extra meta data. To add the current source location, use the ?zError macro.
Log a fatal error to the logs and the database, with extra meta data. To add the current source location, use the ?zError macro.
Reset all caches, reload the dispatch rules and rescan all modules.
Log an informational message to the logs and the database, with extra meta data. To add the current source location, use the ?zInfo macro.
Reload all changed Erlang modules
Reload an Erlang module
(Re)make all erlang source modules and reset the caches.
Send a notification to the first observer
Send a notification
Log a notice to the logs and the database, with extra meta data. To add the current source location, use the ?zNotice macro.
Reindex all sites, find new files.
Full restart of Zotonic
Restart a site
Shell commands: stop a site
Shell commands: start a site
Shell commands: stop a site
Log a warning to the logs and the database, with extra meta data. To add the current source location, use the ?zWarning macro.
Link to this section Types
Link to this type
context/0
-type context() :: #context{}.
Link to this type
environment/0
-type environment() :: development | test | acceptance | production | education | backup.
Link to this type
qvalue/0
-type qvalue() :: binary() | string() | #upload{} | term().
Link to this type
severity/0
-type severity() :: debug | info | notice | warning | error | fatal.
Link to this type
trans/0
-type trans() :: #trans{}.
Link to this type
validation_error/0
-type validation_error() :: invalid | novalue | {script, iodata()} | novalidator | string().
Link to this section Functions
Link to this function
c(Site)
-spec c(atom()) -> z:context().
Link to this function
compile()
Link to this function
debug(Msg, Context)
Link to this function
debug(Msg, Meta, Context)
Link to this function
debug(Format, Args, Meta, Context)
Link to this function
debug_msg(Msg, Meta)
Link to this function
dispatch_list(SiteOrContext)
Link to this function
dispatch_path(Path, Site)
Link to this function
dispatch_url(Url)
Link to this function
error(Msg, Context)
Link to this function
error(Msg, Meta, Context)
Link to this function
error(Format, Args, Meta, Context)
Link to this function
fatal(Msg, Context)
Link to this function
fatal(Msg, Meta, Context)
Link to this function
fatal(Format, Args, Meta, Context)
Link to this function
flush()
-spec flush() -> ok.
Link to this function
flush(Site)
-spec flush(atom() | z:context()) -> ok.
Link to this function
info(Msg, Context)
Link to this function
info(Msg, Meta, Context)
Link to this function
info(Format, Args, Meta, Context)
Link to this function
ld(Module)
Link to this function
log(Level, Meta, Context)
-spec log(Level :: severity(), Meta :: proplists:proplist() | map(), Context :: z:context()) -> ok.
Link to this function
n1(Msg, Context)
Link to this function
n(Msg, Context)
Link to this function
notice(Msg, Context)
Link to this function
notice(Msg, Meta, Context)
Link to this function
notice(Format, Args, Meta, Context)
Link to this function
reindex()
Link to this function
restart()
Link to this function
restart(Site)
Link to this function
shell_restartsite(Site)
Link to this function
shell_startsite(Site)
Link to this function
shell_stopsite(Site)
Link to this function
warning(Msg, Context)
Link to this function
warning(Msg, Meta, Context)
Link to this function