method fixOrder documentation in bbn\Appui\Option

Sets the order configuration for each option of a sortable given parent

function($id, $deep = false) { if ($this->check() && $this->isSortable($id) && $its = $this->fullOptions($id)) { $cf =& $this->class_cfg; $p = 1; foreach ($its as $it) { if ($it[$this->fields['num']] !== $p) { $this->db->update( $cf['table'], [ $this->fields['num'] => $p ], [ $this->fields['id'] => $it[$this->fields['id']] ] ); $this->deleteCache($it[$this->fields['id']]); } $p++; if ($deep) { $this->fixOrder($it[$this->fields['id']]); } } } return $this; }

Sets the order configuration for each option of a sortable given parent BBN is a suite of PHP and JS libraries and VueJS components - all open-source! bbn.io, build applications, the quick way

This website uses cookies to ensure you get the best experience on our website.