/** * This method will insert all URLs that exists in this object into the * database by calling the StaticPagesQueue * * @return type */ public function insertIntoDB() { $arraycopy = $this->getArrayCopy(); usort($arraycopy, array($this, 'sortOnPriority')); foreach ($arraycopy as $array) { StaticPagesQueue::add_to_queue($array[0], $array[1]); } StaticPagesQueue::push_urls_to_db(); $this->exchangeArray(array()); }