Initial commit

This commit is contained in:
2020-01-27 08:56:08 +01:00
commit b7525048d6
27129 changed files with 3409855 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
<?php
/**
* This class has been generated by TheliaStudio
* For more information, see https://github.com/thelia-modules/TheliaStudio
*/
namespace Contest\Event;
use Contest\Event\Base\AnswerEvent as BaseAnswerEvent;
/**
* Class AnswerEvent
* @package Contest\Event
*/
class AnswerEvent extends BaseAnswerEvent
{
}

View File

@@ -0,0 +1,17 @@
<?php
/**
* This class has been generated by TheliaStudio
* For more information, see https://github.com/thelia-modules/TheliaStudio
*/
namespace Contest\Event;
use Contest\Event\Base\AnswerEvents as BaseAnswerEvents;
/**
* Class AnswerEvents
* @package Contest\Event
*/
class AnswerEvents extends BaseAnswerEvents
{
}

View File

@@ -0,0 +1,123 @@
<?php
/**
* This class has been generated by TheliaStudio
* For more information, see https://github.com/thelia-modules/TheliaStudio
*/
namespace Contest\Event\Base;
use Thelia\Core\Event\ActionEvent;
use Contest\Model\Answer;
/**
* Class AnswerEvent
* @package Contest\Event\Base
* @author TheliaStudio
*/
class AnswerEvent extends ActionEvent
{
protected $id;
protected $visible;
protected $correct;
protected $title;
protected $description;
protected $questionId;
protected $answer;
protected $locale;
public function getLocale()
{
return $this->locale;
}
public function setLocale($v)
{
$this->locale = $v;
return $this;
}
public function getId()
{
return $this->id;
}
public function setId($id)
{
$this->id = $id;
return $this;
}
public function getVisible()
{
return $this->visible;
}
public function setVisible($visible)
{
$this->visible = $visible;
return $this;
}
public function getCorrect()
{
return $this->correct;
}
public function setCorrect($correct)
{
$this->correct = $correct;
return $this;
}
public function getTitle()
{
return $this->title;
}
public function setTitle($title)
{
$this->title = $title;
return $this;
}
public function getDescription()
{
return $this->description;
}
public function setDescription($description)
{
$this->description = $description;
return $this;
}
public function getQuestionId()
{
return $this->questionId;
}
public function setQuestionId($questionId)
{
$this->questionId = $questionId;
return $this;
}
public function getAnswer()
{
return $this->answer;
}
public function setAnswer(Answer $answer)
{
$this->answer = $answer;
return $this;
}
}

View File

@@ -0,0 +1,22 @@
<?php
/**
* This class has been generated by TheliaStudio
* For more information, see https://github.com/thelia-modules/TheliaStudio
*/
namespace Contest\Event\Base;
use Contest\Event\Module\ContestEvents as ChildContestEvents;
/*
* Class AnswerEvents
* @package Contest\Event\Base
* @author TheliaStudio
*/
class AnswerEvents
{
const CREATE = ChildContestEvents::ANSWER_CREATE;
const UPDATE = ChildContestEvents::ANSWER_UPDATE;
const DELETE = ChildContestEvents::ANSWER_DELETE;
const TOGGLE_VISIBILITY = ChildContestEvents::ANSWER_TOGGLE_VISIBILITY;
}

View File

@@ -0,0 +1,97 @@
<?php
/**
* This class has been generated by TheliaStudio
* For more information, see https://github.com/thelia-modules/TheliaStudio
*/
namespace Contest\Event\Base;
use Thelia\Core\Event\ActionEvent;
use Contest\Model\Game;
/**
* Class GameEvent
* @package Contest\Event\Base
* @author TheliaStudio
*/
class GameEvent extends ActionEvent
{
protected $id;
protected $visible;
protected $title;
protected $description;
protected $game;
protected $locale;
public function getLocale()
{
return $this->locale;
}
public function setLocale($v)
{
$this->locale = $v;
return $this;
}
public function getId()
{
return $this->id;
}
public function setId($id)
{
$this->id = $id;
return $this;
}
public function getVisible()
{
return $this->visible;
}
public function setVisible($visible)
{
$this->visible = $visible;
return $this;
}
public function getTitle()
{
return $this->title;
}
public function setTitle($title)
{
$this->title = $title;
return $this;
}
public function getDescription()
{
return $this->description;
}
public function setDescription($description)
{
$this->description = $description;
return $this;
}
public function getGame()
{
return $this->game;
}
public function setGame(Game $game)
{
$this->game = $game;
return $this;
}
}

View File

@@ -0,0 +1,22 @@
<?php
/**
* This class has been generated by TheliaStudio
* For more information, see https://github.com/thelia-modules/TheliaStudio
*/
namespace Contest\Event\Base;
use Contest\Event\Module\ContestEvents as ChildContestEvents;
/*
* Class GameEvents
* @package Contest\Event\Base
* @author TheliaStudio
*/
class GameEvents
{
const CREATE = ChildContestEvents::GAME_CREATE;
const UPDATE = ChildContestEvents::GAME_UPDATE;
const DELETE = ChildContestEvents::GAME_DELETE;
const TOGGLE_VISIBILITY = ChildContestEvents::GAME_TOGGLE_VISIBILITY;
}

View File

@@ -0,0 +1,62 @@
<?php
/*************************************************************************************/
/* This file is part of the Thelia package. */
/* */
/* Copyright (c) OpenStudio */
/* email : dev@thelia.net */
/* web : http://www.thelia.net */
/* */
/* For the full copyright and license information, please view the LICENSE.txt */
/* file that was distributed with this source code. */
/*************************************************************************************/
/*************************************************************************************/
namespace Contest\Event\Base;
use Contest\Model\Game;
use Contest\Model\Participate;
use Thelia\Core\Event\ActionEvent;
/**
* Class MailEvent
* @package Event\Base
*/
class MailEvent extends ActionEvent
{
protected $game;
protected $participate;
/**
* @return Game
*/
public function getGame()
{
return $this->game;
}
/**
* @param Game $game
*/
public function setGame($game)
{
$this->game = $game;
return $this;
}
/**
* @return Participate
*/
public function getParticipate()
{
return $this->participate;
}
/**
* @param Participate $participate
*/
public function setParticipate($participate)
{
$this->participate = $participate;
return $this;
}
}

View File

@@ -0,0 +1,25 @@
<?php
/*************************************************************************************/
/* This file is part of the Thelia package. */
/* */
/* Copyright (c) OpenStudio */
/* email : dev@thelia.net */
/* web : http://www.thelia.net */
/* */
/* For the full copyright and license information, please view the LICENSE.txt */
/* file that was distributed with this source code. */
/*************************************************************************************/
/*************************************************************************************/
namespace Contest\Event\Base;
use Contest\Event\Module\ContestEvents as ChildContestEvents;
/**
* Class MailEvents
* @package Event\Base
*/
class MailEvents
{
const SEND = ChildContestEvents::SEND_MAIL_WIN;
}

View File

@@ -0,0 +1,97 @@
<?php
/**
* This class has been generated by TheliaStudio
* For more information, see https://github.com/thelia-modules/TheliaStudio
*/
namespace Contest\Event\Base;
use Thelia\Core\Event\ActionEvent;
use Contest\Model\Participate;
/**
* Class ParticipateEvent
* @package Contest\Event\Base
* @author TheliaStudio
*/
class ParticipateEvent extends ActionEvent
{
protected $id;
protected $email;
protected $win;
protected $gameId;
protected $customerId;
protected $participate;
public function getId()
{
return $this->id;
}
public function setId($id)
{
$this->id = $id;
return $this;
}
public function getEmail()
{
return $this->email;
}
public function setEmail($email)
{
$this->email = $email;
return $this;
}
public function getWin()
{
return $this->win;
}
public function setWin($win)
{
$this->win = $win;
return $this;
}
public function getGameId()
{
return $this->gameId;
}
public function setGameId($gameId)
{
$this->gameId = $gameId;
return $this;
}
public function getCustomerId()
{
return $this->customerId;
}
public function setCustomerId($customerId)
{
$this->customerId = $customerId;
return $this;
}
public function getParticipate()
{
return $this->participate;
}
public function setParticipate(Participate $participate)
{
$this->participate = $participate;
return $this;
}
}

View File

@@ -0,0 +1,21 @@
<?php
/**
* This class has been generated by TheliaStudio
* For more information, see https://github.com/thelia-modules/TheliaStudio
*/
namespace Contest\Event\Base;
use Contest\Event\Module\ContestEvents as ChildContestEvents;
/*
* Class ParticipateEvents
* @package Contest\Event\Base
* @author TheliaStudio
*/
class ParticipateEvents
{
const CREATE = ChildContestEvents::PARTICIPATE_CREATE;
const UPDATE = ChildContestEvents::PARTICIPATE_UPDATE;
const DELETE = ChildContestEvents::PARTICIPATE_DELETE;
}

View File

@@ -0,0 +1,110 @@
<?php
/**
* This class has been generated by TheliaStudio
* For more information, see https://github.com/thelia-modules/TheliaStudio
*/
namespace Contest\Event\Base;
use Thelia\Core\Event\ActionEvent;
use Contest\Model\Question;
/**
* Class QuestionEvent
* @package Contest\Event\Base
* @author TheliaStudio
*/
class QuestionEvent extends ActionEvent
{
protected $id;
protected $visible;
protected $title;
protected $description;
protected $gameId;
protected $question;
protected $locale;
public function getLocale()
{
return $this->locale;
}
public function setLocale($v)
{
$this->locale = $v;
return $this;
}
public function getId()
{
return $this->id;
}
public function setId($id)
{
$this->id = $id;
return $this;
}
public function getVisible()
{
return $this->visible;
}
public function setVisible($visible)
{
$this->visible = $visible;
return $this;
}
public function getTitle()
{
return $this->title;
}
public function setTitle($title)
{
$this->title = $title;
return $this;
}
public function getDescription()
{
return $this->description;
}
public function setDescription($description)
{
$this->description = $description;
return $this;
}
public function getGameId()
{
return $this->gameId;
}
public function setGameId($gameId)
{
$this->gameId = $gameId;
return $this;
}
public function getQuestion()
{
return $this->question;
}
public function setQuestion(Question $question)
{
$this->question = $question;
return $this;
}
}

View File

@@ -0,0 +1,22 @@
<?php
/**
* This class has been generated by TheliaStudio
* For more information, see https://github.com/thelia-modules/TheliaStudio
*/
namespace Contest\Event\Base;
use Contest\Event\Module\ContestEvents as ChildContestEvents;
/*
* Class QuestionEvents
* @package Contest\Event\Base
* @author TheliaStudio
*/
class QuestionEvents
{
const CREATE = ChildContestEvents::QUESTION_CREATE;
const UPDATE = ChildContestEvents::QUESTION_UPDATE;
const DELETE = ChildContestEvents::QUESTION_DELETE;
const TOGGLE_VISIBILITY = ChildContestEvents::QUESTION_TOGGLE_VISIBILITY;
}

View File

@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="utf-8" ?>
<dwsync>
<file name="AnswerEvent.php" server="51.254.220.106//web/" local="131351944800000000" remote="131351944800000000" />
<file name="AnswerEvents.php" server="51.254.220.106//web/" local="131351944800000000" remote="131351944800000000" />
<file name="GameEvent.php" server="51.254.220.106//web/" local="131351944800000000" remote="131351944800000000" />
<file name="GameEvents.php" server="51.254.220.106//web/" local="131351944800000000" remote="131351944800000000" />
<file name="MailEvent.php" server="51.254.220.106//web/" local="131351944800000000" remote="131351944800000000" />
<file name="MailEvents.php" server="51.254.220.106//web/" local="131351944800000000" remote="131351944800000000" />
<file name="ParticipateEvent.php" server="51.254.220.106//web/" local="131351944800000000" remote="131351944800000000" />
<file name="ParticipateEvents.php" server="51.254.220.106//web/" local="131351944800000000" remote="131351944800000000" />
<file name="QuestionEvent.php" server="51.254.220.106//web/" local="131351944800000000" remote="131351944800000000" />
<file name="QuestionEvents.php" server="51.254.220.106//web/" local="131351944800000000" remote="131351944800000000" />
</dwsync>

View File

@@ -0,0 +1,17 @@
<?php
/**
* This class has been generated by TheliaStudio
* For more information, see https://github.com/thelia-modules/TheliaStudio
*/
namespace Contest\Event;
use Contest\Event\Base\GameEvent as BaseGameEvent;
/**
* Class GameEvent
* @package Contest\Event
*/
class GameEvent extends BaseGameEvent
{
}

View File

@@ -0,0 +1,17 @@
<?php
/**
* This class has been generated by TheliaStudio
* For more information, see https://github.com/thelia-modules/TheliaStudio
*/
namespace Contest\Event;
use Contest\Event\Base\GameEvents as BaseGameEvents;
/**
* Class GameEvents
* @package Contest\Event
*/
class GameEvents extends BaseGameEvents
{
}

View File

@@ -0,0 +1,23 @@
<?php
/*************************************************************************************/
/* This file is part of the Thelia package. */
/* */
/* Copyright (c) OpenStudio */
/* email : dev@thelia.net */
/* web : http://www.thelia.net */
/* */
/* For the full copyright and license information, please view the LICENSE.txt */
/* file that was distributed with this source code. */
/*************************************************************************************/
/*************************************************************************************/
namespace Contest\Event;
use Contest\Event\Base\MailEvent as BaseMailEvent;
/**
* Class MailEvent
* @package Event
*/
class MailEvent extends BaseMailEvent
{
}

View File

@@ -0,0 +1,25 @@
<?php
/*************************************************************************************/
/* This file is part of the Thelia package. */
/* */
/* Copyright (c) OpenStudio */
/* email : dev@thelia.net */
/* web : http://www.thelia.net */
/* */
/* For the full copyright and license information, please view the LICENSE.txt */
/* file that was distributed with this source code. */
/*************************************************************************************/
/*************************************************************************************/
namespace Contest\Event;
use Contest\Event\Base\MailEvents as BaseMailEvents;
use Contest\Event\Module\ContestEvents;
/**
* Class MailEvents
* @package Event
*/
class MailEvents extends BaseMailEvents
{
const SEND_FRIEND = ContestEvents::SEND_MAIL_WIN;
}

View File

@@ -0,0 +1,60 @@
<?php
/*************************************************************************************/
/* This file is part of the Thelia package. */
/* */
/* Copyright (c) OpenStudio */
/* email : dev@thelia.net */
/* web : http://www.thelia.net */
/* */
/* For the full copyright and license information, please view the LICENSE.txt */
/* file that was distributed with this source code. */
/*************************************************************************************/
/*************************************************************************************/
namespace Contest\Event;
use Contest\Event\Base\MailEvent;
/**
* Class MailFriendEvent
* @package Contest\Event
*/
class MailFriendEvent extends MailEvent
{
protected $friends;
/**
* @return mixed
*/
public function getFriends()
{
return $this->friends;
}
/**
* @param mixed $friends
*/
public function setFriends($friends)
{
if (is_array($friends)) {
$this->friends = $friends;
} else {
if (!in_array($friends, $this->friends)) {
$this->friends[] = $friends;
}
}
return $this->friends;
}
public function setFriend($friend)
{
if (!in_array($friend, $this->friends)) {
$this->friends[] = $friend;
}
return $this->friends;
}
}

View File

@@ -0,0 +1,32 @@
<?php
/**
* This class has been generated by TheliaStudio
* For more information, see https://github.com/thelia-modules/TheliaStudio
*/
namespace Contest\Event\Module\Base;
/**
* Class ContestEvents
* @package Contest\Event\Module\Base
* @author TheliaStudio
*/
class ContestEvents
{
const GAME_CREATE = "action.game.create";
const GAME_UPDATE = "action.game.update";
const GAME_DELETE = "action.game.delete";
const GAME_TOGGLE_VISIBILITY = "action.game.toggle_visilibity";
const QUESTION_CREATE = "action.question.create";
const QUESTION_UPDATE = "action.question.update";
const QUESTION_DELETE = "action.question.delete";
const QUESTION_TOGGLE_VISIBILITY = "action.question.toggle_visilibity";
const ANSWER_CREATE = "action.answer.create";
const ANSWER_UPDATE = "action.answer.update";
const ANSWER_DELETE = "action.answer.delete";
const ANSWER_TOGGLE_VISIBILITY = "action.answer.toggle_visilibity";
const PARTICIPATE_CREATE = "action.participate.create";
const PARTICIPATE_UPDATE = "action.participate.update";
const PARTICIPATE_DELETE = "action.participate.delete";
const SEND_MAIL_WIN = "action.participate.mail.win.send";
}

View File

@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8" ?>
<dwsync>
<file name="ContestEvents.php" server="51.254.220.106//web/" local="131351944800000000" remote="131351944800000000" />
</dwsync>

View File

@@ -0,0 +1,19 @@
<?php
/**
* This class has been generated by TheliaStudio
* For more information, see https://github.com/thelia-modules/TheliaStudio
*/
namespace Contest\Event\Module;
use Contest\Event\Module\Base\ContestEvents as BaseContestEvents;
/**
* Class ContestEvents
* @package Contest\Event\Module
* @author TheliaStudio
*/
class ContestEvents extends BaseContestEvents
{
const SEND_MAIL_FRIEND = "action.participate.mail.friend.send";
}

View File

@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8" ?>
<dwsync>
<file name="ContestEvents.php" server="51.254.220.106//web/" local="131351944800000000" remote="131351944800000000" />
</dwsync>

View File

@@ -0,0 +1,17 @@
<?php
/**
* This class has been generated by TheliaStudio
* For more information, see https://github.com/thelia-modules/TheliaStudio
*/
namespace Contest\Event;
use Contest\Event\Base\ParticipateEvent as BaseParticipateEvent;
/**
* Class ParticipateEvent
* @package Contest\Event
*/
class ParticipateEvent extends BaseParticipateEvent
{
}

View File

@@ -0,0 +1,17 @@
<?php
/**
* This class has been generated by TheliaStudio
* For more information, see https://github.com/thelia-modules/TheliaStudio
*/
namespace Contest\Event;
use Contest\Event\Base\ParticipateEvents as BaseParticipateEvents;
/**
* Class ParticipateEvents
* @package Contest\Event
*/
class ParticipateEvents extends BaseParticipateEvents
{
}

View File

@@ -0,0 +1,17 @@
<?php
/**
* This class has been generated by TheliaStudio
* For more information, see https://github.com/thelia-modules/TheliaStudio
*/
namespace Contest\Event;
use Contest\Event\Base\QuestionEvent as BaseQuestionEvent;
/**
* Class QuestionEvent
* @package Contest\Event
*/
class QuestionEvent extends BaseQuestionEvent
{
}

View File

@@ -0,0 +1,17 @@
<?php
/**
* This class has been generated by TheliaStudio
* For more information, see https://github.com/thelia-modules/TheliaStudio
*/
namespace Contest\Event;
use Contest\Event\Base\QuestionEvents as BaseQuestionEvents;
/**
* Class QuestionEvents
* @package Contest\Event
*/
class QuestionEvents extends BaseQuestionEvents
{
}

View File

@@ -0,0 +1,14 @@
<?xml version="1.0" encoding="utf-8" ?>
<dwsync>
<file name="AnswerEvent.php" server="51.254.220.106//web/" local="131351944800000000" remote="131351944800000000" />
<file name="AnswerEvents.php" server="51.254.220.106//web/" local="131351944800000000" remote="131351944800000000" />
<file name="GameEvent.php" server="51.254.220.106//web/" local="131351944800000000" remote="131351944800000000" />
<file name="GameEvents.php" server="51.254.220.106//web/" local="131351944800000000" remote="131351944800000000" />
<file name="MailEvent.php" server="51.254.220.106//web/" local="131351944800000000" remote="131351944800000000" />
<file name="MailEvents.php" server="51.254.220.106//web/" local="131351944800000000" remote="131351944800000000" />
<file name="MailFriendEvent.php" server="51.254.220.106//web/" local="131351944800000000" remote="131351944800000000" />
<file name="ParticipateEvent.php" server="51.254.220.106//web/" local="131351944800000000" remote="131351944800000000" />
<file name="ParticipateEvents.php" server="51.254.220.106//web/" local="131351944800000000" remote="131351944800000000" />
<file name="QuestionEvent.php" server="51.254.220.106//web/" local="131351944800000000" remote="131351944800000000" />
<file name="QuestionEvents.php" server="51.254.220.106//web/" local="131351944800000000" remote="131351944800000000" />
</dwsync>