CMS  Version 3.9
reorder_articles.inc File Reference

Go to the source code of this file.

Variables

 $tx = new DataTransaction()
 
 try
 

Variable Documentation

◆ $tx

$tx = new DataTransaction()

Definition at line 38 of file reorder_articles.inc.

◆ try

try
Initial value:
{
foreach($_GET["article_id"] as $id => $sort_order)
{
checkNumeric($id);
checkNumeric($sort_order);
$article = new Article();
$article->joinTransaction($tx);
$article->filter = new InclusionFilter("article_id", "sort_order");
$article->load($id);
$article->sort_order = $sort_order;
$article->save();
}
$tx->commit()
$article
Defines the Article class.
Definition: article.inc:45

Definition at line 40 of file reorder_articles.inc.