public function unserialize($queue)
    {
        foreach (unserialize($queue) as $item) {
            $this->insert($item['data'], $item['priority']);
        }
    }
public function unserialize($queue)
    {
        foreach (unserialize($queue) as $item) {
            $this->insert($item['data'], $item['priority']);
        }
    }
public function unserialize ( $ queue ) { foreach ( unserialize ( $ queue ) as $ item ) { $ this -> insert ( $ item [ 'data' ] , $ item [ 'priority' ] ) ; } }
Unserializes the queue.

@param string $queue The serialized queue data
@return void
Unserializes the queue .