CMS  Version 3.9
reorder_scroll_parts.inc
Go to the documentation of this file.
1 <?php
2 Fakoli::using("scroll");
3 
4 Fakoli::assertRole("admin,editor");
5 
6 try
7 {
8  updateSortOrder('ScrollPart');
9  Fakoli::end("OK");
10 }
11 catch(Exception $e)
12 {
13  Fakoli::end($e->getMessage());
14 }
15 
static using()
Import the datamodels, views and manifest for the specified component(s).
Definition: core.inc:116
static end($message="")
Use this method to terminate execution of a script instead of using the php keywords exit() or die().
Definition: core.inc:1149
static assertRole($role, $redirect="", $message="")
Assert that the user has one of the specified roles.
Definition: core.inc:297