epal module: added get/set methods, updated list builders, updated entity fields

parent 79ab1c50
......@@ -3,3 +3,5 @@ type: module
description: EPAL Registration
core: 8.x
package: EPAL
dependencies:
- epalreadydata
\ No newline at end of file
<!DOCTYPE html>
<html class="" lang="en">
<head prefix="og: http://ogp.me/ns#">
<meta charset="utf-8">
<meta content="IE=edge" http-equiv="X-UA-Compatible">
<meta content="object" property="og:type">
<meta content="GitLab" property="og:site_name">
<meta content="epal_module_description.md · master · Νίκος Κατσαούνος / myEPALcode" property="og:title">
<meta content="OpenSource Software Repository of Greek Ministry of Education,Research and Religious Affairs / ΥΠ.Π.Ε.Θ." property="og:description">
<meta content="https://git.minedu.gov.gr/assets/gitlab_logo-7ae504fe4f68fdebb3c2034e36621930cd36ea87924c11ff65dbcb8ed50dca58.png" property="og:image">
<meta content="https://git.minedu.gov.gr/nkatsaounos/myEPALcode/blob/master/epal_module_description.md" property="og:url">
<meta content="summary" property="twitter:card">
<meta content="epal_module_description.md · master · Νίκος Κατσαούνος / myEPALcode" property="twitter:title">
<meta content="OpenSource Software Repository of Greek Ministry of Education,Research and Religious Affairs / ΥΠ.Π.Ε.Θ." property="twitter:description">
<meta content="https://git.minedu.gov.gr/assets/gitlab_logo-7ae504fe4f68fdebb3c2034e36621930cd36ea87924c11ff65dbcb8ed50dca58.png" property="twitter:image">
<title>epal_module_description.md · master · Νίκος Κατσαούνος / myEPALcode · GitLab</title>
<meta content="OpenSource Software Repository of Greek Ministry of Education,Research and Religious Affairs / ΥΠ.Π.Ε.Θ." name="description">
<link rel="shortcut icon" type="image/x-icon" href="/assets/favicon-075eba76312e8421991a0c1f89a89ee81678bcde72319dd3e8047e2a47cd3a42.ico" />
<link rel="stylesheet" media="all" href="/assets/application-b82c159e67a3d15c3f67bf6b7968181447bd0473e3acdf3b874759239ab1296b.css" />
<link rel="stylesheet" media="print" href="/assets/print-9c3a1eb4a2f45c9f3d7dd4de03f14c2e6b921e757168b595d7f161bbc320fc05.css" />
<script src="/assets/application-b6e6a0ec5d9fa435390d9f3cd075c95e666cffbe02f641b8b7cdcd9f3c168ed3.js"></script>
<meta name="csrf-param" content="authenticity_token" />
<meta name="csrf-token" content="JKf1gZ5DEkjEGTMwUh1rI2nsTE4H058pGF90eQFVHF9Edcp7gsmT1iq3OkSUHFBe647+FPV6zBt+wiIRQp6CcA==" />
<meta content="origin-when-cross-origin" name="referrer">
<meta content="width=device-width, initial-scale=1, maximum-scale=1" name="viewport">
<meta content="#474D57" name="theme-color">
<link rel="apple-touch-icon" type="image/x-icon" href="/assets/touch-icon-iphone-5a9cee0e8a51212e70b90c87c12f382c428870c0ff67d1eb034d884b78d2dae7.png" />
<link rel="apple-touch-icon" type="image/x-icon" href="/assets/touch-icon-ipad-a6eec6aeb9da138e507593b464fdac213047e49d3093fc30e90d9a995df83ba3.png" sizes="76x76" />
<link rel="apple-touch-icon" type="image/x-icon" href="/assets/touch-icon-iphone-retina-72e2aadf86513a56e050e7f0f2355deaa19cc17ed97bbe5147847f2748e5a3e3.png" sizes="120x120" />
<link rel="apple-touch-icon" type="image/x-icon" href="/assets/touch-icon-ipad-retina-8ebe416f5313483d9c1bc772b5bbe03ecad52a54eba443e5215a22caed2a16a2.png" sizes="152x152" />
<link color="rgb(226, 67, 41)" href="/assets/logo-d36b5212042cebc89b96df4bf6ac24e43db316143e89926c0db839ff694d2de4.svg" rel="mask-icon">
<meta content="/assets/msapplication-tile-1196ec67452f618d39cdd85e2e3a542f76574c071051ae7effbfde01710eb17d.png" name="msapplication-TileImage">
<meta content="#30353E" name="msapplication-TileColor">
</head>
<body class="ui_charcoal" data-group="" data-page="projects:blob:show" data-project="myEPALcode">
<script>
//<![CDATA[
window.gon={};gon.api_version="v3";gon.default_avatar_url="https:\/\/git.minedu.gov.gr\/assets\/no_avatar-849f9c04a3a0d0cea2424ae97b27447dc64a7dbfae83c036c45b403392f0e8ba.png";gon.max_file_size=10;gon.relative_url_root="";gon.shortcuts_path="\/help\/shortcuts";gon.user_color_scheme="white";gon.award_menu_url="\/emojis";gon.katex_css_url="\/assets\/katex-e46cafe9c3fa73920a7c2c063ee8bb0613e0cf85fd96a3aea25f8419c4bfcfba.css";gon.katex_js_url="\/assets\/katex-04bcf56379fcda0ee7c7a63f71d0fc15ffd2e014d017cd9d51fd6554dfccf40a.js";gon.current_user_id=10;
//]]>
</script>
<script>
window.project_uploads_path = "/nkatsaounos/myEPALcode/uploads";
window.preview_markdown_path = "/nkatsaounos/myEPALcode/preview_markdown";
</script>
<header class="navbar navbar-fixed-top navbar-gitlab with-horizontal-nav">
<a class="sr-only gl-accessibility" href="#content-body" tabindex="1">Skip to content</a>
<div class="container-fluid">
<div class="header-content">
<button aria-label="Toggle global navigation" class="side-nav-toggle" type="button">
<span class="sr-only">Toggle navigation</span>
<i class="fa fa-bars"></i>
</button>
<button class="navbar-toggle" type="button">
<span class="sr-only">Toggle navigation</span>
<i class="fa fa-ellipsis-v"></i>
</button>
<div class="navbar-collapse collapse">
<ul class="nav navbar-nav">
<li class="hidden-sm hidden-xs">
<div class="has-location-badge search search-form">
<form class="navbar-form" action="/search" accept-charset="UTF-8" method="get"><input name="utf8" type="hidden" value="&#x2713;" /><div class="search-input-container">
<div class="location-badge">This project</div>
<div class="search-input-wrap">
<div class="dropdown" data-url="/search/autocomplete">
<input type="search" name="search" id="search" placeholder="Search" class="search-input dropdown-menu-toggle no-outline js-search-dashboard-options" spellcheck="false" tabindex="1" autocomplete="off" data-toggle="dropdown" data-issues-path="https://git.minedu.gov.gr/dashboard/issues" data-mr-path="https://git.minedu.gov.gr/dashboard/merge_requests" />
<div class="dropdown-menu dropdown-select">
<div class="dropdown-content"><ul>
<li>
<a class="is-focused dropdown-menu-empty-link">
Loading...
</a>
</li>
</ul>
</div><div class="dropdown-loading"><i class="fa fa-spinner fa-spin"></i></div>
</div>
<i class="search-icon"></i>
<i class="clear-icon js-clear-input"></i>
</div>
</div>
</div>
<input type="hidden" name="group_id" id="group_id" class="js-search-group-options" />
<input type="hidden" name="project_id" id="search_project_id" value="80" class="js-search-project-options" data-project-path="myEPALcode" data-name="myEPALcode" data-issues-path="/nkatsaounos/myEPALcode/issues" data-mr-path="/nkatsaounos/myEPALcode/merge_requests" />
<input type="hidden" name="search_code" id="search_code" value="true" />
<input type="hidden" name="repository_ref" id="repository_ref" value="master" />
<div class="search-autocomplete-opts hide" data-autocomplete-path="/search/autocomplete" data-autocomplete-project-id="80" data-autocomplete-project-ref="master"></div>
</form></div>
</li>
<li class="visible-sm visible-xs">
<a title="Search" aria-label="Search" data-toggle="tooltip" data-placement="bottom" data-container="body" href="/search"><i class="fa fa-search"></i>
</a></li>
<li>
<a title="Todos" aria-label="Todos" data-toggle="tooltip" data-placement="bottom" data-container="body" href="/dashboard/todos"><i class="fa fa-bell fa-fw"></i>
<span class="badge hidden todos-pending-count">
0
</span>
</a></li>
<li class="header-user dropdown">
<a class="header-user-dropdown-toggle" data-toggle="dropdown" href="/nkatsaounos"><img width="26" height="26" class="header-user-avatar" src="https://secure.gravatar.com/avatar/e90a5963b02be2449baef05ddf5554cb?s=52&amp;d=identicon" alt="E90a5963b02be2449baef05ddf5554cb?s=52&amp;d=identicon" />
<i class="fa fa-caret-down"></i>
</a><div class="dropdown-menu-nav dropdown-menu-align-right">
<ul>
<li>
<a class="profile-link" aria-label="Profile" data-user="nkatsaounos" href="/nkatsaounos">Profile</a>
</li>
<li>
<a aria-label="Profile Settings" href="/profile">Profile Settings</a>
</li>
<li>
<a aria-label="Help" href="/help">Help</a>
</li>
<li class="divider"></li>
<li>
<a class="sign-out-link" aria-label="Sign out" rel="nofollow" data-method="delete" href="/users/sign_out">Sign out</a>
</li>
</ul>
</div>
</li>
</ul>
</div>
<h1 class="title"><a href="/nkatsaounos">Νίκος Κατσαούνος</a> / <a class="project-item-select-holder" href="/nkatsaounos/myEPALcode">myEPALcode</a><button name="button" type="button" class="dropdown-toggle-caret js-projects-dropdown-toggle" aria-label="Toggle switch project dropdown" data-target=".js-dropdown-menu-projects" data-toggle="dropdown"><i class="fa fa-chevron-down"></i></button></h1>
<div class="header-logo">
<a class="home" title="Dashboard" id="logo" href="/"><img src="/uploads/appearance/header_logo/1/17119027.png" alt="17119027" />
</a></div>
<div class="js-dropdown-menu-projects">
<div class="dropdown-menu dropdown-select dropdown-menu-projects">
<div class="dropdown-title"><span>Go to a project</span><button class="dropdown-title-button dropdown-menu-close" aria-label="Close" type="button"><i class="fa fa-times dropdown-menu-close-icon"></i></button></div>
<div class="dropdown-input"><input type="search" id="" class="dropdown-input-field" placeholder="Search your projects" autocomplete="off" /><i class="fa fa-search dropdown-input-search"></i><i role="button" class="fa fa-times dropdown-input-clear js-dropdown-input-clear"></i></div>
<div class="dropdown-content"></div>
<div class="dropdown-loading"><i class="fa fa-spinner fa-spin"></i></div>
</div>
</div>
</div>
</div>
</header>
<script>
var findFileURL = "/nkatsaounos/myEPALcode/find_file/master";
</script>
<div class="page-with-sidebar">
<div class="sidebar-wrapper nicescroll">
<div class="sidebar-action-buttons">
<div class="nav-header-btn toggle-nav-collapse" title="Open/Close">
<span class="sr-only">Toggle navigation</span>
<i class="fa fa-bars"></i>
</div>
<div class="nav-header-btn pin-nav-btn has-tooltip js-nav-pin" data-container="body" data-placement="right" title="Pin Navigation">
<span class="sr-only">Toggle navigation pinning</span>
<i class="fa fa-fw fa-thumb-tack"></i>
</div>
</div>
<div class="nav-sidebar">
<ul class="nav">
<li class="active home"><a title="Projects" class="dashboard-shortcuts-projects" href="/dashboard/projects"><span>
Projects
</span>
</a></li><li class=""><a class="dashboard-shortcuts-activity" title="Activity" href="/dashboard/activity"><span>
Activity
</span>
</a></li><li class=""><a title="Groups" href="/dashboard/groups"><span>
Groups
</span>
</a></li><li class=""><a title="Milestones" href="/dashboard/milestones"><span>
Milestones
</span>
</a></li><li class=""><a title="Issues" class="dashboard-shortcuts-issues" href="/dashboard/issues?assignee_id=10"><span>
Issues
<span class="count">0</span>
</span>
</a></li><li class=""><a title="Merge Requests" class="dashboard-shortcuts-merge_requests" href="/dashboard/merge_requests?assignee_id=10"><span>
Merge Requests
<span class="count">0</span>
</span>
</a></li><li class=""><a title="Snippets" href="/dashboard/snippets"><span>
Snippets
</span>
</a></li></ul>
</div>
</div>
<div class="layout-nav">
<div class="container-fluid">
<div class="controls">
<div class="dropdown project-settings-dropdown">
<a class="dropdown-new btn btn-default" data-toggle="dropdown" href="#" id="project-settings-button">
<i class="fa fa-cog"></i>
<i class="fa fa-caret-down"></i>
</a>
<ul class="dropdown-menu dropdown-menu-align-right">
<li class=""><a title="Members" class="team-tab tab" href="/nkatsaounos/myEPALcode/project_members"><span>
Members
</span>
</a></li><li class=""><a title="Groups" href="/nkatsaounos/myEPALcode/group_links"><span>
Groups
</span>
</a></li><li class=""><a title="Deploy Keys" href="/nkatsaounos/myEPALcode/deploy_keys"><span>
Deploy Keys
</span>
</a></li><li class=""><a title="Webhooks" href="/nkatsaounos/myEPALcode/hooks"><span>
Webhooks
</span>
</a></li><li class=""><a title="Services" href="/nkatsaounos/myEPALcode/services"><span>
Services
</span>
</a></li><li class=""><a title="Protected Branches" href="/nkatsaounos/myEPALcode/protected_branches"><span>
Protected Branches
</span>
</a></li><li class=""><a title="Runners" href="/nkatsaounos/myEPALcode/runners"><span>
Runners
</span>
</a></li><li class=""><a title="Variables" href="/nkatsaounos/myEPALcode/variables"><span>
Variables
</span>
</a></li><li class=""><a title="Triggers" href="/nkatsaounos/myEPALcode/triggers"><span>
Triggers
</span>
</a></li><li class=""><a title="CI/CD Pipelines" href="/nkatsaounos/myEPALcode/pipelines/settings"><span>
CI/CD Pipelines
</span>
</a></li>
<li class="divider"></li>
<li>
<a href="/nkatsaounos/myEPALcode/edit">Edit Project
</a></li>
</ul>
</div>
</div>
<div class="nav-control scrolling-tabs-container">
<div class="fade-left">
<i class="fa fa-angle-left"></i>
</div>
<div class="fade-right">
<i class="fa fa-angle-right"></i>
</div>
<ul class="nav-links scrolling-tabs">
<li class="home"><a title="Project" class="shortcuts-project" href="/nkatsaounos/myEPALcode"><span>
Project
</span>
</a></li><li class=""><a title="Activity" class="shortcuts-project-activity" href="/nkatsaounos/myEPALcode/activity"><span>
Activity
</span>
</a></li><li class="active"><a title="Repository" class="shortcuts-tree" href="/nkatsaounos/myEPALcode/tree/master"><span>
Repository
</span>
</a></li><li class=""><a title="Pipelines" class="shortcuts-pipelines" href="/nkatsaounos/myEPALcode/pipelines"><span>
Pipelines
</span>
</a></li><li class=""><a title="Graphs" class="shortcuts-graphs" href="/nkatsaounos/myEPALcode/graphs/master"><span>
Graphs
</span>
</a></li><li class=""><a title="Issues" class="shortcuts-issues" href="/nkatsaounos/myEPALcode/issues"><span>
Issues
<span class="badge count issue_counter">0</span>
</span>
</a></li><li class=""><a title="Merge Requests" class="shortcuts-merge_requests" href="/nkatsaounos/myEPALcode/merge_requests"><span>
Merge Requests
<span class="badge count merge_counter">0</span>
</span>
</a></li><li class=""><a title="Wiki" class="shortcuts-wiki" href="/nkatsaounos/myEPALcode/wikis/home"><span>
Wiki
</span>
</a></li><li class="hidden">
<a title="Network" class="shortcuts-network" href="/nkatsaounos/myEPALcode/network/master">Network
</a></li>
<li class="hidden">
<a class="shortcuts-new-issue" href="/nkatsaounos/myEPALcode/issues/new">Create a new issue
</a></li>
<li class="hidden">
<a title="Builds" class="shortcuts-builds" href="/nkatsaounos/myEPALcode/builds">Builds
</a></li>
<li class="hidden">
<a title="Commits" class="shortcuts-commits" href="/nkatsaounos/myEPALcode/commits/master">Commits
</a></li>
<li class="hidden">
<a title="Issue Boards" class="shortcuts-issue-boards" href="/nkatsaounos/myEPALcode/boards">Issue Boards</a>
</li>
</ul>
</div>
</div>
</div>
<div class="content-wrapper page-with-layout-nav">
<div class="scrolling-tabs-container sub-nav-scroll">
<div class="fade-left">
<i class="fa fa-angle-left"></i>
</div>
<div class="fade-right">
<i class="fa fa-angle-right"></i>
</div>
<div class="nav-links sub-nav scrolling-tabs">
<ul class="container-fluid container-limited">
<li class="active"><a href="/nkatsaounos/myEPALcode/tree/master">Files
</a></li><li class=""><a href="/nkatsaounos/myEPALcode/commits/master">Commits
</a></li><li class=""><a href="/nkatsaounos/myEPALcode/network/master">Network
</a></li><li class=""><a href="/nkatsaounos/myEPALcode/compare?from=master&amp;to=master">Compare
</a></li><li class=""><a href="/nkatsaounos/myEPALcode/branches">Branches
</a></li><li class=""><a href="/nkatsaounos/myEPALcode/tags">Tags
</a></li></ul>
</div>
</div>
<div class="alert-wrapper">
<div class="flash-container flash-container-page">
</div>
</div>
<div class=" ">
<div class="content" id="content-body">
<div class="container-fluid container-limited">
<div class="tree-holder" id="tree-holder">
<div class="nav-block">
<div class="tree-ref-holder">
<form class="project-refs-form" action="/nkatsaounos/myEPALcode/refs/switch" accept-charset="UTF-8" method="get"><input name="utf8" type="hidden" value="&#x2713;" /><input type="hidden" name="destination" id="destination" value="blob" />
<input type="hidden" name="path" id="path" value="epal_module_description.md" />
<div class="dropdown">
<button class="dropdown-menu-toggle js-project-refs-dropdown" type="button" data-toggle="dropdown" data-selected="master" data-ref="master" data-refs-url="/nkatsaounos/myEPALcode/refs" data-field-name="ref" data-submit-form-on-click="true"><span class="dropdown-toggle-text ">master</span><i class="fa fa-chevron-down"></i></button>
<div class="dropdown-menu dropdown-menu-selectable">
<div class="dropdown-title"><span>Switch branch/tag</span><button class="dropdown-title-button dropdown-menu-close" aria-label="Close" type="button"><i class="fa fa-times dropdown-menu-close-icon"></i></button></div>
<div class="dropdown-input"><input type="search" id="" class="dropdown-input-field" placeholder="Search branches and tags" autocomplete="off" /><i class="fa fa-search dropdown-input-search"></i><i role="button" class="fa fa-times dropdown-input-clear js-dropdown-input-clear"></i></div>
<div class="dropdown-content"></div>
<div class="dropdown-loading"><i class="fa fa-spinner fa-spin"></i></div>
</div>
</div>
</form>
</div>
<ul class="breadcrumb repo-breadcrumb">
<li>
<a href="/nkatsaounos/myEPALcode/tree/master">myEPALcode
</a></li>
<li>
<a href="/nkatsaounos/myEPALcode/blob/master/epal_module_description.md"><strong>
epal_module_description.md
</strong>
</a></li>
</ul>
</div>
<ul class="blob-commit-info hidden-xs">
<li class="commit js-toggle-container" id="commit-aad7cf23">
<a href="/nkatsaounos"><img class="avatar has-tooltip s36 hidden-xs" alt="Νίκος Κατσαούνος&#39;s avatar" title="Νίκος Κατσαούνος" data-container="body" src="https://secure.gravatar.com/avatar/e90a5963b02be2449baef05ddf5554cb?s=72&amp;d=identicon" /></a>
<div class="commit-info-block">
<div class="commit-row-title">
<span class="item-title">
<a class="commit-row-message" href="/nkatsaounos/myEPALcode/commit/aad7cf23af50cea237a109d42f518986f6b01806">Update epal_module_dscription.md</a>
<span class="commit-row-message visible-xs-inline">
&middot;
aad7cf23
</span>
</span>
<div class="commit-actions hidden-xs">
<button class="btn btn-clipboard btn-transparent" data-toggle="tooltip" data-placement="bottom" data-container="body" data-clipboard-text="aad7cf23af50cea237a109d42f518986f6b01806" type="button" title="Copy to clipboard"><i class="fa fa-clipboard"></i></button>
<a class="commit-short-id btn btn-transparent" href="/nkatsaounos/myEPALcode/commit/aad7cf23af50cea237a109d42f518986f6b01806">aad7cf23</a>
</div>
</div>
<a class="commit-author-link has-tooltip" title="nkatsaounos@sch.gr" href="/nkatsaounos">Νίκος Κατσαούνος</a>
committed
<time class="js-timeago" title="Jan 18, 2017 7:58pm" datetime="2017-01-18T19:58:30Z" data-toggle="tooltip" data-placement="top" data-container="body">2017-01-18 21:58:30 +0200</time>
</div>
</li>
</ul>
<div class="blob-content-holder" id="blob-content-holder">
<article class="file-holder">
<div class="file-title">
<i class="fa fa-file-text-o fa-fw"></i>
<strong>
epal_module_description.md
</strong>
<small>
5.53 KB
</small>
<div class="file-actions hidden-xs">
<div class="btn-group tree-btn-group">
<a class="btn btn-sm" target="_blank" href="/nkatsaounos/myEPALcode/raw/master/epal_module_description.md">Raw</a>
<a class="btn btn-sm" href="/nkatsaounos/myEPALcode/blame/master/epal_module_description.md">Blame</a>
<a class="btn btn-sm" href="/nkatsaounos/myEPALcode/commits/master/epal_module_description.md">History</a>
<a class="btn btn-sm" href="/nkatsaounos/myEPALcode/blob/7e0874e736505ec749ed0b264701d891f7572b31/epal_module_description.md">Permalink</a>
</div>
<div class="btn-group" role="group">
<a class="btn btn-sm" href="/nkatsaounos/myEPALcode/edit/master/epal_module_description.md">Edit</a>
<button name="button" type="submit" class="btn btn-default" data-target="#modal-upload-blob" data-toggle="modal">Replace</button>
<button name="button" type="submit" class="btn btn-remove" data-target="#modal-remove-blob" data-toggle="modal">Delete</button>
</div>
</div>
</div>
<div class="file-content wiki">
<h1 dir="auto">&#x000A;<a id="user-content-module-epal" class="anchor" href="#module-epal" aria-hidden="true"></a>module epal</h1>&#x000A;&#x000A;<p dir="auto"><strong>Περιγραφή:</strong> δημιουργεί τα απαραίτητα content entities για τα δεδομένα που σχετίζονται με την αίτηση του μαθητή.&#x000A;Συγκεκριμένα δημιουργεί τα ακόλουθα content entities:</p>&#x000A;&#x000A;<p dir="auto">(<em>σημείωση:</em> στην ονοματολογία των entities έχει χρησιμοποιηθεί το πρόθεμα Epal ώστε όλα τα αντίστοιχα mysql tables που θα δημιουργηθούν να έχουν ονομασία που αρχίζει με αυτό το πρόθεμα, ώστε να είναι "ομαδοποιημένα" και να εντοπίζονται εύκολα). </p>&#x000A;&#x000A;<p dir="auto">(<em>σημείωση:</em> στο schema των παρακάτω entities αναφέρονται μόνο τα πεδία που θα χρειαστεί η εφαρμογή μας. Να σημειωθεί ότι κάθε entity έχει επιπλέον τα ακόλουθα πεδία, &#x000A;τα οποία δημιουργήθηκαν κατά τη διαδικασία δημιουργίας και ενημέρωσης με δεδομένα των entities: langcode, user_id, status, created, changed, default_langcode).</p>&#x000A;&#x000A;<blockquote dir="auto">&#x000A;<p><strong>EpalUsers</strong></p>&#x000A;</blockquote>&#x000A;&#x000A;<p dir="auto">Περιέχει το schema και τα δεδομένα για τους χρήστες. Ουσιαστικά πρόκειται για έναν πίνακα που θα αποθηκεύονται δεδομένα ταυτοποίησης των χρηστών,&#x000A;όπως αυτά μας επιστρέφονται από τα taxis / ΑΜΚΑ service provider. Ο πίνακας αυτός θα έχει αντιστοιχεία 1 προς 1 με τον core πίνακα users του Drupal.&#x000A;Η λύση αυτή προτείνεται για να αποφύγουμε να τροποποιήσουμε το κρίσιμο core entity των users. </p>&#x000A;&#x000A;<pre class="code highlight js-syntax-highlight plaintext" v-pre="true"><code>* name id του users (core entity του Drupal) (entity_reference)&#x000A;* userId userid που επιστρέφει το taxis&#x000A;* userTaxId tax id που επιστρέφει το taxis (πιθανά είναι το ΑΦΜ)&#x000A;* userFirstname όνομα που επιστρέφει το taxis&#x000A;* userSurname επώνυμο που επιστρέφει το taxis&#x000A;* userFatherName όνομα πατέρα που επιστρέφει το taxis&#x000A;* userAddress διεύθυση κατοικίας που επιστρέφει το taxis / ΑΜΚΑ SP (δεν γνωρίζουμε ακόμα αν μπορεί να επιστραφεί)&#x000A;* userAddressTK ΤΚ κατοικίας που επιστρέφει το taxis / ΑΜΚΑ SP (δεν γνωρίζουμε ακόμα αν μπορεί να επιστραφεί)&#x000A;* userAddressArea Περιοχή κατοικίας που επιστρέφει το taxis / ΑΜΚΑ SP (δεν γνωρίζουμε ακόμα αν μπορεί να επιστραφεί)&#x000A;* accessToken access-token που επιστρέφει το taxis &#x000A;* offToken off-token που δημιουργούμε &#x000A;* timeLogin πότε έκανε login ο χρήστης&#x000A;* timeRegistration πότε έκανε registration ο χρήστης&#x000A;* timeTokenInvalid χρόνος σε min μετά την πάροδο του οποίου γίνεται invalid το token&#x000A;* userIP IP χρήστη&#x000A;</code></pre>&#x000A;&#x000A;<blockquote dir="auto">&#x000A;<p><strong>EpalStudent</strong></p>&#x000A;</blockquote>&#x000A;&#x000A;<p dir="auto">Περιέχει το schema και τα δεδομένα για τους μαθητές για τους οποίους πρόκειται να γίνει αίτηση.</p>&#x000A;&#x000A;<pre class="code highlight js-syntax-highlight plaintext" v-pre="true"><code>* name id του EpalUsers πίνακα (entity_reference)&#x000A;* studentFirstname όνομα μαθητή&#x000A;* studentSurname επώνυμο μαθητή&#x000A;* guardianFirstname όνομα κηδεμόνα&#x000A;* guardianSurname επώνυμο κηδεμόνα&#x000A;* studentAmka ΑΜΚΑ μαθητή&#x000A;* regionAddress διεύθυνση κατοικίας&#x000A;* regionTK ΤΚ κατοικίας&#x000A;* regionArea πόλη/χωριό κατοικίας&#x000A;* certificateType τύπος απολυτηρίου (πχ "απολυτήριο Γυμνασίου")&#x000A;* relationToStudent ποιος κάνει την αίτηση (πχ "Γονέας", "Μαθητής")&#x000A;</code></pre>&#x000A;&#x000A;<blockquote dir="auto">&#x000A;<p><strong>EpalStudentEpalChosen</strong></p>&#x000A;</blockquote>&#x000A;&#x000A;<p dir="auto">Περιέχει το schema και τα δεδομένα για το ποια ΕΠΑΛ επέλεξαν στις προτιμήσεις τους ποιοι μαθητές</p>&#x000A;&#x000A;<pre class="code highlight js-syntax-highlight plaintext" v-pre="true"><code>* name ονομασία της εγγραφής (πχ "record1")&#x000A;* student_id id μαθητή (entity reference) &#x000A;* epal_id id σχολείου (entity reference)&#x000A;* choice_no σειρά προτίμησς (πχ 1, 2 κλπ)&#x000A;* points_for_order μόρια για σειρά προτίμησης&#x000A;* distance_from_epal απόσταση από διεύθυνση κατοικίας&#x000A;* points_for_distance μόρια για απόσταση&#x000A;</code></pre>&#x000A;&#x000A;<blockquote dir="auto">&#x000A;<p><strong>EpalStudentCourseField</strong></p>&#x000A;</blockquote>&#x000A;&#x000A;<p dir="auto">Περιέχει το schema και τα δεδομένα για το ποιες ειδικότητες επέλεξαν στις προτιμήσεις τους ποιοι μαθητές</p>&#x000A;&#x000A;<pre class="code highlight js-syntax-highlight plaintext" v-pre="true"><code>* name ονομασία της εγγραφής (πχ "record1")&#x000A;* student_id id μαθητή (entity reference) &#x000A;* courseField_id id ειδικότητας (entity reference)&#x000A;</code></pre>&#x000A;&#x000A;<blockquote dir="auto">&#x000A;<p><strong>EpalStudentClass</strong></p>&#x000A;</blockquote>&#x000A;&#x000A;<p dir="auto"><strong>Προσοχή</strong>: Δεν χρησιμοποιείται αυτό το entity. <strong>Εκκρεμεί</strong>: ασφαλής τρόπος διαγραφής του από το module. </p>
</div>
</article>
</div>
</div>
<div class="modal" id="modal-remove-blob">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<a class="close" data-dismiss="modal" href="#">×</a>
<h3 class="page-title">Delete epal_module_description.md</h3>
</div>
<div class="modal-body">
<form class="form-horizontal js-replace-blob-form js-quick-submit js-requires-input" action="/nkatsaounos/myEPALcode/blob/master/epal_module_description.md" accept-charset="UTF-8" method="post"><input name="utf8" type="hidden" value="&#x2713;" /><input type="hidden" name="_method" value="delete" /><input type="hidden" name="authenticity_token" value="EspJWlIEG0XtBQWaybIHYm4LLb0i0A6zngv1ypLhf5pyGHagTo6a2wOrDO4Pszwf7Gmf59B5XYH4lqOi0SrhtQ==" /><div class="form-group commit_message-group">
<label class="control-label" for="commit_message-c325adeb5db9f151376aafc048aee4c5">Commit message
</label><div class="col-sm-10">
<div class="commit-message-container">
<div class="max-width-marker"></div>
<textarea name="commit_message" id="commit_message-c325adeb5db9f151376aafc048aee4c5" class="form-control js-commit-message" placeholder="Delete epal_module_description.md" required="required" rows="3">
Delete epal_module_description.md</textarea>
</div>
</div>
</div>
<div class="form-group branch">
<label class="control-label" for="target_branch">Target branch</label>
<div class="col-sm-10">
<input type="text" name="target_branch" id="target_branch" value="master" required="required" class="form-control js-target-branch" />
<div class="js-create-merge-request-container">
<div class="checkbox">
<label for="create_merge_request-a91876e07a2dd2fd95a5e4e92baaa506"><input type="checkbox" name="create_merge_request" id="create_merge_request-a91876e07a2dd2fd95a5e4e92baaa506" value="1" class="js-create-merge-request" checked="checked" />
Start a <strong>new merge request</strong> with these changes
</label></div>
</div>
</div>
</div>
<input type="hidden" name="original_branch" id="original_branch" value="master" class="js-original-branch" />
<div class="form-group">
<div class="col-sm-offset-2 col-sm-10">
<button name="button" type="submit" class="btn btn-remove btn-remove-file">Delete file</button>
<a class="btn btn-cancel" data-dismiss="modal" href="#">Cancel</a>
</div>
</div>
</form></div>
</div>
</div>
</div>
<script>
new NewCommitForm($('.js-replace-blob-form'))
</script>
<div class="modal" id="modal-upload-blob">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<a class="close" data-dismiss="modal" href="#">×</a>
<h3 class="page-title">Replace epal_module_description.md</h3>
</div>
<div class="modal-body">
<form class="js-quick-submit js-upload-blob-form form-horizontal" action="/nkatsaounos/myEPALcode/update/master/epal_module_description.md" accept-charset="UTF-8" method="post"><input name="utf8" type="hidden" value="&#x2713;" /><input type="hidden" name="_method" value="put" /><input type="hidden" name="authenticity_token" value="d0ef8YjClWnB6ZyNuqkepmOCgfA4H3+f+rLQ1xgEsfgXlaALlEgU9y9Hlfl8qCXb4eAzqsq2LK2cL4a/W88v1w==" /><div class="dropzone">
<div class="dropzone-previews blob-upload-dropzone-previews">
<p class="dz-message light">
Attach a file by drag &amp; drop or
<a class="markdown-selector" href="#">click to upload</a>
</p>
</div>
</div>
<br>
<div class="alert alert-danger data dropzone-alerts" style="display:none"></div>
<div class="form-group commit_message-group">
<label class="control-label" for="commit_message-9cd0ab639d0b4c0fc2f373787da1617f">Commit message
</label><div class="col-sm-10">
<div class="commit-message-container">
<div class="max-width-marker"></div>
<textarea name="commit_message" id="commit_message-9cd0ab639d0b4c0fc2f373787da1617f" class="form-control js-commit-message" placeholder="Replace epal_module_description.md" required="required" rows="3">
Replace epal_module_description.md</textarea>
</div>
</div>
</div>
<div class="form-group branch">
<label class="control-label" for="target_branch">Target branch</label>
<div class="col-sm-10">
<input type="text" name="target_branch" id="target_branch" value="master" required="required" class="form-control js-target-branch" />
<div class="js-create-merge-request-container">
<div class="checkbox">
<label for="create_merge_request-a644c831fae6d3e23775e4a778b6c820"><input type="checkbox" name="create_merge_request" id="create_merge_request-a644c831fae6d3e23775e4a778b6c820" value="1" class="js-create-merge-request" checked="checked" />
Start a <strong>new merge request</strong> with these changes
</label></div>
</div>
</div>
</div>
<input type="hidden" name="original_branch" id="original_branch" value="master" class="js-original-branch" />
<div class="form-actions">
<button name="button" type="submit" class="btn btn-small btn-create btn-upload-file" id="submit-all">Replace file</button>
<a class="btn btn-cancel" data-dismiss="modal" href="#">Cancel</a>
</div>
</form></div>
</div>
</div>
</div>
<script>
gl.utils.disableButtonIfEmptyField($('.js-upload-blob-form').find('.js-commit-message'), '.btn-upload-file');
new BlobFileDropzone($('.js-upload-blob-form'), 'put');
new NewCommitForm($('.js-upload-blob-form'))
</script>
</div>
</div>
</div>
</div>
</div>
</body>
</html>
......@@ -45,10 +45,9 @@ use Drupal\user\UserInterface;
* "uid" = "user_id",
* "langcode" = "langcode",
* "status" = "status",
* "surname" = "surname",
* "address" = "address",
* "birthdate" = "birthdate",
* "epalstudentclass_id" = "epalstudentclass_id",
* "epaluser_id" = "epaluser_id",
* "name" = "name",
* "studentsurname" = "studentsurname",
* },
* links = {
* "canonical" = "/admin/epal/epal_student/{epal_student}",
......@@ -74,9 +73,7 @@ class EpalStudent extends ContentEntityBase implements EpalStudentInterface {
);
}
/**
* {@inheritdoc}
*/
public function getName() {
return $this->get('name')->value;
}
......@@ -89,9 +86,24 @@ class EpalStudent extends ContentEntityBase implements EpalStudentInterface {
return $this;
}
/**
* {@inheritdoc}
*/
public function getUser_id() {
return $this->get('user_id')->value;
}
/**
* {@inheritdoc}
*/
public function setUser_id($name) {
$this->set('user_id', $name);
return $this;
}
/**
* {@inheritdoc}
*/
public function getCreatedTime() {
return $this->get('created')->value;
}
......@@ -103,6 +115,21 @@ class EpalStudent extends ContentEntityBase implements EpalStudentInterface {
$this->set('created', $timestamp);
return $this;
}
/**
* {@inheritdoc}
*/
public function getStatus() {
return $this->get('status')->value;
}
/**
* {@inheritdoc}
*/
public function setStatus($name) {
$this->set('status', $name);
return $this;
}
/**
* {@inheritdoc}
......@@ -110,6 +137,14 @@ class EpalStudent extends ContentEntityBase implements EpalStudentInterface {
public function getOwner() {
return $this->get('user_id')->entity;
}
/**
* {@inheritdoc}