|
|
@ -219,19 +219,14 @@ class Tab |
|
|
|
// Reorder entities |
|
|
|
// Reorder entities |
|
|
|
$this->_page = $_page; |
|
|
|
$this->_page = $_page; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ksort( |
|
|
|
|
|
|
|
$this->_page |
|
|
|
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
|
|
// Update session |
|
|
|
// Update session |
|
|
|
if ($session) |
|
|
|
if ($session) |
|
|
|
{ |
|
|
|
{ |
|
|
|
$this->container->browser->database->cleanSession(); |
|
|
|
$this->updateSession(); |
|
|
|
|
|
|
|
|
|
|
|
ksort($_page); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
foreach ($_page as $page) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
$this->container->browser->database->addSession( |
|
|
|
|
|
|
|
$page->navbar->request->getValue() |
|
|
|
|
|
|
|
); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -240,4 +235,16 @@ class Tab |
|
|
|
'Reorder by $page_num value not implemented' |
|
|
|
'Reorder by $page_num value not implemented' |
|
|
|
); |
|
|
|
); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public function updateSession(): void |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
$this->container->browser->database->cleanSession(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
foreach ($this->_page as $page) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
$this->container->browser->database->addSession( |
|
|
|
|
|
|
|
$page->navbar->request->getValue() |
|
|
|
|
|
|
|
); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |