]> git.andy128k.dev Git - ipf-legacy-orm.git/commitdiff
admin: rework reordering, allow to reorder inlines
authorAndrey Kutejko <andy128k@gmail.com>
Tue, 7 May 2013 18:06:11 +0000 (21:06 +0300)
committerAndrey Kutejko <andy128k@gmail.com>
Tue, 7 May 2013 18:06:11 +0000 (21:06 +0300)
ipf/orm/record.php

index 3510d9dac846a6ea0ffde016333028806e09840e..ec67315ccc739cdc4a43e3c975e2a2c162ddf526 100644 (file)
@@ -1303,15 +1303,5 @@ abstract class IPF_ORM_Record extends IPF_ORM_Record_Abstract implements Countab
             return $this->_custom[$name];
         return null;
     }
-
-    public function _reorder($ids, $ord_field, $drop_id, $prev_ids, $ord=1)
-    {
-        foreach($ids as $id) {
-            $item = $this->getTable()->find($id);
-            $item[$ord_field] = $ord;
-            $item->save();
-            $ord++;
-        }
-    }
 }