public static function people_update_orders()
 {
     check_ajax_referer('people_update_orders', 'security');
     $updateRecordsArray = $_REQUEST['recordsArray'];
     $i = 0;
     foreach ($updateRecordsArray as $recordIDValue) {
         $i++;
         People_Contact_Profile_Data::update_order($recordIDValue, $i);
     }
     die;
 }
Esempio n. 2
0
 public static function update_items_order($item_orders = array())
 {
     if (is_array($item_orders) && count($item_orders) > 0) {
         foreach ($item_orders as $profile_id => $c_order) {
             People_Contact_Profile_Data::update_order($profile_id, $c_order);
         }
     }
 }