/** * * Deletes a cache entry. * * @param string $key The entry ID. * * @return void * */ public function delete($key) { if (!$this->_active) { return; } // modify the key to add the prefix $key = $this->entry($key); // delete entry and expiry $this->_entries->delete($key); $this->_expires->delete($key); }
/** * * Retrieve the status text from the session and then deletes it, making it * act like a read-once session flash value. * * @return string The status text. * */ public function getStatusText() { $val = $this->_session->get('status_text'); $this->_session->delete('status_text'); return $val; }