commit 2336a91742c9271fd20fe5a3e5233804414267eb Author: Dennis Eichhorn Date: Sun Nov 29 21:57:18 2015 +0100 Init diff --git a/Admin/Install/Navigation.php b/Admin/Install/Navigation.php new file mode 100644 index 0000000..ed080bc --- /dev/null +++ b/Admin/Install/Navigation.php @@ -0,0 +1,38 @@ + + * @author Dennis Eichhorn + * @copyright 2013 Dennis Eichhorn + * @license OMS License 1.0 + * @version 1.0.0 + * @link http://orange-management.com + */ +namespace Modules\Calendar\Admin\Install; + +/** + * Navigation class. + * + * @category Modules + * @package Modules\Admin + * @author OMS Development Team + * @author Dennis Eichhorn + * @license OMS License 1.0 + * @link http://orange-management.com + * @since 1.0.0 + */ +class Navigation +{ + public static function install($dbPool) + { + $navData = json_decode(file_get_contents(__DIR__ . '/nav.install.json'), true); + + $class = '\\Modules\\Navigation\\Admin\\Installer'; + $class::installExternal($dbPool, $navData); + } +} diff --git a/Admin/Install/nav.install.json b/Admin/Install/nav.install.json new file mode 100644 index 0000000..0b826b5 --- /dev/null +++ b/Admin/Install/nav.install.json @@ -0,0 +1,17 @@ +[ + { + "id": 1000901001, + "pid": "754a08ddf8bcb1cf22f310f09206dd783d42f7dd", + "type": 2, + "subtype": 1, + "name": "Calendar", + "uri": "/{/lang}/backend/calendar/dashboard", + "target": "self", + "icon": null, + "order": 30, + "from": "Calendar", + "permission": null, + "parent": 1000201001, + "children": [] + } +] diff --git a/Admin/Installer.php b/Admin/Installer.php new file mode 100644 index 0000000..76d4b01 --- /dev/null +++ b/Admin/Installer.php @@ -0,0 +1,132 @@ + + * @author Dennis Eichhorn + * @copyright 2013 Dennis Eichhorn + * @license OMS License 1.0 + * @version 1.0.0 + * @link http://orange-management.com + */ +namespace Modules\Calendar\Admin; + +use phpOMS\DataStorage\Database\DatabaseType; +use phpOMS\DataStorage\Database\Pool; +use phpOMS\Module\InstallerAbstract; + +/** + * Calendar install class. + * + * @category Modules + * @package Modules\Calendar + * @author OMS Development Team + * @author Dennis Eichhorn + * @license OMS License 1.0 + * @link http://orange-management.com + * @since 1.0.0 + */ +class Installer extends InstallerAbstract +{ + + /** + * {@inheritdoc} + */ + public static function install(Pool $dbPool, array $info) + { + parent::install($dbPool, $info); + + switch ($dbPool->get('core')->getType()) { + case DatabaseType::MYSQL: + $dbPool->get('core')->con->prepare( + 'CREATE TABLE if NOT EXISTS `' . $dbPool->get('core')->prefix . 'calendar` ( + `calendar_id` int(11) NOT NULL AUTO_INCREMENT, + `calendar_name` varchar(25) NOT NULL, + `calendar_password` varchar(64) NOT NULL, + `calendar_description` varchar(255) NOT NULL, + `calendar_creator` int(11) NOT NULL, + `calendar_created` datetime NOT NULL, + PRIMARY KEY (`calendar_id`), + KEY `calendar_creator` (`calendar_creator`) + )ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1;' + )->execute(); + + $dbPool->get('core')->con->prepare( + 'ALTER TABLE `' . $dbPool->get('core')->prefix . 'calendar` + ADD CONSTRAINT `' . $dbPool->get('core')->prefix . 'calendar_ibfk_1` FOREIGN KEY (`calendar_creator`) REFERENCES `' . $dbPool->get('core')->prefix . 'account` (`account_id`);' + )->execute(); + + $dbPool->get('core')->con->prepare( + 'CREATE TABLE if NOT EXISTS `' . $dbPool->get('core')->prefix . 'calendar_permission` ( + `calendar_permission_id` int(11) NOT NULL AUTO_INCREMENT, + `calendar_permission_type` tinyint(1) NOT NULL, + `calendar_permission_ref` int(11) NOT NULL, + `calendar_permission_calendar` int(11) NOT NULL, + `calendar_permission_permission` tinyint(2) NOT NULL, + PRIMARY KEY (`calendar_permission_id`), + KEY `calendar_permission_calendar` (`calendar_permission_calendar`) + )ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1;' + )->execute(); + + $dbPool->get('core')->con->prepare( + 'ALTER TABLE `' . $dbPool->get('core')->prefix . 'calendar_permission` + ADD CONSTRAINT `' . $dbPool->get('core')->prefix . 'calendar_permission_ibfk_2` FOREIGN KEY (`calendar_permission_calendar`) REFERENCES `' . $dbPool->get('core')->prefix . 'calendar` (`calendar_id`);' + )->execute(); + + $dbPool->get('core')->con->prepare( + 'CREATE TABLE if NOT EXISTS `' . $dbPool->get('core')->prefix . 'calendar_event` ( + `calendar_event_id` int(11) NOT NULL AUTO_INCREMENT, + `calendar_event_name` varchar(25) NOT NULL, + `calendar_event_description` varchar(255) NOT NULL, + `calendar_event_start` datetime NOT NULL, + `calendar_event_end` datetime NOT NULL, + `calendar_event_status` tinyint(1) NOT NULL, + `calendar_event_repeat` tinyint(1) NOT NULL, + `calendar_event_rep_interval` tinyint(3) NOT NULL, + `calendar_event_rep_monday` tinyint(1) NOT NULL, + `calendar_event_rep_tuesday` tinyint(1) NOT NULL, + `calendar_event_rep_wednesday` tinyint(1) NOT NULL, + `calendar_event_rep_thursday` tinyint(1) NOT NULL, + `calendar_event_rep_friday` tinyint(1) NOT NULL, + `calendar_event_rep_saturday` tinyint(1) NOT NULL, + `calendar_event_rep_sunday` tinyint(1) NOT NULL, + `calendar_event_creator` int(11) NOT NULL, + `calendar_event_created` datetime NOT NULL, + `calendar_event_calendar` int(11) NOT NULL, + PRIMARY KEY (`calendar_event_id`), + KEY `calendar_event_creator` (`calendar_event_creator`), + KEY `calendar_event_calendar` (`calendar_event_calendar`) + )ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1;' + )->execute(); + + $dbPool->get('core')->con->prepare( + 'ALTER TABLE `' . $dbPool->get('core')->prefix . 'calendar_event` + ADD CONSTRAINT `' . $dbPool->get('core')->prefix . 'calendar_event_ibfk_1` FOREIGN KEY (`calendar_event_creator`) REFERENCES `' . $dbPool->get('core')->prefix . 'account` (`account_id`), + ADD CONSTRAINT `' . $dbPool->get('core')->prefix . 'calendar_event_ibfk_2` FOREIGN KEY (`calendar_event_calendar`) REFERENCES `' . $dbPool->get('core')->prefix . 'calendar` (`calendar_id`);' + )->execute(); + + $dbPool->get('core')->con->prepare( + 'CREATE TABLE if NOT EXISTS `' . $dbPool->get('core')->prefix . 'calendar_event_participant` ( + `calendar_event_participant_id` int(11) NOT NULL AUTO_INCREMENT, + `calendar_event_participant_event` int(11) NOT NULL, + `calendar_event_participant_person` int(11) NOT NULL, + `calendar_event_participant_status` tinyint(1) NOT NULL, + PRIMARY KEY (`calendar_event_participant_id`), + KEY `calendar_event_participant_event` (`calendar_event_participant_event`), + KEY `calendar_event_participant_person` (`calendar_event_participant_person`) + )ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1;' + )->execute(); + + $dbPool->get('core')->con->prepare( + 'ALTER TABLE `' . $dbPool->get('core')->prefix . 'calendar_event_participant` + ADD CONSTRAINT `' . $dbPool->get('core')->prefix . 'calendar_event_participant_ibfk_1` FOREIGN KEY (`calendar_event_participant_event`) REFERENCES `' . $dbPool->get('core')->prefix . 'calendar_event` (`calendar_event_id`), + ADD CONSTRAINT `' . $dbPool->get('core')->prefix . 'calendar_event_participant_ibfk_2` FOREIGN KEY (`calendar_event_participant_person`) REFERENCES `' . $dbPool->get('core')->prefix . 'account` (`account_id`);' + )->execute(); + break; + } + } +} diff --git a/Controller.php b/Controller.php new file mode 100644 index 0000000..450d258 --- /dev/null +++ b/Controller.php @@ -0,0 +1,129 @@ + + * @author Dennis Eichhorn + * @copyright 2013 Dennis Eichhorn + * @license OMS License 1.0 + * @version 1.0.0 + * @link http://orange-management.com + */ +namespace Modules\Calendar; + +use Modules\Navigation\Models\Navigation; +use Modules\Navigation\Views\NavigationView; +use phpOMS\Contract\RenderableInterface; +use phpOMS\Message\RequestAbstract; +use phpOMS\Message\RequestDestination; +use phpOMS\Message\ResponseAbstract; +use phpOMS\Module\ModuleAbstract; +use phpOMS\Module\WebInterface; +use phpOMS\Views\View; +use phpOMS\Views\ViewLayout; + +/** + * Calendar controller class. + * + * @category Modules + * @package Modules\Calendar + * @author OMS Development Team + * @author Dennis Eichhorn + * @license OMS License 1.0 + * @link http://orange-management.com + * @since 1.0.0 + */ +class Controller extends ModuleAbstract implements WebInterface +{ + + /** + * Module name. + * + * @var \string + * @since 1.0.0 + */ + protected static $module = 'Calendar'; + + /** + * Localization files. + * + * @var \string + * @since 1.0.0 + */ + protected static $localization = [ + RequestDestination::BACKEND => ['backend'], + ]; + + /** + * Providing. + * + * @var \string + * @since 1.0.0 + */ + protected static $providing = [ + 'Content', + ]; + + /** + * Dependencies. + * + * @var \string + * @since 1.0.0 + */ + protected static $dependencies = []; + + /** + * Routing elements. + * + * @var array + * @since 1.0.0 + */ + protected static $routes = [ + '^.*/backend/calendar/dashboard.*$' => [['dest' => '\Modules\Calendar\Controller:viewCalendarDashboard', 'method' => 'GET', 'type' => ViewLayout::MAIN],], + ]; + + /** + * @param RequestAbstract $request Request + * @param ResponseAbstract $response Response + * @param mixed $data Generic data + * + * @return RenderableInterface + * + * @since 1.0.0 + * @author Dennis Eichhorn + */ + public function viewCalendarDashboard(RequestAbstract $request, ResponseAbstract $response, $data = null) : RenderableInterface + { + $view = new View($this->app, $request, $response); + $view->setTemplate('/Modules/Calendar/Theme/backend/calendar-dashboard'); + $view->addData('nav', $this->createNavigation(1001201001, $request, $response)); + + return $view; + } + + /** + * @param int $pageId Page/parent Id for navigation + * @param RequestAbstract $request Request + * @param ResponseAbstract $response Response + * + * @return RenderableInterface + * + * @since 1.0.0 + * @author Dennis Eichhorn + */ + private function createNavigation(\int $pageId, RequestAbstract $request, ResponseAbstract $response) + { + $nav = Navigation::getInstance($request, $this->app->dbPool); + $navView = new NavigationView($this->app, $request, $response); + $navView->setTemplate('/Modules/Navigation/Theme/backend/mid'); + $navView->setNav($nav->getNav()); + $navView->setLanguage($request->getL11n()->language); + $navView->setParent($pageId); + + return $navView; + } +} diff --git a/Models/AcceptStatus.php b/Models/AcceptStatus.php new file mode 100644 index 0000000..83be751 --- /dev/null +++ b/Models/AcceptStatus.php @@ -0,0 +1,36 @@ + + * @author Dennis Eichhorn + * @copyright 2013 Dennis Eichhorn + * @license OMS License 1.0 + * @version 1.0.0 + * @link http://orange-management.com + */ +namespace Modules\Calendar\Models; + +use phpOMS\Datatypes\Enum; + +/** + * Accept status enum. + * + * @category Calendar + * @package Modules + * @author OMS Development Team + * @author Dennis Eichhorn + * @license OMS License 1.0 + * @link http://orange-management.com + * @since 1.0.0 + */ +abstract class AcceptStatus extends Enum +{ + const ACCEPTED = 0; + + const DENIED = 1; +} diff --git a/Models/AvailableStatus.php b/Models/AvailableStatus.php new file mode 100644 index 0000000..ea57588 --- /dev/null +++ b/Models/AvailableStatus.php @@ -0,0 +1,38 @@ + + * @author Dennis Eichhorn + * @copyright 2013 Dennis Eichhorn + * @license OMS License 1.0 + * @version 1.0.0 + * @link http://orange-management.com + */ +namespace Modules\Calendar\Models; + +use phpOMS\Datatypes\Enum; + +/** + * Available status enum. + * + * @category Calendar + * @package Modules + * @author OMS Development Team + * @author Dennis Eichhorn + * @license OMS License 1.0 + * @link http://orange-management.com + * @since 1.0.0 + */ +abstract class AvailableStatus extends Enum +{ + const AVAILABLE = 0; + + const BUSY = 1; + + const AWAY = 2; +} diff --git a/Models/Calendar.php b/Models/Calendar.php new file mode 100644 index 0000000..e671a5a --- /dev/null +++ b/Models/Calendar.php @@ -0,0 +1,203 @@ + + * @author Dennis Eichhorn + * @copyright 2013 Dennis Eichhorn + * @license OMS License 1.0 + * @version 1.0.0 + * @link http://orange-management.com + */ +namespace Modules\Calendar\Models; + +use phpOMS\Pattern\Multition; + +/** + * Calendar class. + * + * @category Calendar + * @package Framework + * @author OMS Development Team + * @author Dennis Eichhorn + * @license OMS License 1.0 + * @link http://orange-management.com + * @since 1.0.0 + */ +class Calendar implements Multition +{ + + /** + * Calendar ID. + * + * @var \int + * @since 1.0.0 + */ + private $id = null; + + /** + * Name. + * + * @var \string + * @since 1.0.0 + */ + private $name = ''; + + /** + * Description. + * + * @var \string + * @since 1.0.0 + */ + private $description = ''; + + /** + * Created. + * + * @var \Datetime + * @since 1.0.0 + */ + private $created = null; + + /** + * Creator. + * + * @var \int + * @since 1.0.0 + */ + private $creator = null; + + /** + * Events. + * + * @var \Modules\Calendar\Models\Event[] + * @since 1.0.0 + */ + private $events = []; + + private static $instances = []; + + public function __construct($id) + { + } + + public function getInstance($id) + { + if (!isset(self::$instances[$id])) { + self::$instances[$id] = new self($id); + } + + return self::$instances[$id]; + } + + /** + * {@inheritdoc} + */ + public function init($id) + { + } + + /** + * {@inheritdoc} + */ + public function __clone() + { + } + + public function getId() + { + return $this->id; + } + + public function getName() + { + return $this->name; + } + + public function setName($name) + { + $this->name = $name; + } + + public function getDescription() + { + return $this->description; + } + + public function setDescription($desc) + { + $this->description = $desc; + } + + public function getEvents() + { + return $this->events; + } + + public function removeEvent() + { + } + + public function getEvent($id) + { + } + + public function getCreated() + { + return $this->created; + } + + public function setCreated($created) + { + $this->created = $created; + } + + public function getCreator() + { + return $this->creator; + } + + public function setCreator($creator) + { + $this->creator = $creator; + } + + /** + * {@inheritdoc} + */ + public function delete() + { + } + + /** + * {@inheritdoc} + */ + public function create() + { + } + + /** + * {@inheritdoc} + */ + public function update() + { + } + + /** + * {@inheritdoc} + */ + public function serialize() + { + } + + /** + * {@inheritdoc} + */ + public function unserialize($data) + { + } +} diff --git a/Models/Event.php b/Models/Event.php new file mode 100644 index 0000000..efd8c4b --- /dev/null +++ b/Models/Event.php @@ -0,0 +1,230 @@ + + * @author Dennis Eichhorn + * @copyright 2013 Dennis Eichhorn + * @license OMS License 1.0 + * @version 1.0.0 + * @link http://orange-management.com + */ +namespace Modules\Calendar\Models; + +use phpOMS\Pattern\Multition; + +/** + * Calendar class. + * + * @category Calendar + * @package Framework + * @author OMS Development Team + * @author Dennis Eichhorn + * @license OMS License 1.0 + * @link http://orange-management.com + * @since 1.0.0 + */ +class Event implements Multition +{ + + /** + * Calendar ID. + * + * @var \int + * @since 1.0.0 + */ + private $id = null; + + /** + * Name. + * + * @var \string + * @since 1.0.0 + */ + private $name = ''; + + /** + * Description. + * + * @var \string + * @since 1.0.0 + */ + private $description = ''; + + /** + * Created. + * + * @var \Datetime + * @since 1.0.0 + */ + private $created = null; + + /** + * Creator. + * + * @var \int + * @since 1.0.0 + */ + private $creator = null; + + /** + * People. + * + * @var array + * @since 1.0.0 + */ + private $location = null; + + /** + * People. + * + * @var array + * @since 1.0.0 + */ + private $people = []; + + /** + * Start. + * + * @var \Datetime + * @since 1.0.0 + */ + private $start = null; + + /** + * Start. + * + * @var \Datetime + * @since 1.0.0 + */ + private $end = null; + + /** + * Timezone. + * + * @var \Datetime + * @since 1.0.0 + */ + private $timezone = null; + + /** + * Occurence. + * + * @var \Modules\Calendar\Models\OccurrenceType + * @since 1.0.0 + */ + private $occurence = null; + + private static $instances = []; + + public function __construct($id) + { + } + + public function getInstance($id) + { + if (!isset(self::$instances[$id])) { + self::$instances[$id] = new self($id); + } + + return self::$instances[$id]; + } + + /** + * {@inheritdoc} + */ + public function init($id) + { + } + + /** + * {@inheritdoc} + */ + public function __clone() + { + } + + public function getId() + { + return $this->id; + } + + public function getName() + { + return $this->name; + } + + public function setName($name) + { + $this->name = $name; + } + + public function getDescription() + { + return $this->description; + } + + public function setDescription($desc) + { + $this->description = $desc; + } + + public function getCreated() + { + return $this->created; + } + + public function setCreated($created) + { + $this->created = $created; + } + + public function getCreator() + { + return $this->creator; + } + + public function setCreator($creator) + { + $this->creator = $creator; + } + + /** + * {@inheritdoc} + */ + public function delete() + { + } + + /** + * {@inheritdoc} + */ + public function create() + { + } + + /** + * {@inheritdoc} + */ + public function update() + { + } + + /** + * {@inheritdoc} + */ + public function serialize() + { + } + + /** + * {@inheritdoc} + */ + public function unserialize($data) + { + } +} diff --git a/Models/OccurrenceType.php b/Models/OccurrenceType.php new file mode 100644 index 0000000..2a3671c --- /dev/null +++ b/Models/OccurrenceType.php @@ -0,0 +1,44 @@ + + * @author Dennis Eichhorn + * @copyright 2013 Dennis Eichhorn + * @license OMS License 1.0 + * @version 1.0.0 + * @link http://orange-management.com + */ +namespace Modules\Calendar\Models; + +use phpOMS\Datatypes\Enum; + +/** + * Occurrence type enum. + * + * @category OccurrenceType + * @package Framework + * @author OMS Development Team + * @author Dennis Eichhorn + * @license OMS License 1.0 + * @link http://orange-management.com + * @since 1.0.0 + */ +abstract class OccurrenceType extends Enum +{ + const SINGLE = 0; + + const DAILY = 1; + + const WEEKLY = 2; + + const MONTHLY = 3; + + const QUARTERLY = 4; + + const YEARLY = 5; +} diff --git a/README.md b/README.md new file mode 100644 index 0000000..cad79ea --- /dev/null +++ b/README.md @@ -0,0 +1 @@ +# Calendar # diff --git a/Theme/backend/calendar-create.tpl.php b/Theme/backend/calendar-create.tpl.php new file mode 100644 index 0000000..e69de29 diff --git a/Theme/backend/calendar-dashboard.tpl.php b/Theme/backend/calendar-dashboard.tpl.php new file mode 100644 index 0000000..11fc5a4 --- /dev/null +++ b/Theme/backend/calendar-dashboard.tpl.php @@ -0,0 +1,54 @@ +
+
+
    +
  • +
  • +
+ +
+
+
+ +
+
l11n->lang[0][jddayofweek($j, 1)]; ?>
+
+ +
+
+
+ +
+
+

Title

+ +
+
+ + + +
+
+
+
+
+
+ +
+

Calendars

+ +
+
    +
  • +
+
+ +
+
+
diff --git a/Theme/backend/calendar-element-create.tpl.php b/Theme/backend/calendar-element-create.tpl.php new file mode 100644 index 0000000..e69de29 diff --git a/Theme/backend/calendar-element-single.tpl.php b/Theme/backend/calendar-element-single.tpl.php new file mode 100644 index 0000000..e69de29 diff --git a/Theme/backend/calendar-single.tpl.php b/Theme/backend/calendar-single.tpl.php new file mode 100644 index 0000000..e69de29 diff --git a/Theme/lang/api.en.lang.php b/Theme/lang/api.en.lang.php new file mode 100644 index 0000000..eea62f6 --- /dev/null +++ b/Theme/lang/api.en.lang.php @@ -0,0 +1,17 @@ + + * @author Dennis Eichhorn + * @copyright 2013 Dennis Eichhorn + * @license OMS License 1.0 + * @version 1.0.0 + * @link http://orange-management.com + */ +$MODLANG[1] = [ +]; diff --git a/Theme/lang/backend.en.lang.php b/Theme/lang/backend.en.lang.php new file mode 100644 index 0000000..9f9c9fc --- /dev/null +++ b/Theme/lang/backend.en.lang.php @@ -0,0 +1,27 @@ + + * @author Dennis Eichhorn + * @copyright 2013 Dennis Eichhorn + * @license OMS License 1.0 + * @version 1.0.0 + * @link http://orange-management.com + */ +$MODLANG['Calendar'] = [ + 'Blocks' => 'Blocks', + 'Day' => 'Day', + 'Interval' => 'Interval', + 'Layout' => 'Layout', + 'List' => 'List', + 'Month' => 'Month', + 'Settings' => 'Settings', + 'Timeline' => 'Timeline', + 'Week' => 'Week', + 'Year' => 'Year', +]; diff --git a/Theme/lang/nav.backend.en.lang.php b/Theme/lang/nav.backend.en.lang.php new file mode 100644 index 0000000..401fe56 --- /dev/null +++ b/Theme/lang/nav.backend.en.lang.php @@ -0,0 +1,18 @@ + + * @author Dennis Eichhorn + * @copyright 2013 Dennis Eichhorn + * @license OMS License 1.0 + * @version 1.0.0 + * @link http://orange-management.com + */ +$MODLANG['Navigation'] = [ + 'Calendar' => 'Calendar', +]; diff --git a/img/module_teaser_small.png b/img/module_teaser_small.png new file mode 100644 index 0000000..f56e6ff Binary files /dev/null and b/img/module_teaser_small.png differ diff --git a/info.json b/info.json new file mode 100644 index 0000000..72d02b3 --- /dev/null +++ b/info.json @@ -0,0 +1,51 @@ +{ + "name": { + "id": 1000900000, + "internal": "Calendar", + "external": "OMS Calendar" + }, + "version": "1.0.0", + "requirements": { + "phpOMS": "1.0.0", + "phpOMS-db": "1.0.0" + }, + "creator": { + "name": "Orange Management", + "website": "www.spl1nes.com" + }, + "description": "Calendar module.", + "directory": "Calendar", + "dependencies": {}, + "providing": { + "Navigation": "*" + }, + "load": [ + { + "pid": [ + "fb78d7e421e4178d31a384fb394dcf2369fff309" + ], + "type": 4, + "for": "Content", + "from": "Calendar", + "file": "Calendar" + }, + { + "pid": [ + "754a08ddf8bcb1cf22f310f09206dd783d42f7dd" + ], + "type": 5, + "from": "Calendar", + "for": "Navigation", + "file": "nav.backend" + }, + { + "pid": [ + "fb78d7e421e4178d31a384fb394dcf2369fff309" + ], + "type": 5, + "for": "Content", + "file": "backend", + "from": "Calendar" + } + ] +} diff --git a/js/Calendar.js b/js/Calendar.js new file mode 100644 index 0000000..827c973 --- /dev/null +++ b/js/Calendar.js @@ -0,0 +1,21 @@ +(function (omsModule, undefined) { + omsModule.Calendar = function () { + this.layout = omsModule.Calendar.layout.BLOCKS; + this.interval = null; + this.selectedElement = null; + this.subCalendars = []; + + }; + + omsModule.Calendar.prototype.render = function () { + }; + + omsModule.Calendar.prototype.renderBlocks = function () { + }; + + omsModule.Calendar.prototype.renderList = function () { + }; + + omsModule.Calendar.prototype.renderTimeline = function () { + }; +}(window.omsModule = window.omsModule || {})); \ No newline at end of file diff --git a/js/CalendarPreview.js b/js/CalendarPreview.js new file mode 100644 index 0000000..e69de29 diff --git a/js/CalendarSub.js b/js/CalendarSub.js new file mode 100644 index 0000000..e69de29 diff --git a/js/Controller.js b/js/Controller.js new file mode 100644 index 0000000..e69de29 diff --git a/js/IntervalEnum.js b/js/IntervalEnum.js new file mode 100644 index 0000000..e69de29 diff --git a/js/LayoutEnum.js b/js/LayoutEnum.js new file mode 100644 index 0000000..e69de29