nitc :: CmdEntityLink :: _title
The link title to display when the link is hoverednitc :: CmdEntityLink :: defaultinit
nitc :: CmdEntityLink :: title
The link title to display when the link is hoverednitc :: CmdEntityLink :: title=
The link title to display when the link is hoverednitc $ CmdEntityLink :: SELF
Type of this instance, automatically specialized in every classnitc :: commands_http $ CmdEntityLink :: http_init
Init the command from an HTTPRequestnitc :: commands_parser $ CmdEntityLink :: parser_init
Initialize the command from the CommandParser datanitc :: html_commands $ CmdEntityLink :: to_html
Render results as a HTML stringnitc :: json_commands $ CmdEntityLink :: to_json
Return a JSON Serializable representation ofself
results
nitc :: md_commands $ CmdEntityLink :: to_md
Render results as a Markdown stringnitc :: CmdEntity :: _mentity_name
Name of the mentity this command is aboutnitc :: CmdEntityLink :: _title
The link title to display when the link is hoveredcore :: Object :: class_factory
Implementation used byget_class
to create the specific class.
nitc :: DocCommand :: cmd_filter
Return a new filter for that command execution.core :: Object :: defaultinit
nitc :: CmdEntity :: defaultinit
nitc :: DocCommand :: defaultinit
nitc :: CmdEntityLink :: defaultinit
nitc :: DocCommand :: execute
nitc :: DocCommand :: filter=
ModelFilter to apply if anynitc :: DocCommand :: http_init
Init the command from an HTTPRequestcore :: Object :: is_same_instance
Return true ifself
and other
are the same instance (i.e. same identity).
core :: Object :: is_same_serialized
Isself
the same as other
in a serialization context?
core :: Object :: is_same_type
Return true ifself
and other
have the same dynamic type.
nitc :: CmdEntity :: mentity_name
Name of the mentity this command is aboutnitc :: CmdEntity :: mentity_name=
Name of the mentity this command is aboutcore :: Object :: native_class_name
The class name of the object in CString format.core :: Object :: output_class_name
Display class name on stdout (debug only).nitc :: DocCommand :: parser_init
Initialize the command from the CommandParser datanitc :: CmdEntityLink :: title
The link title to display when the link is hoverednitc :: CmdEntityLink :: title=
The link title to display when the link is hoverednitc :: DocCommand :: to_json
Return a JSON Serializable representation ofself
results
# Get the link to a MEntity API documentation
class CmdEntityLink
super CmdEntity
# The link text to display
var text: nullable String = null is optional, writable
# The link title to display when the link is hovered
var title: nullable String = null is optional, writable
redef fun init_command do
var res = super
if not res isa CmdSuccess then return res
var mentity = self.mentity.as(not null)
if text == null then
text = mentity.name
end
if title == null then
var mdoc = mentity.mdoc_or_fallback
if mdoc != null then
title = mdoc.synopsis
end
end
return res
end
end
src/doc/commands/commands_model.nit:87,1--113,3
redef class CmdEntityLink
redef fun parser_init(mentity_name, options) do
var opt_text = options.opt_string("text")
if opt_text != null then text = opt_text
var opt_title = options.opt_string("title")
if opt_title != null then title = opt_title
return super
end
end
src/doc/commands/commands_parser.nit:315,1--323,3
redef class CmdEntityLink
redef fun http_init(req) do
var opt_text = req.string_arg("text")
if opt_text != null then text = opt_text
var opt_title = req.string_arg("title")
if opt_title != null then title = opt_title
return super
end
end
src/doc/commands/commands_http.nit:121,1--129,3