Skip to content
Snippets Groups Projects
Commit 23ec39ad authored by Olivier PEREZ's avatar Olivier PEREZ
Browse files

Create PurgeService

parent 53048e84
No related branches found
Tags 1.1.8-beta.1
No related merge requests found
<?php
namespace Framadate\Services;
use Framadate\FramaDB;
/**
* This service helps to purge old poll.
*
* @package Framadate\Services
*/
class PurgeService {
private $connect;
function __construct(FramaDB $connect) {
$this->connect = $connect;
}
/**
* This methode purges all old polls (the ones with end_date in past).
*
* @return bool true is action succeeded
*/
function purgeOldPolls() {
// TODO Implements
return false;
}
/**
* This methode delete all data about a poll.
*
* @param $poll_id int The ID of the poll
* @return bool true is action succeeded
*/
function purgePollById($poll_id) {
// TODO Implements
return false;
}
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment