Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
e-epal
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Σταύρος Παπαδάκης
e-epal
Commits
c9235f40
Commit
c9235f40
authored
Jan 11, 2017
by
Νίκος Κατσαούνος
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
updated epalreadydata entity relationship
parent
9b32b840
Changes
10
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
153 additions
and
77 deletions
+153
-77
drupal/modules/epalreadydata/src/Entity/EepalAdminArea.php
drupal/modules/epalreadydata/src/Entity/EepalAdminArea.php
+26
-0
drupal/modules/epalreadydata/src/Entity/EepalAdminAreaViewsData.php
...ules/epalreadydata/src/Entity/EepalAdminAreaViewsData.php
+3
-2
drupal/modules/epalreadydata/src/Entity/EepalPrefecture.php
drupal/modules/epalreadydata/src/Entity/EepalPrefecture.php
+17
-14
drupal/modules/epalreadydata/src/Entity/EepalPrefectureViewsData.php
...les/epalreadydata/src/Entity/EepalPrefectureViewsData.php
+2
-0
drupal/modules/epalreadydata/src/Entity/EepalRegionViewsData.php
...modules/epalreadydata/src/Entity/EepalRegionViewsData.php
+2
-0
drupal/modules/epalreadydata/src/Entity/EepalSchool.php
drupal/modules/epalreadydata/src/Entity/EepalSchool.php
+54
-45
drupal/modules/epalreadydata/src/Entity/EepalSchoolViewsData.php
...modules/epalreadydata/src/Entity/EepalSchoolViewsData.php
+2
-0
drupal/modules/epalreadydata/src/Entity/EepalSpecialtiesInEpal.php
...dules/epalreadydata/src/Entity/EepalSpecialtiesInEpal.php
+43
-16
drupal/modules/epalreadydata/src/Entity/EepalSpecialtiesInEpalViewsData.php
...lreadydata/src/Entity/EepalSpecialtiesInEpalViewsData.php
+2
-0
drupal/modules/epalreadydata/src/Entity/EepalSpecialtyViewsData.php
...ules/epalreadydata/src/Entity/EepalSpecialtyViewsData.php
+2
-0
No files found.
drupal/modules/epalreadydata/src/Entity/EepalAdminArea.php
View file @
c9235f40
...
...
@@ -196,6 +196,7 @@ class EepalAdminArea extends ContentEntityBase implements EepalAdminAreaInterfac
->
setDisplayConfigurable
(
'form'
,
TRUE
)
->
setDisplayConfigurable
(
'view'
,
TRUE
);
/*
$fields['region_to_belong'] = BaseFieldDefinition::create('integer')
->setLabel(t('region_to_belong'))
->setDescription(t('Περιφερειακή Διεύθυνση στην οποία ανήκει.'))
...
...
@@ -216,6 +217,31 @@ class EepalAdminArea extends ContentEntityBase implements EepalAdminAreaInterfac
))
->setDisplayConfigurable('form', TRUE)
->setDisplayConfigurable('view', TRUE);
*/
$fields
[
'region_to_belong'
]
=
BaseFieldDefinition
::
create
(
'entity_reference'
)
->
setLabel
(
t
(
'region_to_belong'
))
->
setDescription
(
t
(
'Περιφερειακή Διεύθυνση στην οποία ανήκει.'
))
->
setSetting
(
'target_type'
,
'eepal_region'
)
->
setSetting
(
'handler'
,
'default'
)
->
setTranslatable
(
TRUE
)
->
setDisplayOptions
(
'view'
,
array
(
'label'
=>
'hidden'
,
'type'
=>
'author'
,
'weight'
=>
0
,
))
->
setDisplayOptions
(
'form'
,
array
(
'type'
=>
'entity_reference_autocomplete'
,
'weight'
=>
5
,
'settings'
=>
array
(
'match_operator'
=>
'CONTAINS'
,
'size'
=>
'60'
,
'autocomplete_type'
=>
'tags'
,
'placeholder'
=>
''
,
),
))
->
setDisplayConfigurable
(
'form'
,
TRUE
)
->
setDisplayConfigurable
(
'view'
,
TRUE
);
$fields
[
'status'
]
=
BaseFieldDefinition
::
create
(
'boolean'
)
->
setLabel
(
t
(
'Publishing status'
))
...
...
drupal/modules/epalreadydata/src/Entity/EepalAdminAreaViewsData.php
View file @
c9235f40
...
...
@@ -16,12 +16,13 @@ class EepalAdminAreaViewsData extends EntityViewsData implements EntityViewsData
public
function
getViewsData
()
{
$data
=
parent
::
getViewsData
();
$data
[
'eepal_admin_area'
][
'table'
][
'base'
]
=
array
(
/*
$data['eepal_admin_area']['table']['base'] = array(
'field' => 'id',
'title' => $this->t('Eepal admin area'),
'help' => $this->t('The Eepal admin area ID.'),
);
*/
return
$data
;
}
...
...
drupal/modules/epalreadydata/src/Entity/EepalPrefecture.php
View file @
c9235f40
...
...
@@ -196,24 +196,27 @@ class EepalPrefecture extends ContentEntityBase implements EepalPrefectureInterf
->
setDisplayConfigurable
(
'form'
,
TRUE
)
->
setDisplayConfigurable
(
'view'
,
TRUE
);
$fields
[
'dief_to_belong'
]
=
BaseFieldDefinition
::
create
(
'
integer
'
)
$fields
[
'dief_to_belong'
]
=
BaseFieldDefinition
::
create
(
'
entity_reference
'
)
->
setLabel
(
t
(
'region_to_belong'
))
->
setDescription
(
t
(
'Περιφερειακή Διεύθυνση στην οποία ανήκει.'
))
->
setRevisionable
(
TRUE
)
->
setSettings
(
array
(
//'max_length' => 2,
'text_processing'
=>
0
,
))
//->setDefaultValue(25)
->
setSetting
(
'target_type'
,
'eepal_admin_area'
)
->
setSetting
(
'handler'
,
'default'
)
->
setTranslatable
(
TRUE
)
->
setDisplayOptions
(
'view'
,
array
(
'label'
=>
'above
'
,
'type'
=>
'intege
r'
,
//'weight' => -4
,
))
'label'
=>
'hidden
'
,
'type'
=>
'autho
r'
,
'weight'
=>
0
,
))
->
setDisplayOptions
(
'form'
,
array
(
'type'
=>
'integer'
,
//'weight' => -4,
))
'type'
=>
'entity_reference_autocomplete'
,
'weight'
=>
5
,
'settings'
=>
array
(
'match_operator'
=>
'CONTAINS'
,
'size'
=>
'60'
,
'autocomplete_type'
=>
'tags'
,
'placeholder'
=>
''
,
),
))
->
setDisplayConfigurable
(
'form'
,
TRUE
)
->
setDisplayConfigurable
(
'view'
,
TRUE
);
...
...
drupal/modules/epalreadydata/src/Entity/EepalPrefectureViewsData.php
View file @
c9235f40
...
...
@@ -16,11 +16,13 @@ class EepalPrefectureViewsData extends EntityViewsData implements EntityViewsDat
public
function
getViewsData
()
{
$data
=
parent
::
getViewsData
();
/*
$data['eepal_prefecture']['table']['base'] = array(
'field' => 'id',
'title' => $this->t('Eepal prefecture'),
'help' => $this->t('The Eepal prefecture ID.'),
);
*/
return
$data
;
}
...
...
drupal/modules/epalreadydata/src/Entity/EepalRegionViewsData.php
View file @
c9235f40
...
...
@@ -16,11 +16,13 @@ class EepalRegionViewsData extends EntityViewsData implements EntityViewsDataInt
public
function
getViewsData
()
{
$data
=
parent
::
getViewsData
();
/*
$data['eepal_region']['table']['base'] = array(
'field' => 'id',
'title' => $this->t('Eepal region'),
'help' => $this->t('The Eepal region ID.'),
);
*/
return
$data
;
}
...
...
drupal/modules/epalreadydata/src/Entity/EepalSchool.php
View file @
c9235f40
...
...
@@ -356,68 +356,77 @@ class EepalSchool extends ContentEntityBase implements EepalSchoolInterface {
->
setDisplayConfigurable
(
'form'
,
TRUE
)
->
setDisplayConfigurable
(
'view'
,
TRUE
);
$fields
[
'region_edu_admin_id'
]
=
BaseFieldDefinition
::
create
(
'
integer
'
)
$fields
[
'region_edu_admin_id'
]
=
BaseFieldDefinition
::
create
(
'
entity_reference
'
)
->
setLabel
(
t
(
'ID Περιφερειακής Διεύθυνσης'
))
->
setDescription
(
t
(
'Δώσε το ID της Περιφερειακής Διεύθυνσης στην οποία ανήκει.'
))
->
setRevisionable
(
TRUE
)
->
setSettings
(
array
(
//'max_length' => 2,
'text_processing'
=>
0
,
))
//->setDefaultValue(25)
->
setSetting
(
'target_type'
,
'eepal_region'
)
->
setSetting
(
'handler'
,
'default'
)
->
setTranslatable
(
TRUE
)
->
setDisplayOptions
(
'view'
,
array
(
'label'
=>
'above
'
,
'type'
=>
'intege
r'
,
//'weight' => -4
,
))
'label'
=>
'hidden
'
,
'type'
=>
'autho
r'
,
'weight'
=>
0
,
))
->
setDisplayOptions
(
'form'
,
array
(
'type'
=>
'integer'
,
//'weight' => -4,
))
'type'
=>
'entity_reference_autocomplete'
,
'weight'
=>
5
,
'settings'
=>
array
(
'match_operator'
=>
'CONTAINS'
,
'size'
=>
'60'
,
'autocomplete_type'
=>
'tags'
,
'placeholder'
=>
''
,
),
))
->
setDisplayConfigurable
(
'form'
,
TRUE
)
->
setDisplayConfigurable
(
'view'
,
TRUE
);
->
setDisplayConfigurable
(
'view'
,
TRUE
);
$fields
[
'edu_admin_id'
]
=
BaseFieldDefinition
::
create
(
'
integer
'
)
$fields
[
'edu_admin_id'
]
=
BaseFieldDefinition
::
create
(
'
entity_reference
'
)
->
setLabel
(
t
(
'ID Διεύθυνσης Εκπαίδευσης'
))
->
setDescription
(
t
(
'Δώσε το ID της Διεύθυνσης Εκπαίδευσης στην οποία ανήκει.'
))
->
setRevisionable
(
TRUE
)
->
setSettings
(
array
(
//'max_length' => 2,
'text_processing'
=>
0
,
))
//->setDefaultValue(25)
->
setSetting
(
'target_type'
,
'eepal_admin_area'
)
->
setSetting
(
'handler'
,
'default'
)
->
setTranslatable
(
TRUE
)
->
setDisplayOptions
(
'view'
,
array
(
'label'
=>
'above
'
,
'type'
=>
'intege
r'
,
//'weight' => -4
,
))
'label'
=>
'hidden
'
,
'type'
=>
'autho
r'
,
'weight'
=>
0
,
))
->
setDisplayOptions
(
'form'
,
array
(
'type'
=>
'integer'
,
//'weight' => -4,
))
'type'
=>
'entity_reference_autocomplete'
,
'weight'
=>
5
,
'settings'
=>
array
(
'match_operator'
=>
'CONTAINS'
,
'size'
=>
'60'
,
'autocomplete_type'
=>
'tags'
,
'placeholder'
=>
''
,
),
))
->
setDisplayConfigurable
(
'form'
,
TRUE
)
->
setDisplayConfigurable
(
'view'
,
TRUE
);
->
setDisplayConfigurable
(
'view'
,
TRUE
);
$fields
[
'prefecture_id'
]
=
BaseFieldDefinition
::
create
(
'
integer
'
)
$fields
[
'prefecture_id'
]
=
BaseFieldDefinition
::
create
(
'
entity_reference
'
)
->
setLabel
(
t
(
'ID Νομαρχίας'
))
->
setDescription
(
t
(
'Δώσε το ID της Νομαρχίας στην οποία ανήκει.'
))
->
setRevisionable
(
TRUE
)
->
setSettings
(
array
(
//'max_length' => 2,
'text_processing'
=>
0
,
))
//->setDefaultValue(25)
->
setSetting
(
'target_type'
,
'eepal_prefecture'
)
->
setSetting
(
'handler'
,
'default'
)
->
setTranslatable
(
TRUE
)
->
setDisplayOptions
(
'view'
,
array
(
'label'
=>
'above
'
,
'type'
=>
'intege
r'
,
//'weight' => -4
,
))
'label'
=>
'hidden
'
,
'type'
=>
'autho
r'
,
'weight'
=>
0
,
))
->
setDisplayOptions
(
'form'
,
array
(
'type'
=>
'integer'
,
//'weight' => -4,
))
'type'
=>
'entity_reference_autocomplete'
,
'weight'
=>
5
,
'settings'
=>
array
(
'match_operator'
=>
'CONTAINS'
,
'size'
=>
'60'
,
'autocomplete_type'
=>
'tags'
,
'placeholder'
=>
''
,
),
))
->
setDisplayConfigurable
(
'form'
,
TRUE
)
->
setDisplayConfigurable
(
'view'
,
TRUE
);
->
setDisplayConfigurable
(
'view'
,
TRUE
);
$fields
[
'municipality'
]
=
BaseFieldDefinition
::
create
(
'string'
)
->
setLabel
(
t
(
'Δήμος-Περιοχή Σχολείου'
))
...
...
drupal/modules/epalreadydata/src/Entity/EepalSchoolViewsData.php
View file @
c9235f40
...
...
@@ -16,11 +16,13 @@ class EepalSchoolViewsData extends EntityViewsData implements EntityViewsDataInt
public
function
getViewsData
()
{
$data
=
parent
::
getViewsData
();
/*
$data['eepal_school']['table']['base'] = array(
'field' => 'id',
'title' => $this->t('Eepal school'),
'help' => $this->t('The Eepal school ID.'),
);
*/
return
$data
;
}
...
...
drupal/modules/epalreadydata/src/Entity/EepalSpecialtiesInEpal.php
View file @
c9235f40
...
...
@@ -196,24 +196,51 @@ class EepalSpecialtiesInEpal extends ContentEntityBase implements EepalSpecialti
->
setDisplayConfigurable
(
'form'
,
TRUE
)
->
setDisplayConfigurable
(
'view'
,
TRUE
);
$fields
[
'specialty_id'
]
=
BaseFieldDefinition
::
create
(
'integer'
)
->
setLabel
(
t
(
'region_to_belong'
))
->
setDescription
(
t
(
'Περιφερειακή Διεύθυνση στην οποία ανήκει.'
))
->
setRevisionable
(
TRUE
)
->
setSettings
(
array
(
//'max_length' => 2,
'text_processing'
=>
0
,
))
//->setDefaultValue(25)
$fields
[
'epal_id'
]
=
BaseFieldDefinition
::
create
(
'entity_reference'
)
->
setLabel
(
t
(
'Σχολείο επιλογής'
))
->
setDescription
(
t
(
'Σχολείο επιλογής.'
))
->
setSetting
(
'target_type'
,
'eepal_school'
)
->
setSetting
(
'handler'
,
'default'
)
->
setTranslatable
(
TRUE
)
->
setDisplayOptions
(
'view'
,
array
(
'label'
=>
'above
'
,
'type'
=>
'intege
r'
,
//'weight' => -4
,
))
'label'
=>
'hidden
'
,
'type'
=>
'autho
r'
,
'weight'
=>
0
,
))
->
setDisplayOptions
(
'form'
,
array
(
'type'
=>
'integer'
,
//'weight' => -4,
))
'type'
=>
'entity_reference_autocomplete'
,
'weight'
=>
5
,
'settings'
=>
array
(
'match_operator'
=>
'CONTAINS'
,
'size'
=>
'60'
,
'autocomplete_type'
=>
'tags'
,
'placeholder'
=>
''
,
),
))
->
setDisplayConfigurable
(
'form'
,
TRUE
)
->
setDisplayConfigurable
(
'view'
,
TRUE
);
$fields
[
'specialty_id'
]
=
BaseFieldDefinition
::
create
(
'entity_reference'
)
->
setLabel
(
t
(
'Ειδικότητα επιλογής'
))
->
setDescription
(
t
(
'Ειδικότητα επιλογής.'
))
->
setSetting
(
'target_type'
,
'eepal_specialty'
)
->
setSetting
(
'handler'
,
'default'
)
->
setTranslatable
(
TRUE
)
->
setDisplayOptions
(
'view'
,
array
(
'label'
=>
'hidden'
,
'type'
=>
'author'
,
'weight'
=>
0
,
))
->
setDisplayOptions
(
'form'
,
array
(
'type'
=>
'entity_reference_autocomplete'
,
'weight'
=>
5
,
'settings'
=>
array
(
'match_operator'
=>
'CONTAINS'
,
'size'
=>
'60'
,
'autocomplete_type'
=>
'tags'
,
'placeholder'
=>
''
,
),
))
->
setDisplayConfigurable
(
'form'
,
TRUE
)
->
setDisplayConfigurable
(
'view'
,
TRUE
);
...
...
drupal/modules/epalreadydata/src/Entity/EepalSpecialtiesInEpalViewsData.php
View file @
c9235f40
...
...
@@ -16,11 +16,13 @@ class EepalSpecialtiesInEpalViewsData extends EntityViewsData implements EntityV
public
function
getViewsData
()
{
$data
=
parent
::
getViewsData
();
/*
$data['eepal_specialties_in_epal']['table']['base'] = array(
'field' => 'id',
'title' => $this->t('Eepal specialties in epal'),
'help' => $this->t('The Eepal specialties in epal ID.'),
);
*/
return
$data
;
}
...
...
drupal/modules/epalreadydata/src/Entity/EepalSpecialtyViewsData.php
View file @
c9235f40
...
...
@@ -16,11 +16,13 @@ class EepalSpecialtyViewsData extends EntityViewsData implements EntityViewsData
public
function
getViewsData
()
{
$data
=
parent
::
getViewsData
();
/*
$data['eepal_specialty']['table']['base'] = array(
'field' => 'id',
'title' => $this->t('Eepal specialty'),
'help' => $this->t('The Eepal specialty ID.'),
);
*/
return
$data
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment