z_module_indexer (zotonic_core v1.0.0-rc.11)
Link to this section Summary
Functions
Return a list of all templates, scomps etc per module
Convert process state when code is changed
Find all dispatch files in all modules and the active site.
Find a scomp, validator etc.
Find a scomp, validator etc.
Scan for all scomps etc. for the context given.
Handling all non call/cast messages
Initiates the server.
Reindex all sites
Reindex the list of all scomps, etc for the site in the context.
Starts the server
This function is called by a gen_server when it is about to terminate. It should be the opposite of Module:init/1 and do any necessary cleaning up. When it returns, the gen_server terminates with Reason. The return value is ignored.
Find all .po files in all modules and the active site. This is an active scan, not designed to be fast.
Link to this section Types
Link to this type
key_type/0
-type key_type() :: template | lib | filter | scomp | action | validator | model | dispatch.
Link to this section Functions
Link to this function
all(What, Context)
Link to this function
all_files(Type, Module)
Link to this function
code_change(OldVsn, State, Extra)
Link to this function
dispatch(Context)
-spec dispatch(z:context()) -> [{module(), [file:filename_all()]}].
Link to this function
find(What, Name, Context)
Link to this function
find_all(What, Name, Context)
Link to this function
handle_call(Message, From, State)
Link to this function
handle_cast(Message, State)
Link to this function
handle_info(Info, State)
Link to this function
index_ref(Context)
Link to this function
init(Site)
Link to this function
new_ets()
-spec new_ets() -> ets:tid() | atom().
Link to this function
reindex()
-spec reindex() -> ok.
Link to this function
reindex(Context)
-spec reindex(z:context()) -> ok.
Link to this function
start_link(Site)
Link to this function
terminate(Reason, State)
Link to this function
translations(Context)
-spec translations(z:context()) -> [{Module :: atom(), [{Language :: atom(), file:filename_all()}]}].