Skip to content

Commit

Permalink
Fixed issue #12368: Remote control: properties that are available are…
Browse files Browse the repository at this point in the history
… not shown

New feature : Remote control : allow to get all attributes in get function
New feature : add some collapse feature to remotecontrol function list 	
Dev: https://www.phpdoc.org/docs/latest/references/phpdoc/basic-syntax.html allow markdown the use it
Dev: get_group_properties, get_language_properties, get_participant_properties, get_question_properties, get_summary, get_survey_properties
  • Loading branch information
Shnoulle committed May 26, 2017
1 parent d74e427 commit bb6346e
Show file tree
Hide file tree
Showing 3 changed files with 337 additions and 179 deletions.
12 changes: 5 additions & 7 deletions application/controllers/admin/remotecontrol.php
Expand Up @@ -66,10 +66,9 @@ public function run()
}
LSjsonRPCServer::handle($oHandler);
}
foreach (App()->log->routes as $route)
{
$route->enabled = $route->enabled && !($route instanceOf CWebLogRoute);
}
foreach (App()->log->routes as $route) {
$route->enabled = $route->enabled && !($route instanceOf CWebLogRoute);
}

exit;
} else {
Expand All @@ -80,15 +79,14 @@ public function run()
/* @var $method ReflectionMethod */
if (substr($method->getName(),0,1) !== '_') {
$list[$method->getName()] = array(
'description' => str_replace(array("\r", "\r\n", "\n"), "<br/>", $method->getDocComment()),
'parameters' => $method->getParameters()
'description' => $method->getDocComment(),
'parameters' => $method->getParameters(),
);
}
}
ksort($list);
$aData['method'] = $RPCType;
$aData['list'] = $list;
$aData['display']['menu_bars'] = false; // Hide normal menu bar
$this->_renderWrappedTemplate('remotecontrol', array('index_view'), $aData);
}
}
Expand Down

0 comments on commit bb6346e

Please sign in to comment.