CMS  Version 3.9
reorder_help_pages.inc File Reference

Go to the source code of this file.

Variables

 $help_book_id = checkNumeric($_GET["help_book_id"])
 
if(! $help_book_id$tx = new DataTransaction()
 
 try
 

Variable Documentation

◆ $help_book_id

$help_book_id = checkNumeric($_GET["help_book_id"])

Definition at line 36 of file reorder_help_pages.inc.

◆ $tx

if (! $help_book_id) $tx = new DataTransaction()

Definition at line 43 of file reorder_help_pages.inc.

◆ try

try
Initial value:
{
foreach($_GET["help_page_id"] as $id => $sort_order)
{
checkNumeric($id);
checkNumeric($sort_order);
$helpPage->joinTransaction($tx);
if ($helpPage->help_book_id != $help_book_id)
{
throw new FakoliException("Data Mismatch");
}
$helpPage->filter = new InclusionFilter("sort_order");
$helpPage->sort_order = $sort_order;
$helpPage->save();
}
$tx->commit()
FakoliException is the base exception class for all Fakoli errors.
Definition: core.inc:53
$helpPage
if(! $help_book_id) $tx

Definition at line 45 of file reorder_help_pages.inc.