);
});
- /**
- * Core
- */
+ /**
+ * Core
+ */
$container->registerService('L10N', function(IContainer $c) {
return $c->query('ServerContainer')->getL10N($c->query('AppName'));
});
class ApiController extends Controller {
+ /**
+ * @var TagService $tagService
+ */
+ private $tagService;
+
public function __construct($appName, IRequest $request, TagService $tagService){
parent::__construct($appName, $request);
$this->tagService = $tagService;
\OCA\Files\App::getNavigationManager()->add(
array(
- "id" => 'favorites',
- "appname" => 'files',
- "script" => 'simplelist.php',
- "order" => 50,
- "name" => $l->t('Favorites')
+ 'id' => 'favorites',
+ 'appname' => 'files',
+ 'script' => 'simplelist.php',
+ 'order' => 50,
+ 'name' => $l->t('Favorites')
)
);
(function(OCA) {
- var TEMPLATE_FAVORITE_ACTION =
+ var TEMPLATE_FAVORITE_ACTION =
'<a href="#" ' +
'class="action action-favorite {{#isFavorite}}permanent{{/isFavorite}}">' +
'<img class="svg" alt="{{altText}}" src="{{imgFile}}" />' +
/**
* Render the star icon with the given state
- *
+ *
* @param {boolean} state true if starred, false otherwise
* @return {Object} jQuery object
*/
*
*/
-// Check if we are a user
-OCP\User::checkLoggedIn();
+// TODO: move to handlebars
// renders the controls and table headers template
$tmpl = new OCP\Template('files', 'simplelist', '');