Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
integration
prechecker
Commits
120a795b
Commit
120a795b
authored
Nov 15, 2017
by
Ankit Agarwal
Browse files
MDL-59574 analytics: Add model listing to enable_model cli script
parent
556cb98d
Changes
1
Hide whitespace changes
Inline
Side-by-side
admin/tool/analytics/cli/enable_model.php
View file @
120a795b
...
...
@@ -31,6 +31,7 @@ $help = "Enables the provided model.
Options:
--modelid Model id
--list List models
--timesplitting Time splitting method full class name
-h, --help Print out this help
...
...
@@ -42,6 +43,7 @@ Example:
list
(
$options
,
$unrecognized
)
=
cli_get_params
(
array
(
'help'
=>
false
,
'list'
=>
false
,
'modelid'
=>
false
,
'timesplitting'
=>
false
),
...
...
@@ -55,7 +57,12 @@ if ($options['help']) {
exit
(
0
);
}
if
(
$options
[
'modelid'
]
===
false
||
$options
[
'timesplitting'
]
===
false
)
{
if
(
$options
[
'list'
]
||
$options
[
'modelid'
]
===
false
)
{
\
tool_analytics\clihelper
::
list_models
();
exit
(
0
);
}
if
(
$options
[
'timesplitting'
]
===
false
)
{
echo
$help
;
exit
(
0
);
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment