/**
  * Constructor
  */
 function ChapterCache()
 {
     global $Settings;
     if ($Settings->get('chapter_ordering') == 'manual') {
         // Manual order
         $select_temp_order = 'IF( cat_order IS NULL, 999999999, cat_order ) AS temp_order';
         $order_by = 'temp_order';
     } else {
         // Alphabetic order
         $select_temp_order = '';
         $order_by = 'cat_name';
     }
     parent::GenericCategoryCache('Chapter', false, 'T_categories', 'cat_', 'cat_ID', 'cat_name', 'blog_ID', $order_by, NULL, '', $select_temp_order);
 }
Exemple #2
0
 /**
  * Constructor
  */
 function ChapterCache()
 {
     parent::GenericCategoryCache('Chapter', false, 'T_categories', 'cat_', 'cat_ID', 'cat_name', 'blog_ID');
 }