Example #1
0
 function add($data)
 {
     global $cache;
     $re = parent::add($data);
     $cache->clear_uri('#admin/category');
     return $re;
 }
Example #2
0
 function add($data)
 {
     global $cache;
     $item_id = 0;
     $data['status'] = $_POST['status'];
     $re = parent::add($data);
     if ($_POST['status'] == 2) {
         global $db;
         $name = $_POST['name'];
         $item_id = $db->query("insert into lz_item(name,category_id,status) values('" . $name . "',{$re},3)");
         $item_id = $db->insert_id();
         $db->query("update lz_category set item_id={$item_id} where category_id={$re}");
     }
     $cache->clear_uri('#admin/category');
     return $re;
 }
Example #3
0
 function add($data = array())
 {
     check_allowed_category($data['category_id'], LZ_RESPONSE == 'text');
     return parent::add($data);
 }
Example #4
0
 function add($data = array())
 {
     return parent::add($data);
 }