// ALL WRONG ROUTE ARE REDIRECTED TO THE CUSTOM ERRORS CONTROLLER
- $routes->connect('/*', ['controller' => 'Errors', 'action' => 'error404']);
+ //$routes->connect('/*', ['controller' => 'Errors', 'action' => 'error404']);
$routes->connect('/api/v1/*', ['controller' => 'Errors', 'action' => 'actionMissing']);
+ $routes->connect('/:controller', ['action' => 'index'], ['routeClass' => 'DashedRoute']);
+
/**
* ...and connect the rest of 'Pages' controller's URLs.
*/
<!-- Add any additional test suites you want to run here -->
<testsuites>
<testsuite name="App Test Suite">
- <directory>./tests/TestCase</directory>
+ <directory>./tests/TestCase/Controller</directory>
</testsuite>
<!-- Add plugin test suites here. -->
</testsuites>
$this->loadComponent('RequestHandler');
-
+
+ $this->loadComponent('Flash');
+ $this->loadComponent('Auth', [
+ 'authenticate' => [
+ 'Form' => [
+ 'fields' => [
+ 'username' => 'username',
+ 'password' => 'password'
+ ]
+ ]
+ ],
+ 'loginAction' => [
+ 'controller' => 'Users',
+ 'action' => 'login'
+ ],
+ 'loginRedirect' => [
+ 'controller' => 'Softwares',
+ 'action' => 'index'
+ ],
+ 'logoutRedirect' => [
+ 'controller' => 'Pages',
+ 'action' => 'display',
+ 'home'
+ ]
+ ]);
+
+ //Autorise l'action display pour que notre controller de pages
+ // continue de fonctionner.
+ $this->Auth->allow(['display']);
+
+ }
+
+ public function isAuthorized($user)
+ {
+ // Admin peuvent accéder à chaque action
+ if (isset($user['role']) && ($user['role'] === 'admin')) {
+ return true;
+ }
+
+ // Par défaut refuser
+ return false;
}
*/
public function beforeRender(Event $event)
{
- if (!array_key_exists('_serialize', $this->viewVars) &&
- in_array($this->response->type(), ['application/json', 'application/xml'])
- ) {
- $this->RequestHandler->renderAs($this, 'json');
- $this->set('_serialize', true);
- }
- $this->RequestHandler->renderAs($this, 'json');
-
- $this->set('_serialize', true);
+// if (!array_key_exists('_serialize', $this->viewVars) &&
+// in_array($this->response->type(), ['application/json', 'application/xml'])
+// ) {
+// $this->RequestHandler->renderAs($this, 'json');
+// $this->set('_serialize', true);
+// }
+// $this->RequestHandler->renderAs($this, 'json');
+//
+// $this->set('_serialize', true);
}
*/
public function beforeFilter(Event $event) {
parent::beforeFilter($event);
-
-
}
}
--- /dev/null
+<?php
+namespace App\Controller;
+
+use App\Controller\AppController;
+
+/**
+ * Entity Controller
+ *
+ * @property \App\Model\Table\EntityTable $Entity
+ */
+class EntityController extends AppController
+{
+
+ /**
+ * Index method
+ *
+ * @return void
+ */
+ public function index()
+ {
+ $this->paginate = [
+ 'contain' => ['ENTITies']
+ ];
+ $this->set('entity', $this->paginate($this->Entity));
+ $this->set('_serialize', ['entity']);
+ }
+
+ /**
+ * View method
+ *
+ * @param string|null $id Entity id.
+ * @return void
+ * @throws \Cake\Network\Exception\NotFoundException When record not found.
+ */
+ public function view($id = null)
+ {
+ $entity = $this->Entity->get($id, [
+ 'contain' => ['ENTITies']
+ ]);
+ $this->set('entity', $entity);
+ $this->set('_serialize', ['entity']);
+ }
+
+ /**
+ * Add method
+ *
+ * @return void Redirects on successful add, renders view otherwise.
+ */
+ public function add()
+ {
+ $entity = $this->Entity->newEntity();
+ if ($this->request->is('post')) {
+ $entity = $this->Entity->patchEntity($entity, $this->request->data);
+ if ($this->Entity->save($entity)) {
+ $this->Flash->success(__('The entity has been saved.'));
+ return $this->redirect(['action' => 'index']);
+ } else {
+ $this->Flash->error(__('The entity could not be saved. Please, try again.'));
+ }
+ }
+ $eNTITies = $this->Entity->ENTITies->find('list', ['limit' => 200]);
+ $this->set(compact('entity', 'eNTITies'));
+ $this->set('_serialize', ['entity']);
+ }
+
+ /**
+ * Edit method
+ *
+ * @param string|null $id Entity id.
+ * @return void Redirects on successful edit, renders view otherwise.
+ * @throws \Cake\Network\Exception\NotFoundException When record not found.
+ */
+ public function edit($id = null)
+ {
+ $entity = $this->Entity->get($id, [
+ 'contain' => []
+ ]);
+ if ($this->request->is(['patch', 'post', 'put'])) {
+ $entity = $this->Entity->patchEntity($entity, $this->request->data);
+ if ($this->Entity->save($entity)) {
+ $this->Flash->success(__('The entity has been saved.'));
+ return $this->redirect(['action' => 'index']);
+ } else {
+ $this->Flash->error(__('The entity could not be saved. Please, try again.'));
+ }
+ }
+ $eNTITies = $this->Entity->ENTITies->find('list', ['limit' => 200]);
+ $this->set(compact('entity', 'eNTITies'));
+ $this->set('_serialize', ['entity']);
+ }
+
+ /**
+ * Delete method
+ *
+ * @param string|null $id Entity id.
+ * @return \Cake\Network\Response|null Redirects to index.
+ * @throws \Cake\Network\Exception\NotFoundException When record not found.
+ */
+ public function delete($id = null)
+ {
+ $this->request->allowMethod(['post', 'delete']);
+ $entity = $this->Entity->get($id);
+ if ($this->Entity->delete($entity)) {
+ $this->Flash->success(__('The entity has been deleted.'));
+ } else {
+ $this->Flash->error(__('The entity could not be deleted. Please, try again.'));
+ }
+ return $this->redirect(['action' => 'index']);
+ }
+}
--- /dev/null
+<?php
+namespace App\Controller;
+
+use App\Controller\AppController;
+
+/**
+ * EntitySoftwareRelationship Controller
+ *
+ * @property \App\Model\Table\EntitySoftwareRelationshipTable $EntitySoftwareRelationship
+ */
+class EntitySoftwareRelationshipController extends AppController
+{
+
+ /**
+ * Index method
+ *
+ * @return void
+ */
+ public function index()
+ {
+ $this->paginate = [
+ 'contain' => ['ENTITYSOFTWARERELATIONSHIPSoftwares', 'ENTITYSOFTWARERELATIONSHIPEntities', 'RelationshipType']
+ ];
+ $this->set('entitySoftwareRelationship', $this->paginate($this->EntitySoftwareRelationship));
+ $this->set('_serialize', ['entitySoftwareRelationship']);
+ }
+
+ /**
+ * View method
+ *
+ * @param string|null $id Entity Software Relationship id.
+ * @return void
+ * @throws \Cake\Network\Exception\NotFoundException When record not found.
+ */
+ public function view($id = null)
+ {
+ $entitySoftwareRelationship = $this->EntitySoftwareRelationship->get($id, [
+ 'contain' => ['ENTITYSOFTWARERELATIONSHIPSoftwares', 'ENTITYSOFTWARERELATIONSHIPEntities', 'RelationshipType']
+ ]);
+ $this->set('entitySoftwareRelationship', $entitySoftwareRelationship);
+ $this->set('_serialize', ['entitySoftwareRelationship']);
+ }
+
+ /**
+ * Add method
+ *
+ * @return void Redirects on successful add, renders view otherwise.
+ */
+ public function add()
+ {
+ $entitySoftwareRelationship = $this->EntitySoftwareRelationship->newEntity();
+ if ($this->request->is('post')) {
+ $entitySoftwareRelationship = $this->EntitySoftwareRelationship->patchEntity($entitySoftwareRelationship, $this->request->data);
+ if ($this->EntitySoftwareRelationship->save($entitySoftwareRelationship)) {
+ $this->Flash->success(__('The entity software relationship has been saved.'));
+ return $this->redirect(['action' => 'index']);
+ } else {
+ $this->Flash->error(__('The entity software relationship could not be saved. Please, try again.'));
+ }
+ }
+ $eNTITYSOFTWARERELATIONSHIPSoftwares = $this->EntitySoftwareRelationship->ENTITYSOFTWARERELATIONSHIPSoftwares->find('list', ['limit' => 200]);
+ $eNTITYSOFTWARERELATIONSHIPEntities = $this->EntitySoftwareRelationship->ENTITYSOFTWARERELATIONSHIPEntities->find('list', ['limit' => 200]);
+ $relationshipType = $this->EntitySoftwareRelationship->RelationshipType->find('list', ['limit' => 200]);
+ $this->set(compact('entitySoftwareRelationship', 'eNTITYSOFTWARERELATIONSHIPSoftwares', 'eNTITYSOFTWARERELATIONSHIPEntities', 'relationshipType'));
+ $this->set('_serialize', ['entitySoftwareRelationship']);
+ }
+
+ /**
+ * Edit method
+ *
+ * @param string|null $id Entity Software Relationship id.
+ * @return void Redirects on successful edit, renders view otherwise.
+ * @throws \Cake\Network\Exception\NotFoundException When record not found.
+ */
+ public function edit($id = null)
+ {
+ $entitySoftwareRelationship = $this->EntitySoftwareRelationship->get($id, [
+ 'contain' => []
+ ]);
+ if ($this->request->is(['patch', 'post', 'put'])) {
+ $entitySoftwareRelationship = $this->EntitySoftwareRelationship->patchEntity($entitySoftwareRelationship, $this->request->data);
+ if ($this->EntitySoftwareRelationship->save($entitySoftwareRelationship)) {
+ $this->Flash->success(__('The entity software relationship has been saved.'));
+ return $this->redirect(['action' => 'index']);
+ } else {
+ $this->Flash->error(__('The entity software relationship could not be saved. Please, try again.'));
+ }
+ }
+ $eNTITYSOFTWARERELATIONSHIPSoftwares = $this->EntitySoftwareRelationship->ENTITYSOFTWARERELATIONSHIPSoftwares->find('list', ['limit' => 200]);
+ $eNTITYSOFTWARERELATIONSHIPEntities = $this->EntitySoftwareRelationship->ENTITYSOFTWARERELATIONSHIPEntities->find('list', ['limit' => 200]);
+ $relationshipType = $this->EntitySoftwareRelationship->RelationshipType->find('list', ['limit' => 200]);
+ $this->set(compact('entitySoftwareRelationship', 'eNTITYSOFTWARERELATIONSHIPSoftwares', 'eNTITYSOFTWARERELATIONSHIPEntities', 'relationshipType'));
+ $this->set('_serialize', ['entitySoftwareRelationship']);
+ }
+
+ /**
+ * Delete method
+ *
+ * @param string|null $id Entity Software Relationship id.
+ * @return \Cake\Network\Response|null Redirects to index.
+ * @throws \Cake\Network\Exception\NotFoundException When record not found.
+ */
+ public function delete($id = null)
+ {
+ $this->request->allowMethod(['post', 'delete']);
+ $entitySoftwareRelationship = $this->EntitySoftwareRelationship->get($id);
+ if ($this->EntitySoftwareRelationship->delete($entitySoftwareRelationship)) {
+ $this->Flash->success(__('The entity software relationship has been deleted.'));
+ } else {
+ $this->Flash->error(__('The entity software relationship could not be deleted. Please, try again.'));
+ }
+ return $this->redirect(['action' => 'index']);
+ }
+}
--- /dev/null
+<?php
+namespace App\Controller;
+
+use App\Controller\AppController;
+
+/**
+ * EntityType Controller
+ *
+ * @property \App\Model\Table\EntityTypeTable $EntityType
+ */
+class EntityTypeController extends AppController
+{
+
+ /**
+ * Index method
+ *
+ * @return void
+ */
+ public function index()
+ {
+ $this->paginate = [
+ 'contain' => ['ENTITYTYPEs']
+ ];
+ $this->set('entityType', $this->paginate($this->EntityType));
+ $this->set('_serialize', ['entityType']);
+ }
+
+ /**
+ * View method
+ *
+ * @param string|null $id Entity Type id.
+ * @return void
+ * @throws \Cake\Network\Exception\NotFoundException When record not found.
+ */
+ public function view($id = null)
+ {
+ $entityType = $this->EntityType->get($id, [
+ 'contain' => ['ENTITYTYPEs']
+ ]);
+ $this->set('entityType', $entityType);
+ $this->set('_serialize', ['entityType']);
+ }
+
+ /**
+ * Add method
+ *
+ * @return void Redirects on successful add, renders view otherwise.
+ */
+ public function add()
+ {
+ $entityType = $this->EntityType->newEntity();
+ if ($this->request->is('post')) {
+ $entityType = $this->EntityType->patchEntity($entityType, $this->request->data);
+ if ($this->EntityType->save($entityType)) {
+ $this->Flash->success(__('The entity type has been saved.'));
+ return $this->redirect(['action' => 'index']);
+ } else {
+ $this->Flash->error(__('The entity type could not be saved. Please, try again.'));
+ }
+ }
+ $eNTITYTYPEs = $this->EntityType->ENTITYTYPEs->find('list', ['limit' => 200]);
+ $this->set(compact('entityType', 'eNTITYTYPEs'));
+ $this->set('_serialize', ['entityType']);
+ }
+
+ /**
+ * Edit method
+ *
+ * @param string|null $id Entity Type id.
+ * @return void Redirects on successful edit, renders view otherwise.
+ * @throws \Cake\Network\Exception\NotFoundException When record not found.
+ */
+ public function edit($id = null)
+ {
+ $entityType = $this->EntityType->get($id, [
+ 'contain' => []
+ ]);
+ if ($this->request->is(['patch', 'post', 'put'])) {
+ $entityType = $this->EntityType->patchEntity($entityType, $this->request->data);
+ if ($this->EntityType->save($entityType)) {
+ $this->Flash->success(__('The entity type has been saved.'));
+ return $this->redirect(['action' => 'index']);
+ } else {
+ $this->Flash->error(__('The entity type could not be saved. Please, try again.'));
+ }
+ }
+ $eNTITYTYPEs = $this->EntityType->ENTITYTYPEs->find('list', ['limit' => 200]);
+ $this->set(compact('entityType', 'eNTITYTYPEs'));
+ $this->set('_serialize', ['entityType']);
+ }
+
+ /**
+ * Delete method
+ *
+ * @param string|null $id Entity Type id.
+ * @return \Cake\Network\Response|null Redirects to index.
+ * @throws \Cake\Network\Exception\NotFoundException When record not found.
+ */
+ public function delete($id = null)
+ {
+ $this->request->allowMethod(['post', 'delete']);
+ $entityType = $this->EntityType->get($id);
+ if ($this->EntityType->delete($entityType)) {
+ $this->Flash->success(__('The entity type has been deleted.'));
+ } else {
+ $this->Flash->error(__('The entity type could not be deleted. Please, try again.'));
+ }
+ return $this->redirect(['action' => 'index']);
+ }
+}
--- /dev/null
+<?php
+namespace App\Controller;
+
+use App\Controller\AppController;
+
+/**
+ * License Controller
+ *
+ * @property \App\Model\Table\LicenseTable $License
+ */
+class LicenseController extends AppController
+{
+
+ /**
+ * Index method
+ *
+ * @return void
+ */
+ public function index()
+ {
+ $this->paginate = [
+ 'contain' => ['LICENSEs', 'LicnseType']
+ ];
+ $this->set('license', $this->paginate($this->License));
+ $this->set('_serialize', ['license']);
+ }
+
+ /**
+ * View method
+ *
+ * @param string|null $id License id.
+ * @return void
+ * @throws \Cake\Network\Exception\NotFoundException When record not found.
+ */
+ public function view($id = null)
+ {
+ $license = $this->License->get($id, [
+ 'contain' => ['LICENSEs', 'LicnseType']
+ ]);
+ $this->set('license', $license);
+ $this->set('_serialize', ['license']);
+ }
+
+ /**
+ * Add method
+ *
+ * @return void Redirects on successful add, renders view otherwise.
+ */
+ public function add()
+ {
+ $license = $this->License->newEntity();
+ if ($this->request->is('post')) {
+ $license = $this->License->patchEntity($license, $this->request->data);
+ if ($this->License->save($license)) {
+ $this->Flash->success(__('The license has been saved.'));
+ return $this->redirect(['action' => 'index']);
+ } else {
+ $this->Flash->error(__('The license could not be saved. Please, try again.'));
+ }
+ }
+ $lICENSEs = $this->License->LICENSEs->find('list', ['limit' => 200]);
+ $licnseType = $this->License->LicnseType->find('list', ['limit' => 200]);
+ $this->set(compact('license', 'lICENSEs', 'licnseType'));
+ $this->set('_serialize', ['license']);
+ }
+
+ /**
+ * Edit method
+ *
+ * @param string|null $id License id.
+ * @return void Redirects on successful edit, renders view otherwise.
+ * @throws \Cake\Network\Exception\NotFoundException When record not found.
+ */
+ public function edit($id = null)
+ {
+ $license = $this->License->get($id, [
+ 'contain' => []
+ ]);
+ if ($this->request->is(['patch', 'post', 'put'])) {
+ $license = $this->License->patchEntity($license, $this->request->data);
+ if ($this->License->save($license)) {
+ $this->Flash->success(__('The license has been saved.'));
+ return $this->redirect(['action' => 'index']);
+ } else {
+ $this->Flash->error(__('The license could not be saved. Please, try again.'));
+ }
+ }
+ $lICENSEs = $this->License->LICENSEs->find('list', ['limit' => 200]);
+ $licnseType = $this->License->LicnseType->find('list', ['limit' => 200]);
+ $this->set(compact('license', 'lICENSEs', 'licnseType'));
+ $this->set('_serialize', ['license']);
+ }
+
+ /**
+ * Delete method
+ *
+ * @param string|null $id License id.
+ * @return \Cake\Network\Response|null Redirects to index.
+ * @throws \Cake\Network\Exception\NotFoundException When record not found.
+ */
+ public function delete($id = null)
+ {
+ $this->request->allowMethod(['post', 'delete']);
+ $license = $this->License->get($id);
+ if ($this->License->delete($license)) {
+ $this->Flash->success(__('The license has been deleted.'));
+ } else {
+ $this->Flash->error(__('The license could not be deleted. Please, try again.'));
+ }
+ return $this->redirect(['action' => 'index']);
+ }
+}
--- /dev/null
+<?php
+namespace App\Controller;
+
+use App\Controller\AppController;
+
+/**
+ * Licenses Controller
+ *
+ * @property \App\Model\Table\LicensesTable $Licenses
+ */
+class LicensesController extends AppController
+{
+
+ /**
+ * Index method
+ *
+ * @return void
+ */
+ public function index()
+ {
+ $this->paginate = [
+ 'contain' => ['LicenceTypes']
+ ];
+ $this->set('licenses', $this->paginate($this->Licenses));
+ $this->set('_serialize', ['licenses']);
+ }
+
+ /**
+ * View method
+ *
+ * @param string|null $id License id.
+ * @return void
+ * @throws \Cake\Network\Exception\NotFoundException When record not found.
+ */
+ public function view($id = null)
+ {
+ $license = $this->Licenses->get($id, [
+ 'contain' => ['LicenceTypes']
+ ]);
+ $this->set('license', $license);
+ $this->set('_serialize', ['license']);
+ }
+
+ /**
+ * Add method
+ *
+ * @return void Redirects on successful add, renders view otherwise.
+ */
+ public function add()
+ {
+ $license = $this->Licenses->newEntity();
+ if ($this->request->is('post')) {
+ $license = $this->Licenses->patchEntity($license, $this->request->data);
+ if ($this->Licenses->save($license)) {
+ $this->Flash->success(__('The license has been saved.'));
+ return $this->redirect(['action' => 'index']);
+ } else {
+ $this->Flash->error(__('The license could not be saved. Please, try again.'));
+ }
+ }
+ $licenceTypes = $this->Licenses->LicenceTypes->find('list', ['limit' => 200]);
+ $this->set(compact('license', 'licenceTypes'));
+ $this->set('_serialize', ['license']);
+ }
+
+ /**
+ * Edit method
+ *
+ * @param string|null $id License id.
+ * @return void Redirects on successful edit, renders view otherwise.
+ * @throws \Cake\Network\Exception\NotFoundException When record not found.
+ */
+ public function edit($id = null)
+ {
+ $license = $this->Licenses->get($id, [
+ 'contain' => []
+ ]);
+ if ($this->request->is(['patch', 'post', 'put'])) {
+ $license = $this->Licenses->patchEntity($license, $this->request->data);
+ if ($this->Licenses->save($license)) {
+ $this->Flash->success(__('The license has been saved.'));
+ return $this->redirect(['action' => 'index']);
+ } else {
+ $this->Flash->error(__('The license could not be saved. Please, try again.'));
+ }
+ }
+ $licenceTypes = $this->Licenses->LicenceTypes->find('list', ['limit' => 200]);
+ $this->set(compact('license', 'licenceTypes'));
+ $this->set('_serialize', ['license']);
+ }
+
+ /**
+ * Delete method
+ *
+ * @param string|null $id License id.
+ * @return \Cake\Network\Response|null Redirects to index.
+ * @throws \Cake\Network\Exception\NotFoundException When record not found.
+ */
+ public function delete($id = null)
+ {
+ $this->request->allowMethod(['post', 'delete']);
+ $license = $this->Licenses->get($id);
+ if ($this->Licenses->delete($license)) {
+ $this->Flash->success(__('The license has been deleted.'));
+ } else {
+ $this->Flash->error(__('The license could not be deleted. Please, try again.'));
+ }
+ return $this->redirect(['action' => 'index']);
+ }
+}
--- /dev/null
+<?php
+namespace App\Controller;
+
+use App\Controller\AppController;
+
+/**
+ * LicnseType Controller
+ *
+ * @property \App\Model\Table\LicnseTypeTable $LicnseType
+ */
+class LicnseTypeController extends AppController
+{
+
+ /**
+ * Index method
+ *
+ * @return void
+ */
+ public function index()
+ {
+ $this->paginate = [
+ 'contain' => ['LICENSETYPEs']
+ ];
+ $this->set('licnseType', $this->paginate($this->LicnseType));
+ $this->set('_serialize', ['licnseType']);
+ }
+
+ /**
+ * View method
+ *
+ * @param string|null $id Licnse Type id.
+ * @return void
+ * @throws \Cake\Network\Exception\NotFoundException When record not found.
+ */
+ public function view($id = null)
+ {
+ $licnseType = $this->LicnseType->get($id, [
+ 'contain' => ['LICENSETYPEs']
+ ]);
+ $this->set('licnseType', $licnseType);
+ $this->set('_serialize', ['licnseType']);
+ }
+
+ /**
+ * Add method
+ *
+ * @return void Redirects on successful add, renders view otherwise.
+ */
+ public function add()
+ {
+ $licnseType = $this->LicnseType->newEntity();
+ if ($this->request->is('post')) {
+ $licnseType = $this->LicnseType->patchEntity($licnseType, $this->request->data);
+ if ($this->LicnseType->save($licnseType)) {
+ $this->Flash->success(__('The licnse type has been saved.'));
+ return $this->redirect(['action' => 'index']);
+ } else {
+ $this->Flash->error(__('The licnse type could not be saved. Please, try again.'));
+ }
+ }
+ $lICENSETYPEs = $this->LicnseType->LICENSETYPEs->find('list', ['limit' => 200]);
+ $this->set(compact('licnseType', 'lICENSETYPEs'));
+ $this->set('_serialize', ['licnseType']);
+ }
+
+ /**
+ * Edit method
+ *
+ * @param string|null $id Licnse Type id.
+ * @return void Redirects on successful edit, renders view otherwise.
+ * @throws \Cake\Network\Exception\NotFoundException When record not found.
+ */
+ public function edit($id = null)
+ {
+ $licnseType = $this->LicnseType->get($id, [
+ 'contain' => []
+ ]);
+ if ($this->request->is(['patch', 'post', 'put'])) {
+ $licnseType = $this->LicnseType->patchEntity($licnseType, $this->request->data);
+ if ($this->LicnseType->save($licnseType)) {
+ $this->Flash->success(__('The licnse type has been saved.'));
+ return $this->redirect(['action' => 'index']);
+ } else {
+ $this->Flash->error(__('The licnse type could not be saved. Please, try again.'));
+ }
+ }
+ $lICENSETYPEs = $this->LicnseType->LICENSETYPEs->find('list', ['limit' => 200]);
+ $this->set(compact('licnseType', 'lICENSETYPEs'));
+ $this->set('_serialize', ['licnseType']);
+ }
+
+ /**
+ * Delete method
+ *
+ * @param string|null $id Licnse Type id.
+ * @return \Cake\Network\Response|null Redirects to index.
+ * @throws \Cake\Network\Exception\NotFoundException When record not found.
+ */
+ public function delete($id = null)
+ {
+ $this->request->allowMethod(['post', 'delete']);
+ $licnseType = $this->LicnseType->get($id);
+ if ($this->LicnseType->delete($licnseType)) {
+ $this->Flash->success(__('The licnse type has been deleted.'));
+ } else {
+ $this->Flash->error(__('The licnse type could not be deleted. Please, try again.'));
+ }
+ return $this->redirect(['action' => 'index']);
+ }
+}
--- /dev/null
+<?php
+namespace App\Controller;
+
+use App\Controller\AppController;
+
+/**
+ * RelationshipType Controller
+ *
+ * @property \App\Model\Table\RelationshipTypeTable $RelationshipType
+ */
+class RelationshipTypeController extends AppController
+{
+
+ /**
+ * Index method
+ *
+ * @return void
+ */
+ public function index()
+ {
+ $this->paginate = [
+ 'contain' => ['RELATIONSHIPTYPEs']
+ ];
+ $this->set('relationshipType', $this->paginate($this->RelationshipType));
+ $this->set('_serialize', ['relationshipType']);
+ }
+
+ /**
+ * View method
+ *
+ * @param string|null $id Relationship Type id.
+ * @return void
+ * @throws \Cake\Network\Exception\NotFoundException When record not found.
+ */
+ public function view($id = null)
+ {
+ $relationshipType = $this->RelationshipType->get($id, [
+ 'contain' => ['RELATIONSHIPTYPEs']
+ ]);
+ $this->set('relationshipType', $relationshipType);
+ $this->set('_serialize', ['relationshipType']);
+ }
+
+ /**
+ * Add method
+ *
+ * @return void Redirects on successful add, renders view otherwise.
+ */
+ public function add()
+ {
+ $relationshipType = $this->RelationshipType->newEntity();
+ if ($this->request->is('post')) {
+ $relationshipType = $this->RelationshipType->patchEntity($relationshipType, $this->request->data);
+ if ($this->RelationshipType->save($relationshipType)) {
+ $this->Flash->success(__('The relationship type has been saved.'));
+ return $this->redirect(['action' => 'index']);
+ } else {
+ $this->Flash->error(__('The relationship type could not be saved. Please, try again.'));
+ }
+ }
+ $rELATIONSHIPTYPEs = $this->RelationshipType->RELATIONSHIPTYPEs->find('list', ['limit' => 200]);
+ $this->set(compact('relationshipType', 'rELATIONSHIPTYPEs'));
+ $this->set('_serialize', ['relationshipType']);
+ }
+
+ /**
+ * Edit method
+ *
+ * @param string|null $id Relationship Type id.
+ * @return void Redirects on successful edit, renders view otherwise.
+ * @throws \Cake\Network\Exception\NotFoundException When record not found.
+ */
+ public function edit($id = null)
+ {
+ $relationshipType = $this->RelationshipType->get($id, [
+ 'contain' => []
+ ]);
+ if ($this->request->is(['patch', 'post', 'put'])) {
+ $relationshipType = $this->RelationshipType->patchEntity($relationshipType, $this->request->data);
+ if ($this->RelationshipType->save($relationshipType)) {
+ $this->Flash->success(__('The relationship type has been saved.'));
+ return $this->redirect(['action' => 'index']);
+ } else {
+ $this->Flash->error(__('The relationship type could not be saved. Please, try again.'));
+ }
+ }
+ $rELATIONSHIPTYPEs = $this->RelationshipType->RELATIONSHIPTYPEs->find('list', ['limit' => 200]);
+ $this->set(compact('relationshipType', 'rELATIONSHIPTYPEs'));
+ $this->set('_serialize', ['relationshipType']);
+ }
+
+ /**
+ * Delete method
+ *
+ * @param string|null $id Relationship Type id.
+ * @return \Cake\Network\Response|null Redirects to index.
+ * @throws \Cake\Network\Exception\NotFoundException When record not found.
+ */
+ public function delete($id = null)
+ {
+ $this->request->allowMethod(['post', 'delete']);
+ $relationshipType = $this->RelationshipType->get($id);
+ if ($this->RelationshipType->delete($relationshipType)) {
+ $this->Flash->success(__('The relationship type has been deleted.'));
+ } else {
+ $this->Flash->error(__('The relationship type could not be deleted. Please, try again.'));
+ }
+ return $this->redirect(['action' => 'index']);
+ }
+}
--- /dev/null
+<?php
+namespace App\Controller;
+
+use App\Controller\AppController;
+
+/**
+ * RelationshipTypes Controller
+ *
+ * @property \App\Model\Table\RelationshipTypesTable $RelationshipTypes
+ */
+class RelationshipTypesController extends AppController
+{
+
+ /**
+ * Index method
+ *
+ * @return void
+ */
+ public function index()
+ {
+ $this->set('relationshipTypes', $this->paginate($this->RelationshipTypes));
+ $this->set('_serialize', ['relationshipTypes']);
+ }
+
+ /**
+ * View method
+ *
+ * @param string|null $id Relationship Type id.
+ * @return void
+ * @throws \Cake\Network\Exception\NotFoundException When record not found.
+ */
+ public function view($id = null)
+ {
+ $relationshipType = $this->RelationshipTypes->get($id, [
+ 'contain' => ['SoftwaresRelationships', 'UsersRelationships']
+ ]);
+ $this->set('relationshipType', $relationshipType);
+ $this->set('_serialize', ['relationshipType']);
+ }
+
+ /**
+ * Add method
+ *
+ * @return void Redirects on successful add, renders view otherwise.
+ */
+ public function add()
+ {
+ $relationshipType = $this->RelationshipTypes->newEntity();
+ if ($this->request->is('post')) {
+ $relationshipType = $this->RelationshipTypes->patchEntity($relationshipType, $this->request->data);
+ if ($this->RelationshipTypes->save($relationshipType)) {
+ $this->Flash->success(__('The relationship type has been saved.'));
+ return $this->redirect(['action' => 'index']);
+ } else {
+ $this->Flash->error(__('The relationship type could not be saved. Please, try again.'));
+ }
+ }
+ $this->set(compact('relationshipType'));
+ $this->set('_serialize', ['relationshipType']);
+ }
+
+ /**
+ * Edit method
+ *
+ * @param string|null $id Relationship Type id.
+ * @return void Redirects on successful edit, renders view otherwise.
+ * @throws \Cake\Network\Exception\NotFoundException When record not found.
+ */
+ public function edit($id = null)
+ {
+ $relationshipType = $this->RelationshipTypes->get($id, [
+ 'contain' => []
+ ]);
+ if ($this->request->is(['patch', 'post', 'put'])) {
+ $relationshipType = $this->RelationshipTypes->patchEntity($relationshipType, $this->request->data);
+ if ($this->RelationshipTypes->save($relationshipType)) {
+ $this->Flash->success(__('The relationship type has been saved.'));
+ return $this->redirect(['action' => 'index']);
+ } else {
+ $this->Flash->error(__('The relationship type could not be saved. Please, try again.'));
+ }
+ }
+ $this->set(compact('relationshipType'));
+ $this->set('_serialize', ['relationshipType']);
+ }
+
+ /**
+ * Delete method
+ *
+ * @param string|null $id Relationship Type id.
+ * @return \Cake\Network\Response|null Redirects to index.
+ * @throws \Cake\Network\Exception\NotFoundException When record not found.
+ */
+ public function delete($id = null)
+ {
+ $this->request->allowMethod(['post', 'delete']);
+ $relationshipType = $this->RelationshipTypes->get($id);
+ if ($this->RelationshipTypes->delete($relationshipType)) {
+ $this->Flash->success(__('The relationship type has been deleted.'));
+ } else {
+ $this->Flash->error(__('The relationship type could not be deleted. Please, try again.'));
+ }
+ return $this->redirect(['action' => 'index']);
+ }
+}
--- /dev/null
+<?php
+namespace App\Controller;
+
+use App\Controller\AppController;
+
+/**
+ * Review Controller
+ *
+ * @property \App\Model\Table\ReviewTable $Review
+ */
+class ReviewController extends AppController
+{
+
+ /**
+ * Index method
+ *
+ * @return void
+ */
+ public function index()
+ {
+ $this->paginate = [
+ 'contain' => ['REVIEWs', 'REVIEWEntities', 'REVIEWSoftwares']
+ ];
+ $this->set('review', $this->paginate($this->Review));
+ $this->set('_serialize', ['review']);
+ }
+
+ /**
+ * View method
+ *
+ * @param string|null $id Review id.
+ * @return void
+ * @throws \Cake\Network\Exception\NotFoundException When record not found.
+ */
+ public function view($id = null)
+ {
+ $review = $this->Review->get($id, [
+ 'contain' => ['REVIEWs', 'REVIEWEntities', 'REVIEWSoftwares']
+ ]);
+ $this->set('review', $review);
+ $this->set('_serialize', ['review']);
+ }
+
+ /**
+ * Add method
+ *
+ * @return void Redirects on successful add, renders view otherwise.
+ */
+ public function add()
+ {
+ $review = $this->Review->newEntity();
+ if ($this->request->is('post')) {
+ $review = $this->Review->patchEntity($review, $this->request->data);
+ if ($this->Review->save($review)) {
+ $this->Flash->success(__('The review has been saved.'));
+ return $this->redirect(['action' => 'index']);
+ } else {
+ $this->Flash->error(__('The review could not be saved. Please, try again.'));
+ }
+ }
+ $rEVIEWs = $this->Review->REVIEWs->find('list', ['limit' => 200]);
+ $rEVIEWEntities = $this->Review->REVIEWEntities->find('list', ['limit' => 200]);
+ $rEVIEWSoftwares = $this->Review->REVIEWSoftwares->find('list', ['limit' => 200]);
+ $this->set(compact('review', 'rEVIEWs', 'rEVIEWEntities', 'rEVIEWSoftwares'));
+ $this->set('_serialize', ['review']);
+ }
+
+ /**
+ * Edit method
+ *
+ * @param string|null $id Review id.
+ * @return void Redirects on successful edit, renders view otherwise.
+ * @throws \Cake\Network\Exception\NotFoundException When record not found.
+ */
+ public function edit($id = null)
+ {
+ $review = $this->Review->get($id, [
+ 'contain' => []
+ ]);
+ if ($this->request->is(['patch', 'post', 'put'])) {
+ $review = $this->Review->patchEntity($review, $this->request->data);
+ if ($this->Review->save($review)) {
+ $this->Flash->success(__('The review has been saved.'));
+ return $this->redirect(['action' => 'index']);
+ } else {
+ $this->Flash->error(__('The review could not be saved. Please, try again.'));
+ }
+ }
+ $rEVIEWs = $this->Review->REVIEWs->find('list', ['limit' => 200]);
+ $rEVIEWEntities = $this->Review->REVIEWEntities->find('list', ['limit' => 200]);
+ $rEVIEWSoftwares = $this->Review->REVIEWSoftwares->find('list', ['limit' => 200]);
+ $this->set(compact('review', 'rEVIEWs', 'rEVIEWEntities', 'rEVIEWSoftwares'));
+ $this->set('_serialize', ['review']);
+ }
+
+ /**
+ * Delete method
+ *
+ * @param string|null $id Review id.
+ * @return \Cake\Network\Response|null Redirects to index.
+ * @throws \Cake\Network\Exception\NotFoundException When record not found.
+ */
+ public function delete($id = null)
+ {
+ $this->request->allowMethod(['post', 'delete']);
+ $review = $this->Review->get($id);
+ if ($this->Review->delete($review)) {
+ $this->Flash->success(__('The review has been deleted.'));
+ } else {
+ $this->Flash->error(__('The review could not be deleted. Please, try again.'));
+ }
+ return $this->redirect(['action' => 'index']);
+ }
+}
--- /dev/null
+<?php
+namespace App\Controller;
+
+use App\Controller\AppController;
+
+/**
+ * Reviews Controller
+ *
+ * @property \App\Model\Table\ReviewsTable $Reviews
+ */
+class ReviewsController extends AppController
+{
+
+ /**
+ * Index method
+ *
+ * @return void
+ */
+ public function index()
+ {
+ $this->paginate = [
+ 'contain' => ['Users', 'Softwares']
+ ];
+ $this->set('reviews', $this->paginate($this->Reviews));
+ $this->set('_serialize', ['reviews']);
+ }
+
+ /**
+ * View method
+ *
+ * @param string|null $id Review id.
+ * @return void
+ * @throws \Cake\Network\Exception\NotFoundException When record not found.
+ */
+ public function view($id = null)
+ {
+ $review = $this->Reviews->get($id, [
+ 'contain' => ['Users', 'Softwares']
+ ]);
+ $this->set('review', $review);
+ $this->set('_serialize', ['review']);
+ }
+
+ /**
+ * Add method
+ *
+ * @return void Redirects on successful add, renders view otherwise.
+ */
+ public function add()
+ {
+ $review = $this->Reviews->newEntity();
+ if ($this->request->is('post')) {
+ $review = $this->Reviews->patchEntity($review, $this->request->data);
+ if ($this->Reviews->save($review)) {
+ $this->Flash->success(__('The review has been saved.'));
+ return $this->redirect(['action' => 'index']);
+ } else {
+ $this->Flash->error(__('The review could not be saved. Please, try again.'));
+ }
+ }
+ $users = $this->Reviews->Users->find('list', ['limit' => 200]);
+ $softwares = $this->Reviews->Softwares->find('list', ['limit' => 200]);
+ $this->set(compact('review', 'users', 'softwares'));
+ $this->set('_serialize', ['review']);
+ }
+
+ /**
+ * Edit method
+ *
+ * @param string|null $id Review id.
+ * @return void Redirects on successful edit, renders view otherwise.
+ * @throws \Cake\Network\Exception\NotFoundException When record not found.
+ */
+ public function edit($id = null)
+ {
+ $review = $this->Reviews->get($id, [
+ 'contain' => []
+ ]);
+ if ($this->request->is(['patch', 'post', 'put'])) {
+ $review = $this->Reviews->patchEntity($review, $this->request->data);
+ if ($this->Reviews->save($review)) {
+ $this->Flash->success(__('The review has been saved.'));
+ return $this->redirect(['action' => 'index']);
+ } else {
+ $this->Flash->error(__('The review could not be saved. Please, try again.'));
+ }
+ }
+ $users = $this->Reviews->Users->find('list', ['limit' => 200]);
+ $softwares = $this->Reviews->Softwares->find('list', ['limit' => 200]);
+ $this->set(compact('review', 'users', 'softwares'));
+ $this->set('_serialize', ['review']);
+ }
+
+ /**
+ * Delete method
+ *
+ * @param string|null $id Review id.
+ * @return \Cake\Network\Response|null Redirects to index.
+ * @throws \Cake\Network\Exception\NotFoundException When record not found.
+ */
+ public function delete($id = null)
+ {
+ $this->request->allowMethod(['post', 'delete']);
+ $review = $this->Reviews->get($id);
+ if ($this->Reviews->delete($review)) {
+ $this->Flash->success(__('The review has been deleted.'));
+ } else {
+ $this->Flash->error(__('The review could not be deleted. Please, try again.'));
+ }
+ return $this->redirect(['action' => 'index']);
+ }
+}
--- /dev/null
+<?php
+namespace App\Controller;
+
+use App\Controller\AppController;
+
+/**
+ * Screenshots Controller
+ *
+ * @property \App\Model\Table\ScreenshotsTable $Screenshots
+ */
+class ScreenshotsController extends AppController
+{
+
+ /**
+ * Index method
+ *
+ * @return void
+ */
+ public function index()
+ {
+ $this->paginate = [
+ 'contain' => ['Softwares']
+ ];
+ $this->set('screenshots', $this->paginate($this->Screenshots));
+ $this->set('_serialize', ['screenshots']);
+ }
+
+ /**
+ * View method
+ *
+ * @param string|null $id Screenshot id.
+ * @return void
+ * @throws \Cake\Network\Exception\NotFoundException When record not found.
+ */
+ public function view($id = null)
+ {
+ $screenshot = $this->Screenshots->get($id, [
+ 'contain' => ['Softwares']
+ ]);
+ $this->set('screenshot', $screenshot);
+ $this->set('_serialize', ['screenshot']);
+ }
+
+ /**
+ * Add method
+ *
+ * @return void Redirects on successful add, renders view otherwise.
+ */
+ public function add()
+ {
+ $screenshot = $this->Screenshots->newEntity();
+ if ($this->request->is('post')) {
+ $screenshot = $this->Screenshots->patchEntity($screenshot, $this->request->data);
+ if ($this->Screenshots->save($screenshot)) {
+ $this->Flash->success(__('The screenshot has been saved.'));
+ return $this->redirect(['action' => 'index']);
+ } else {
+ $this->Flash->error(__('The screenshot could not be saved. Please, try again.'));
+ }
+ }
+ $softwares = $this->Screenshots->Softwares->find('list', ['limit' => 200]);
+ $this->set(compact('screenshot', 'softwares'));
+ $this->set('_serialize', ['screenshot']);
+ }
+
+ /**
+ * Edit method
+ *
+ * @param string|null $id Screenshot id.
+ * @return void Redirects on successful edit, renders view otherwise.
+ * @throws \Cake\Network\Exception\NotFoundException When record not found.
+ */
+ public function edit($id = null)
+ {
+ $screenshot = $this->Screenshots->get($id, [
+ 'contain' => []
+ ]);
+ if ($this->request->is(['patch', 'post', 'put'])) {
+ $screenshot = $this->Screenshots->patchEntity($screenshot, $this->request->data);
+ if ($this->Screenshots->save($screenshot)) {
+ $this->Flash->success(__('The screenshot has been saved.'));
+ return $this->redirect(['action' => 'index']);
+ } else {
+ $this->Flash->error(__('The screenshot could not be saved. Please, try again.'));
+ }
+ }
+ $softwares = $this->Screenshots->Softwares->find('list', ['limit' => 200]);
+ $this->set(compact('screenshot', 'softwares'));
+ $this->set('_serialize', ['screenshot']);
+ }
+
+ /**
+ * Delete method
+ *
+ * @param string|null $id Screenshot id.
+ * @return \Cake\Network\Response|null Redirects to index.
+ * @throws \Cake\Network\Exception\NotFoundException When record not found.
+ */
+ public function delete($id = null)
+ {
+ $this->request->allowMethod(['post', 'delete']);
+ $screenshot = $this->Screenshots->get($id);
+ if ($this->Screenshots->delete($screenshot)) {
+ $this->Flash->success(__('The screenshot has been deleted.'));
+ } else {
+ $this->Flash->error(__('The screenshot could not be deleted. Please, try again.'));
+ }
+ return $this->redirect(['action' => 'index']);
+ }
+}
--- /dev/null
+<?php
+namespace App\Controller;
+
+use App\Controller\AppController;
+
+/**
+ * Software Controller
+ *
+ * @property \App\Model\Table\SoftwareTable $Software
+ */
+class SoftwareController extends AppController
+{
+
+ /**
+ * Index method
+ *
+ * @return void
+ */
+ public function index()
+ {
+ $this->paginate = [
+ 'contain' => ['SOFTWAREs']
+ ];
+ $this->set('software', $this->paginate($this->Software));
+ $this->set('_serialize', ['software']);
+ }
+
+ /**
+ * View method
+ *
+ * @param string|null $id Software id.
+ * @return void
+ * @throws \Cake\Network\Exception\NotFoundException When record not found.
+ */
+ public function view($id = null)
+ {
+ $software = $this->Software->get($id, [
+ 'contain' => ['SOFTWAREs']
+ ]);
+ $this->set('software', $software);
+ $this->set('_serialize', ['software']);
+ }
+
+ /**
+ * Add method
+ *
+ * @return void Redirects on successful add, renders view otherwise.
+ */
+ public function add()
+ {
+ $software = $this->Software->newEntity();
+ if ($this->request->is('post')) {
+ $software = $this->Software->patchEntity($software, $this->request->data);
+ if ($this->Software->save($software)) {
+ $this->Flash->success(__('The software has been saved.'));
+ return $this->redirect(['action' => 'index']);
+ } else {
+ $this->Flash->error(__('The software could not be saved. Please, try again.'));
+ }
+ }
+ $sOFTWAREs = $this->Software->SOFTWAREs->find('list', ['limit' => 200]);
+ $this->set(compact('software', 'sOFTWAREs'));
+ $this->set('_serialize', ['software']);
+ }
+
+ /**
+ * Edit method
+ *
+ * @param string|null $id Software id.
+ * @return void Redirects on successful edit, renders view otherwise.
+ * @throws \Cake\Network\Exception\NotFoundException When record not found.
+ */
+ public function edit($id = null)
+ {
+ $software = $this->Software->get($id, [
+ 'contain' => []
+ ]);
+ if ($this->request->is(['patch', 'post', 'put'])) {
+ $software = $this->Software->patchEntity($software, $this->request->data);
+ if ($this->Software->save($software)) {
+ $this->Flash->success(__('The software has been saved.'));
+ return $this->redirect(['action' => 'index']);
+ } else {
+ $this->Flash->error(__('The software could not be saved. Please, try again.'));
+ }
+ }
+ $sOFTWAREs = $this->Software->SOFTWAREs->find('list', ['limit' => 200]);
+ $this->set(compact('software', 'sOFTWAREs'));
+ $this->set('_serialize', ['software']);
+ }
+
+ /**
+ * Delete method
+ *
+ * @param string|null $id Software id.
+ * @return \Cake\Network\Response|null Redirects to index.
+ * @throws \Cake\Network\Exception\NotFoundException When record not found.
+ */
+ public function delete($id = null)
+ {
+ $this->request->allowMethod(['post', 'delete']);
+ $software = $this->Software->get($id);
+ if ($this->Software->delete($software)) {
+ $this->Flash->success(__('The software has been deleted.'));
+ } else {
+ $this->Flash->error(__('The software could not be deleted. Please, try again.'));
+ }
+ return $this->redirect(['action' => 'index']);
+ }
+}
--- /dev/null
+<?php
+namespace App\Controller;
+
+use App\Controller\AppController;
+
+/**
+ * SoftwareRelationship Controller
+ *
+ * @property \App\Model\Table\SoftwareRelationshipTable $SoftwareRelationship
+ */
+class SoftwareRelationshipController extends AppController
+{
+
+ /**
+ * Index method
+ *
+ * @return void
+ */
+ public function index()
+ {
+ $this->set('softwareRelationship', $this->paginate($this->SoftwareRelationship));
+ $this->set('_serialize', ['softwareRelationship']);
+ }
+
+ /**
+ * View method
+ *
+ * @param string|null $id Software Relationship id.
+ * @return void
+ * @throws \Cake\Network\Exception\NotFoundException When record not found.
+ */
+ public function view($id = null)
+ {
+ $softwareRelationship = $this->SoftwareRelationship->get($id, [
+ 'contain' => []
+ ]);
+ $this->set('softwareRelationship', $softwareRelationship);
+ $this->set('_serialize', ['softwareRelationship']);
+ }
+
+ /**
+ * Add method
+ *
+ * @return void Redirects on successful add, renders view otherwise.
+ */
+ public function add()
+ {
+ $softwareRelationship = $this->SoftwareRelationship->newEntity();
+ if ($this->request->is('post')) {
+ $softwareRelationship = $this->SoftwareRelationship->patchEntity($softwareRelationship, $this->request->data);
+ if ($this->SoftwareRelationship->save($softwareRelationship)) {
+ $this->Flash->success(__('The software relationship has been saved.'));
+ return $this->redirect(['action' => 'index']);
+ } else {
+ $this->Flash->error(__('The software relationship could not be saved. Please, try again.'));
+ }
+ }
+ $this->set(compact('softwareRelationship'));
+ $this->set('_serialize', ['softwareRelationship']);
+ }
+
+ /**
+ * Edit method
+ *
+ * @param string|null $id Software Relationship id.
+ * @return void Redirects on successful edit, renders view otherwise.
+ * @throws \Cake\Network\Exception\NotFoundException When record not found.
+ */
+ public function edit($id = null)
+ {
+ $softwareRelationship = $this->SoftwareRelationship->get($id, [
+ 'contain' => []
+ ]);
+ if ($this->request->is(['patch', 'post', 'put'])) {
+ $softwareRelationship = $this->SoftwareRelationship->patchEntity($softwareRelationship, $this->request->data);
+ if ($this->SoftwareRelationship->save($softwareRelationship)) {
+ $this->Flash->success(__('The software relationship has been saved.'));
+ return $this->redirect(['action' => 'index']);
+ } else {
+ $this->Flash->error(__('The software relationship could not be saved. Please, try again.'));
+ }
+ }
+ $this->set(compact('softwareRelationship'));
+ $this->set('_serialize', ['softwareRelationship']);
+ }
+
+ /**
+ * Delete method
+ *
+ * @param string|null $id Software Relationship id.
+ * @return \Cake\Network\Response|null Redirects to index.
+ * @throws \Cake\Network\Exception\NotFoundException When record not found.
+ */
+ public function delete($id = null)
+ {
+ $this->request->allowMethod(['post', 'delete']);
+ $softwareRelationship = $this->SoftwareRelationship->get($id);
+ if ($this->SoftwareRelationship->delete($softwareRelationship)) {
+ $this->Flash->success(__('The software relationship has been deleted.'));
+ } else {
+ $this->Flash->error(__('The software relationship could not be deleted. Please, try again.'));
+ }
+ return $this->redirect(['action' => 'index']);
+ }
+}
--- /dev/null
+<?php
+namespace App\Controller;
+
+use App\Controller\AppController;
+
+/**
+ * Softwares Controller
+ *
+ * @property \App\Model\Table\SoftwaresTable $Softwares
+ */
+class SoftwaresController extends AppController
+{
+
+ /**
+ * Index method
+ *
+ * @return void
+ */
+ public function index()
+ {
+ $this->paginate = [
+ 'contain' => ['Licenses']
+ ];
+ $this->set('softwares', $this->paginate($this->Softwares));
+ $this->set('_serialize', ['softwares']);
+ }
+
+ /**
+ * View method
+ *
+ * @param string|null $id Software id.
+ * @return void
+ * @throws \Cake\Network\Exception\NotFoundException When record not found.
+ */
+ public function view($id = null)
+ {
+ $software = $this->Softwares->get($id, [
+ 'contain' => ['Licenses']
+ ]);
+ $this->set('software', $software);
+ $this->set('_serialize', ['software']);
+ }
+
+ /**
+ * Add method
+ *
+ * @return void Redirects on successful add, renders view otherwise.
+ */
+ public function add()
+ {
+ $software = $this->Softwares->newEntity();
+ if ($this->request->is('post')) {
+ $software = $this->Softwares->patchEntity($software, $this->request->data);
+ if ($this->Softwares->save($software)) {
+ $this->Flash->success(__('The software has been saved.'));
+ return $this->redirect(['action' => 'index']);
+ } else {
+ $this->Flash->error(__('The software could not be saved. Please, try again.'));
+ }
+ }
+ $licenses = $this->Softwares->Licenses->find('list', ['limit' => 200]);
+ $this->set(compact('software', 'licenses'));
+ $this->set('_serialize', ['software']);
+ }
+
+ /**
+ * Edit method
+ *
+ * @param string|null $id Software id.
+ * @return void Redirects on successful edit, renders view otherwise.
+ * @throws \Cake\Network\Exception\NotFoundException When record not found.
+ */
+ public function edit($id = null)
+ {
+ $software = $this->Softwares->get($id, [
+ 'contain' => []
+ ]);
+ if ($this->request->is(['patch', 'post', 'put'])) {
+ $software = $this->Softwares->patchEntity($software, $this->request->data);
+ if ($this->Softwares->save($software)) {
+ $this->Flash->success(__('The software has been saved.'));
+ return $this->redirect(['action' => 'index']);
+ } else {
+ $this->Flash->error(__('The software could not be saved. Please, try again.'));
+ }
+ }
+ $licenses = $this->Softwares->Licenses->find('list', ['limit' => 200]);
+ $this->set(compact('software', 'licenses'));
+ $this->set('_serialize', ['software']);
+ }
+
+ /**
+ * Delete method
+ *
+ * @param string|null $id Software id.
+ * @return \Cake\Network\Response|null Redirects to index.
+ * @throws \Cake\Network\Exception\NotFoundException When record not found.
+ */
+ public function delete($id = null)
+ {
+ $this->request->allowMethod(['post', 'delete']);
+ $software = $this->Softwares->get($id);
+ if ($this->Softwares->delete($software)) {
+ $this->Flash->success(__('The software has been deleted.'));
+ } else {
+ $this->Flash->error(__('The software could not be deleted. Please, try again.'));
+ }
+ return $this->redirect(['action' => 'index']);
+ }
+
+ /**
+ * Manage all rights for the controllers' actions.
+ * Returns true if the user can use the currrent action, FALSE otherwise.
+ * Returns true for add a project if the user is connected
+ * Returns true for edit and delete action if the user is owner.
+ * @param Array $user
+ * @return boolean
+ */
+ public function isAuthorized($user)
+ {
+ // All registered users can add projects
+ if ($this->request->action === 'add') {
+ return true;
+ }
+
+ // The owner of a software can edit and delete the software.
+ if (in_array($this->request->action, ['edit', 'delete'])) {
+ $softwareId = (int)$this->request->params['pass'][0];
+ if ($this->Softwares->isOwnedBy($softwareId, $user['id'])) {
+ return true;
+ }
+ }
+
+ return parent::isAuthorized($user);
+ }
+}
--- /dev/null
+<?php
+namespace App\Controller;
+
+use App\Controller\AppController;
+
+/**
+ * SoftwaresRelationships Controller
+ *
+ * @property \App\Model\Table\SoftwaresRelationshipsTable $SoftwaresRelationships
+ */
+class SoftwaresRelationshipsController extends AppController
+{
+
+ /**
+ * Index method
+ *
+ * @return void
+ */
+ public function index()
+ {
+ $this->paginate = [
+ 'contain' => ['Softwares', 'Recipients', 'RelationshipTypes']
+ ];
+ $this->set('softwaresRelationships', $this->paginate($this->SoftwaresRelationships));
+ $this->set('_serialize', ['softwaresRelationships']);
+ }
+
+ /**
+ * View method
+ *
+ * @param string|null $id Softwares Relationship id.
+ * @return void
+ * @throws \Cake\Network\Exception\NotFoundException When record not found.
+ */
+ public function view($id = null)
+ {
+ $softwaresRelationship = $this->SoftwaresRelationships->get($id, [
+ 'contain' => ['Softwares', 'Recipients', 'RelationshipTypes']
+ ]);
+ $this->set('softwaresRelationship', $softwaresRelationship);
+ $this->set('_serialize', ['softwaresRelationship']);
+ }
+
+ /**
+ * Add method
+ *
+ * @return void Redirects on successful add, renders view otherwise.
+ */
+ public function add()
+ {
+ $softwaresRelationship = $this->SoftwaresRelationships->newEntity();
+ if ($this->request->is('post')) {
+ $softwaresRelationship = $this->SoftwaresRelationships->patchEntity($softwaresRelationship, $this->request->data);
+ if ($this->SoftwaresRelationships->save($softwaresRelationship)) {
+ $this->Flash->success(__('The softwares relationship has been saved.'));
+ return $this->redirect(['action' => 'index']);
+ } else {
+ $this->Flash->error(__('The softwares relationship could not be saved. Please, try again.'));
+ }
+ }
+ $softwares = $this->SoftwaresRelationships->Softwares->find('list', ['limit' => 200]);
+ $recipients = $this->SoftwaresRelationships->Recipients->find('list', ['limit' => 200]);
+ $relationshipTypes = $this->SoftwaresRelationships->RelationshipTypes->find('list', ['limit' => 200]);
+ $this->set(compact('softwaresRelationship', 'softwares', 'recipients', 'relationshipTypes'));
+ $this->set('_serialize', ['softwaresRelationship']);
+ }
+
+ /**
+ * Edit method
+ *
+ * @param string|null $id Softwares Relationship id.
+ * @return void Redirects on successful edit, renders view otherwise.
+ * @throws \Cake\Network\Exception\NotFoundException When record not found.
+ */
+ public function edit($id = null)
+ {
+ $softwaresRelationship = $this->SoftwaresRelationships->get($id, [
+ 'contain' => []
+ ]);
+ if ($this->request->is(['patch', 'post', 'put'])) {
+ $softwaresRelationship = $this->SoftwaresRelationships->patchEntity($softwaresRelationship, $this->request->data);
+ if ($this->SoftwaresRelationships->save($softwaresRelationship)) {
+ $this->Flash->success(__('The softwares relationship has been saved.'));
+ return $this->redirect(['action' => 'index']);
+ } else {
+ $this->Flash->error(__('The softwares relationship could not be saved. Please, try again.'));
+ }
+ }
+ $softwares = $this->SoftwaresRelationships->Softwares->find('list', ['limit' => 200]);
+ $recipients = $this->SoftwaresRelationships->Recipients->find('list', ['limit' => 200]);
+ $relationshipTypes = $this->SoftwaresRelationships->RelationshipTypes->find('list', ['limit' => 200]);
+ $this->set(compact('softwaresRelationship', 'softwares', 'recipients', 'relationshipTypes'));
+ $this->set('_serialize', ['softwaresRelationship']);
+ }
+
+ /**
+ * Delete method
+ *
+ * @param string|null $id Softwares Relationship id.
+ * @return \Cake\Network\Response|null Redirects to index.
+ * @throws \Cake\Network\Exception\NotFoundException When record not found.
+ */
+ public function delete($id = null)
+ {
+ $this->request->allowMethod(['post', 'delete']);
+ $softwaresRelationship = $this->SoftwaresRelationships->get($id);
+ if ($this->SoftwaresRelationships->delete($softwaresRelationship)) {
+ $this->Flash->success(__('The softwares relationship has been deleted.'));
+ } else {
+ $this->Flash->error(__('The softwares relationship could not be deleted. Please, try again.'));
+ }
+ return $this->redirect(['action' => 'index']);
+ }
+}
--- /dev/null
+<?php
+namespace App\Controller;
+
+use App\Controller\AppController;
+
+/**
+ * UserTypes Controller
+ *
+ * @property \App\Model\Table\UserTypesTable $UserTypes
+ */
+class UserTypesController extends AppController
+{
+
+ /**
+ * Index method
+ *
+ * @return void
+ */
+ public function index()
+ {
+ $this->set('userTypes', $this->paginate($this->UserTypes));
+ $this->set('_serialize', ['userTypes']);
+ }
+
+ /**
+ * View method
+ *
+ * @param string|null $id User Type id.
+ * @return void
+ * @throws \Cake\Network\Exception\NotFoundException When record not found.
+ */
+ public function view($id = null)
+ {
+ $userType = $this->UserTypes->get($id, [
+ 'contain' => ['Users']
+ ]);
+ $this->set('userType', $userType);
+ $this->set('_serialize', ['userType']);
+ }
+
+ /**
+ * Add method
+ *
+ * @return void Redirects on successful add, renders view otherwise.
+ */
+ public function add()
+ {
+ $userType = $this->UserTypes->newEntity();
+ if ($this->request->is('post')) {
+ $userType = $this->UserTypes->patchEntity($userType, $this->request->data);
+ if ($this->UserTypes->save($userType)) {
+ $this->Flash->success(__('The user type has been saved.'));
+ return $this->redirect(['action' => 'index']);
+ } else {
+ $this->Flash->error(__('The user type could not be saved. Please, try again.'));
+ }
+ }
+ $this->set(compact('userType'));
+ $this->set('_serialize', ['userType']);
+ }
+
+ /**
+ * Edit method
+ *
+ * @param string|null $id User Type id.
+ * @return void Redirects on successful edit, renders view otherwise.
+ * @throws \Cake\Network\Exception\NotFoundException When record not found.
+ */
+ public function edit($id = null)
+ {
+ $userType = $this->UserTypes->get($id, [
+ 'contain' => []
+ ]);
+ if ($this->request->is(['patch', 'post', 'put'])) {
+ $userType = $this->UserTypes->patchEntity($userType, $this->request->data);
+ if ($this->UserTypes->save($userType)) {
+ $this->Flash->success(__('The user type has been saved.'));
+ return $this->redirect(['action' => 'index']);
+ } else {
+ $this->Flash->error(__('The user type could not be saved. Please, try again.'));
+ }
+ }
+ $this->set(compact('userType'));
+ $this->set('_serialize', ['userType']);
+ }
+
+ /**
+ * Delete method
+ *
+ * @param string|null $id User Type id.
+ * @return \Cake\Network\Response|null Redirects to index.
+ * @throws \Cake\Network\Exception\NotFoundException When record not found.
+ */
+ public function delete($id = null)
+ {
+ $this->request->allowMethod(['post', 'delete']);
+ $userType = $this->UserTypes->get($id);
+ if ($this->UserTypes->delete($userType)) {
+ $this->Flash->success(__('The user type has been deleted.'));
+ } else {
+ $this->Flash->error(__('The user type could not be deleted. Please, try again.'));
+ }
+ return $this->redirect(['action' => 'index']);
+ }
+}
--- /dev/null
+<?php
+namespace App\Controller;
+
+use App\Controller\AppController;
+use Cake\Event\Event;
+
+/**
+ * Users Controller
+ *
+ * @property \App\Model\Table\UsersTable $Users
+ */
+class UsersController extends AppController
+{
+
+ public function beforeFilter(Event $event)
+ {
+ parent::beforeFilter($event);
+ $this->Auth->allow('add');
+
+ }
+
+
+ /**
+ * Index method
+ *
+ * @return void
+ */
+ public function index()
+ {
+ $this->paginate = [
+ 'contain' => ['UserTypes']
+ ];
+ $this->set('users', $this->paginate($this->Users));
+ $this->set('_serialize', ['users']);
+ }
+
+ /**
+ * View method
+ *
+ * @param string|null $id User id.
+ * @return void
+ * @throws \Cake\Network\Exception\NotFoundException When record not found.
+ */
+ public function view($id = null)
+ {
+ $user = $this->Users->get($id, [
+ 'contain' => ['UserTypes']
+ ]);
+ $this->set('user', $user);
+ $this->set('_serialize', ['user']);
+ }
+
+ /**
+ * Add method
+ *
+ * @return void Redirects on successful add, renders view otherwise.
+ */
+ public function add()
+ {
+ $user = $this->Users->newEntity();
+ if ($this->request->is('post')) {
+ $user = $this->Users->patchEntity($user, $this->request->data);
+ if ($this->Users->save($user)) {
+ $this->Flash->success(__('The user has been saved.'));
+ return $this->redirect(['action' => 'index']);
+ } else {
+ $this->Flash->error(__('The user could not be saved. Please, try again.'));
+ }
+ }
+ $userTypes = $this->Users->UserTypes->find('list', ['limit' => 200]);
+ $this->set(compact('user', 'userTypes'));
+ $this->set('_serialize', ['user']);
+ }
+
+ /**
+ * Edit method
+ *
+ * @param string|null $id User id.
+ * @return void Redirects on successful edit, renders view otherwise.
+ * @throws \Cake\Network\Exception\NotFoundException When record not found.
+ */
+ public function edit($id = null)
+ {
+ $user = $this->Users->get($id, [
+ 'contain' => []
+ ]);
+ // If the auth user id is equal to the the id of the current user page.
+ if ($this->request->is(['patch', 'post', 'put'])) {
+ $user = $this->Users->patchEntity($user, $this->request->data);
+ if ($this->Users->save($user)) {
+ $this->Flash->success(__('The user has been saved.'));
+ return $this->redirect(['action' => 'index']);
+ } else {
+ $this->Flash->error(__('The user could not be saved. Please, try again.'));
+ }
+ }
+ $userTypes = $this->Users->UserTypes->find('list', ['limit' => 200]);
+ $this->set(compact('user', 'userTypes'));
+ $this->set('_serialize', ['user']);
+
+ }
+
+ /**
+ * Delete method
+ *
+ * @param string|null $id User id.
+ * @return \Cake\Network\Response|null Redirects to index.
+ * @throws \Cake\Network\Exception\NotFoundException When record not found.
+ */
+ public function delete($id = null)
+ {
+ $this->request->allowMethod(['post', 'delete']);
+ $user = $this->Users->get($id);
+ if ($this->Users->delete($user)) {
+ $this->Flash->success(__('The user has been deleted.'));
+ } else {
+ $this->Flash->error(__('The user could not be deleted. Please, try again.'));
+ }
+ return $this->redirect(['action' => 'index']);
+ }
+
+
+ public function login()
+ {
+ if ($this->request->is('post')) {
+ $user = $this->Auth->identify();
+ if ($user) {
+ $this->Auth->setUser($user);
+ return $this->redirect($this->Auth->redirectUrl());
+ }
+ $this->Flash->error(__('Votre username ou mot de passe est incorrect.'));
+ }
+ }
+
+ /**
+ * Manage all rights for the controllers' actions.
+ * Returns true if the user can use the currrent action, FALSE otherwise.
+ * Returns true for add a project if the user is connected
+ * Returns true for edit and delete action if the user is owner.
+ * @param Array $user
+ * @return boolean
+ */
+ public function isAuthorized($user)
+ {
+ debug($this->request->action);
+
+ // All registered users can add projects
+ if ($this->request->action === 'add') {
+ return true;
+ }
+// if (in_array($this->request->action, ['edit', 'delete'])) {
+//// if ($this->Auth->user('id') == $user['id']) {
+//// return true;
+//// }
+// return false;
+// }
+
+ return parent::isAuthorized($user);
+ }
+
+}
--- /dev/null
+<?php
+namespace App\Controller;
+
+use App\Controller\AppController;
+
+/**
+ * UsersRelationshipTypesSoftwares Controller
+ *
+ * @property \App\Model\Table\UsersRelationshipTypesSoftwaresTable $UsersRelationshipTypesSoftwares
+ */
+class UsersRelationshipTypesSoftwaresController extends AppController
+{
+
+ /**
+ * Index method
+ *
+ * @return void
+ */
+ public function index()
+ {
+ $this->paginate = [
+ 'contain' => ['Softwares', 'Users', 'RelationshipTypes']
+ ];
+ $this->set('usersRelationshipTypesSoftwares', $this->paginate($this->UsersRelationshipTypesSoftwares));
+ $this->set('_serialize', ['usersRelationshipTypesSoftwares']);
+ }
+
+ /**
+ * View method
+ *
+ * @param string|null $id Users Relationship Types Software id.
+ * @return void
+ * @throws \Cake\Network\Exception\NotFoundException When record not found.
+ */
+ public function view($id = null)
+ {
+ $usersRelationshipTypesSoftware = $this->UsersRelationshipTypesSoftwares->get($id, [
+ 'contain' => ['Softwares', 'Users', 'RelationshipTypes']
+ ]);
+ $this->set('usersRelationshipTypesSoftware', $usersRelationshipTypesSoftware);
+ $this->set('_serialize', ['usersRelationshipTypesSoftware']);
+ }
+
+ /**
+ * Add method
+ *
+ * @return void Redirects on successful add, renders view otherwise.
+ */
+ public function add()
+ {
+ $usersRelationshipTypesSoftware = $this->UsersRelationshipTypesSoftwares->newEntity();
+ if ($this->request->is('post')) {
+ $usersRelationshipTypesSoftware = $this->UsersRelationshipTypesSoftwares->patchEntity($usersRelationshipTypesSoftware, $this->request->data);
+ if ($this->UsersRelationshipTypesSoftwares->save($usersRelationshipTypesSoftware)) {
+ $this->Flash->success(__('The users relationship types software has been saved.'));
+ return $this->redirect(['action' => 'index']);
+ } else {
+ $this->Flash->error(__('The users relationship types software could not be saved. Please, try again.'));
+ }
+ }
+ $softwares = $this->UsersRelationshipTypesSoftwares->Softwares->find('list', ['limit' => 200]);
+ $users = $this->UsersRelationshipTypesSoftwares->Users->find('list', ['limit' => 200]);
+ $relationshipTypes = $this->UsersRelationshipTypesSoftwares->RelationshipTypes->find('list', ['limit' => 200]);
+ $this->set(compact('usersRelationshipTypesSoftware', 'softwares', 'users', 'relationshipTypes'));
+ $this->set('_serialize', ['usersRelationshipTypesSoftware']);
+ }
+
+ /**
+ * Edit method
+ *
+ * @param string|null $id Users Relationship Types Software id.
+ * @return void Redirects on successful edit, renders view otherwise.
+ * @throws \Cake\Network\Exception\NotFoundException When record not found.
+ */
+ public function edit($id = null)
+ {
+ $usersRelationshipTypesSoftware = $this->UsersRelationshipTypesSoftwares->get($id, [
+ 'contain' => []
+ ]);
+ if ($this->request->is(['patch', 'post', 'put'])) {
+ $usersRelationshipTypesSoftware = $this->UsersRelationshipTypesSoftwares->patchEntity($usersRelationshipTypesSoftware, $this->request->data);
+ if ($this->UsersRelationshipTypesSoftwares->save($usersRelationshipTypesSoftware)) {
+ $this->Flash->success(__('The users relationship types software has been saved.'));
+ return $this->redirect(['action' => 'index']);
+ } else {
+ $this->Flash->error(__('The users relationship types software could not be saved. Please, try again.'));
+ }
+ }
+ $softwares = $this->UsersRelationshipTypesSoftwares->Softwares->find('list', ['limit' => 200]);
+ $users = $this->UsersRelationshipTypesSoftwares->Users->find('list', ['limit' => 200]);
+ $relationshipTypes = $this->UsersRelationshipTypesSoftwares->RelationshipTypes->find('list', ['limit' => 200]);
+ $this->set(compact('usersRelationshipTypesSoftware', 'softwares', 'users', 'relationshipTypes'));
+ $this->set('_serialize', ['usersRelationshipTypesSoftware']);
+ }
+
+ /**
+ * Delete method
+ *
+ * @param string|null $id Users Relationship Types Software id.
+ * @return \Cake\Network\Response|null Redirects to index.
+ * @throws \Cake\Network\Exception\NotFoundException When record not found.
+ */
+ public function delete($id = null)
+ {
+ $this->request->allowMethod(['post', 'delete']);
+ $usersRelationshipTypesSoftware = $this->UsersRelationshipTypesSoftwares->get($id);
+ if ($this->UsersRelationshipTypesSoftwares->delete($usersRelationshipTypesSoftware)) {
+ $this->Flash->success(__('The users relationship types software has been deleted.'));
+ } else {
+ $this->Flash->error(__('The users relationship types software could not be deleted. Please, try again.'));
+ }
+ return $this->redirect(['action' => 'index']);
+ }
+}
--- /dev/null
+<?php
+namespace App\Controller;
+
+use App\Controller\AppController;
+
+/**
+ * UsersRelationships Controller
+ *
+ * @property \App\Model\Table\UsersRelationshipsTable $UsersRelationships
+ */
+class UsersRelationshipsController extends AppController
+{
+
+ /**
+ * Index method
+ *
+ * @return void
+ */
+ public function index()
+ {
+ $this->paginate = [
+ 'contain' => ['Users', 'Recipients', 'RelationshipTypes']
+ ];
+ $this->set('usersRelationships', $this->paginate($this->UsersRelationships));
+ $this->set('_serialize', ['usersRelationships']);
+ }
+
+ /**
+ * View method
+ *
+ * @param string|null $id Users Relationship id.
+ * @return void
+ * @throws \Cake\Network\Exception\NotFoundException When record not found.
+ */
+ public function view($id = null)
+ {
+ $usersRelationship = $this->UsersRelationships->get($id, [
+ 'contain' => ['Users', 'Recipients', 'RelationshipTypes']
+ ]);
+ $this->set('usersRelationship', $usersRelationship);
+ $this->set('_serialize', ['usersRelationship']);
+ }
+
+ /**
+ * Add method
+ *
+ * @return void Redirects on successful add, renders view otherwise.
+ */
+ public function add()
+ {
+ $usersRelationship = $this->UsersRelationships->newEntity();
+ if ($this->request->is('post')) {
+ $usersRelationship = $this->UsersRelationships->patchEntity($usersRelationship, $this->request->data);
+ if ($this->UsersRelationships->save($usersRelationship)) {
+ $this->Flash->success(__('The users relationship has been saved.'));
+ return $this->redirect(['action' => 'index']);
+ } else {
+ $this->Flash->error(__('The users relationship could not be saved. Please, try again.'));
+ }
+ }
+ $users = $this->UsersRelationships->Users->find('list', ['limit' => 200]);
+ $recipients = $this->UsersRelationships->Recipients->find('list', ['limit' => 200]);
+ $relationshipTypes = $this->UsersRelationships->RelationshipTypes->find('list', ['limit' => 200]);
+ $this->set(compact('usersRelationship', 'users', 'recipients', 'relationshipTypes'));
+ $this->set('_serialize', ['usersRelationship']);
+ }
+
+ /**
+ * Edit method
+ *
+ * @param string|null $id Users Relationship id.
+ * @return void Redirects on successful edit, renders view otherwise.
+ * @throws \Cake\Network\Exception\NotFoundException When record not found.
+ */
+ public function edit($id = null)
+ {
+ $usersRelationship = $this->UsersRelationships->get($id, [
+ 'contain' => []
+ ]);
+ if ($this->request->is(['patch', 'post', 'put'])) {
+ $usersRelationship = $this->UsersRelationships->patchEntity($usersRelationship, $this->request->data);
+ if ($this->UsersRelationships->save($usersRelationship)) {
+ $this->Flash->success(__('The users relationship has been saved.'));
+ return $this->redirect(['action' => 'index']);
+ } else {
+ $this->Flash->error(__('The users relationship could not be saved. Please, try again.'));
+ }
+ }
+ $users = $this->UsersRelationships->Users->find('list', ['limit' => 200]);
+ $recipients = $this->UsersRelationships->Recipients->find('list', ['limit' => 200]);
+ $relationshipTypes = $this->UsersRelationships->RelationshipTypes->find('list', ['limit' => 200]);
+ $this->set(compact('usersRelationship', 'users', 'recipients', 'relationshipTypes'));
+ $this->set('_serialize', ['usersRelationship']);
+ }
+
+ /**
+ * Delete method
+ *
+ * @param string|null $id Users Relationship id.
+ * @return \Cake\Network\Response|null Redirects to index.
+ * @throws \Cake\Network\Exception\NotFoundException When record not found.
+ */
+ public function delete($id = null)
+ {
+ $this->request->allowMethod(['post', 'delete']);
+ $usersRelationship = $this->UsersRelationships->get($id);
+ if ($this->UsersRelationships->delete($usersRelationship)) {
+ $this->Flash->success(__('The users relationship has been deleted.'));
+ } else {
+ $this->Flash->error(__('The users relationship could not be deleted. Please, try again.'));
+ }
+ return $this->redirect(['action' => 'index']);
+ }
+}
'url_connector', // url of the connector
'url_connector_api', // url for the connector api REST
'type', // type of connector
- 'name', // name of the forge
+ 'name', // name of the connector
'success', // True when the request return at least a result FALSE otherwise.
- 'message', // A information to guide he user
+ 'message', // An information to guide he user
'error_code', // Code type
'total_count'];
--- /dev/null
+<?php
+namespace App\Model\Entity;
+
+use Cake\ORM\Entity;
+
+/**
+ * Entity Entity.
+ *
+ * @property int $ENTITY_id
+ * @property \App\Model\Entity\ENTITy $e_n_t_i_ty
+ * @property string $ENTITY_name
+ * @property \Cake\I18n\Time $ENTITY_registration_date
+ * @property string $ENTITY_logo_url
+ * @property string $ENTITY_url
+ * @property int $ENTITY_type
+ * @property string $ENTITY_description
+ */
+class Entity extends Entity
+{
+
+ /**
+ * Fields that can be mass assigned using newEntity() or patchEntity().
+ *
+ * Note that when '*' is set to true, this allows all unspecified fields to
+ * be mass assigned. For security purposes, it is advised to set '*' to false
+ * (or remove it), and explicitly make individual fields accessible as needed.
+ *
+ * @var array
+ */
+ protected $_accessible = [
+ '*' => true,
+ 'ENTITY_id' => false,
+ 'ENTITY_type' => false,
+ ];
+}
--- /dev/null
+<?php
+namespace App\Model\Entity;
+
+use Cake\ORM\Entity;
+
+/**
+ * EntitySoftwareRelationship Entity.
+ *
+ * @property int $ENTITY_SOFTWARE_RELATIONSHIP_software_id
+ * @property \App\Model\Entity\ENTITYSOFTWARERELATIONSHIPSoftware $e_n_t_i_t_y_s_o_f_t_w_a_r_e_r_e_l_a_t_i_o_n_s_h_i_p_software
+ * @property int $ENTITY_SOFTWARE_RELATIONSHIP_entity_id
+ * @property \App\Model\Entity\ENTITYSOFTWARERELATIONSHIPEntity $e_n_t_i_t_y_s_o_f_t_w_a_r_e_r_e_l_a_t_i_o_n_s_h_i_p_entity
+ * @property int $ENTITY_SOFTWARE_RELATIONSHIP_relationship_type_id
+ * @property \App\Model\Entity\RelationshipType $relationship_type
+ */
+class EntitySoftwareRelationship extends Entity
+{
+
+ /**
+ * Fields that can be mass assigned using newEntity() or patchEntity().
+ *
+ * Note that when '*' is set to true, this allows all unspecified fields to
+ * be mass assigned. For security purposes, it is advised to set '*' to false
+ * (or remove it), and explicitly make individual fields accessible as needed.
+ *
+ * @var array
+ */
+ protected $_accessible = [
+ '*' => true,
+ 'ENTITY_SOFTWARE_RELATIONSHIP_software_id' => false,
+ 'ENTITY_SOFTWARE_RELATIONSHIP_entity_id' => false,
+ ];
+}
--- /dev/null
+<?php
+namespace App\Model\Entity;
+
+use Cake\ORM\Entity;
+
+/**
+ * EntityType Entity.
+ *
+ * @property int $ENTITY_TYPE_id
+ * @property \App\Model\Entity\ENTITYTYPE $e_n_t_i_t_y_t_y_p_e
+ * @property string $ENTITY_TYPE_value
+ */
+class EntityType extends Entity
+{
+
+ /**
+ * Fields that can be mass assigned using newEntity() or patchEntity().
+ *
+ * Note that when '*' is set to true, this allows all unspecified fields to
+ * be mass assigned. For security purposes, it is advised to set '*' to false
+ * (or remove it), and explicitly make individual fields accessible as needed.
+ *
+ * @var array
+ */
+ protected $_accessible = [
+ '*' => true,
+ 'ENTITY_TYPE_id' => false,
+ ];
+}
--- /dev/null
+<?php
+namespace App\Model\Entity;
+
+use Cake\ORM\Entity;
+
+/**
+ * LicenceType Entity.
+ *
+ * @property int $id
+ * @property string $name
+ * @property \Cake\I18n\Time $created
+ * @property \Cake\I18n\Time $modified
+ * @property string $cd
+ */
+class LicenceType extends Entity
+{
+
+ /**
+ * Fields that can be mass assigned using newEntity() or patchEntity().
+ *
+ * Note that when '*' is set to true, this allows all unspecified fields to
+ * be mass assigned. For security purposes, it is advised to set '*' to false
+ * (or remove it), and explicitly make individual fields accessible as needed.
+ *
+ * @var array
+ */
+ protected $_accessible = [
+ '*' => true,
+ 'id' => false,
+ ];
+}
--- /dev/null
+<?php
+namespace App\Model\Entity;
+
+use Cake\ORM\Entity;
+
+/**
+ * License Entity.
+ *
+ * @property int $id
+ * @property string $name
+ * @property int $license_type_id
+ * @property \App\Model\Entity\LicenceType $licence_type
+ * @property \Cake\I18n\Time $created
+ * @property \Cake\I18n\Time $modified
+ */
+class License extends Entity
+{
+
+ /**
+ * Fields that can be mass assigned using newEntity() or patchEntity().
+ *
+ * Note that when '*' is set to true, this allows all unspecified fields to
+ * be mass assigned. For security purposes, it is advised to set '*' to false
+ * (or remove it), and explicitly make individual fields accessible as needed.
+ *
+ * @var array
+ */
+ protected $_accessible = [
+ '*' => true,
+ 'id' => false,
+ ];
+}
--- /dev/null
+<?php
+namespace App\Model\Entity;
+
+use Cake\ORM\Entity;
+
+/**
+ * LicnseType Entity.
+ *
+ * @property int $LICENSE_TYPE_id
+ * @property \App\Model\Entity\LICENSETYPE $l_i_c_e_n_s_e_t_y_p_e
+ * @property string $LICENSE_TYPE_value
+ */
+class LicnseType extends Entity
+{
+
+ /**
+ * Fields that can be mass assigned using newEntity() or patchEntity().
+ *
+ * Note that when '*' is set to true, this allows all unspecified fields to
+ * be mass assigned. For security purposes, it is advised to set '*' to false
+ * (or remove it), and explicitly make individual fields accessible as needed.
+ *
+ * @var array
+ */
+ protected $_accessible = [
+ '*' => true,
+ 'LICENSE_TYPE_id' => false,
+ ];
+}
--- /dev/null
+<?php
+namespace App\Model\Entity;
+
+use Cake\ORM\Entity;
+
+/**
+ * RelationshipType Entity.
+ *
+ * @property int $id
+ * @property string $name
+ * @property \Cake\I18n\Time $created
+ * @property \Cake\I18n\Time $modified
+ * @property string $cd
+ * @property \App\Model\Entity\SoftwaresRelationship[] $softwares_relationships
+ * @property \App\Model\Entity\UsersRelationship[] $users_relationships
+ */
+class RelationshipType extends Entity
+{
+
+ /**
+ * Fields that can be mass assigned using newEntity() or patchEntity().
+ *
+ * Note that when '*' is set to true, this allows all unspecified fields to
+ * be mass assigned. For security purposes, it is advised to set '*' to false
+ * (or remove it), and explicitly make individual fields accessible as needed.
+ *
+ * @var array
+ */
+ protected $_accessible = [
+ '*' => true,
+ 'id' => false,
+ ];
+}
--- /dev/null
+<?php
+namespace App\Model\Entity;
+
+use Cake\ORM\Entity;
+
+/**
+ * Review Entity.
+ *
+ * @property int $id
+ * @property string $comment
+ * @property string $title
+ * @property \Cake\I18n\Time $created
+ * @property int $user_id
+ * @property \App\Model\Entity\User $user
+ * @property int $software_id
+ * @property \App\Model\Entity\Software $software
+ * @property int $evaluation
+ * @property \Cake\I18n\Time $modified
+ */
+class Review extends Entity
+{
+
+ /**
+ * Fields that can be mass assigned using newEntity() or patchEntity().
+ *
+ * Note that when '*' is set to true, this allows all unspecified fields to
+ * be mass assigned. For security purposes, it is advised to set '*' to false
+ * (or remove it), and explicitly make individual fields accessible as needed.
+ *
+ * @var array
+ */
+ protected $_accessible = [
+ '*' => true,
+ 'id' => false,
+ ];
+}
--- /dev/null
+<?php
+namespace App\Model\Entity;
+
+use Cake\ORM\Entity;
+
+/**
+ * Screenshot Entity.
+ *
+ * @property int $id
+ * @property int $software_id
+ * @property \App\Model\Entity\Software $software
+ * @property string $url
+ * @property \Cake\I18n\Time $created
+ * @property \Cake\I18n\Time $modified
+ * @property string $name
+ */
+class Screenshot extends Entity
+{
+
+ /**
+ * Fields that can be mass assigned using newEntity() or patchEntity().
+ *
+ * Note that when '*' is set to true, this allows all unspecified fields to
+ * be mass assigned. For security purposes, it is advised to set '*' to false
+ * (or remove it), and explicitly make individual fields accessible as needed.
+ *
+ * @var array
+ */
+ protected $_accessible = [
+ '*' => true,
+ 'id' => false,
+ ];
+}
--- /dev/null
+<?php
+namespace App\Model\Entity;
+
+use Cake\ORM\Entity;
+
+/**
+ * Software Entity.
+ *
+ * @property int $id
+ * @property string $softwarename
+ * @property string $url_repository
+ * @property string $description
+ * @property int $licence_id
+ * @property \App\Model\Entity\License $license
+ * @property \Cake\I18n\Time $created
+ * @property \Cake\I18n\Time $modified
+ */
+class Software extends Entity
+{
+
+ /**
+ * Fields that can be mass assigned using newEntity() or patchEntity().
+ *
+ * Note that when '*' is set to true, this allows all unspecified fields to
+ * be mass assigned. For security purposes, it is advised to set '*' to false
+ * (or remove it), and explicitly make individual fields accessible as needed.
+ *
+ * @var array
+ */
+ protected $_accessible = [
+ '*' => true,
+ 'id' => false,
+ 'softwarename' => true,
+ ];
+}
--- /dev/null
+<?php
+namespace App\Model\Entity;
+
+use Cake\ORM\Entity;
+
+/**
+ * SoftwareRelationship Entity.
+ *
+ * @property int $SOFTWARE_RELATIONSHIP_from
+ * @property int $SOFTWARE_RELATIONSHIP_to
+ * @property int $SOFTWARE_RELATIONSHIP_type
+ */
+class SoftwareRelationship extends Entity
+{
+
+ /**
+ * Fields that can be mass assigned using newEntity() or patchEntity().
+ *
+ * Note that when '*' is set to true, this allows all unspecified fields to
+ * be mass assigned. For security purposes, it is advised to set '*' to false
+ * (or remove it), and explicitly make individual fields accessible as needed.
+ *
+ * @var array
+ */
+ protected $_accessible = [
+ '*' => true,
+ 'SOFTWARE_RELATIONSHIP_from' => false,
+ 'SOFTWARE_RELATIONSHIP_to' => false,
+ 'SOFTWARE_RELATIONSHIP_type' => false,
+ ];
+}
--- /dev/null
+<?php
+namespace App\Model\Entity;
+
+use Cake\ORM\Entity;
+
+/**
+ * SoftwaresRelationship Entity.
+ *
+ * @property int $software_id
+ * @property \App\Model\Entity\Software $software
+ * @property int $recipient_id
+ * @property \App\Model\Entity\Recipient $recipient
+ * @property int $relationship_type_id
+ * @property \App\Model\Entity\RelationshipType $relationship_type
+ * @property \Cake\I18n\Time $created
+ * @property \Cake\I18n\Time $modified
+ */
+class SoftwaresRelationship extends Entity
+{
+
+ /**
+ * Fields that can be mass assigned using newEntity() or patchEntity().
+ *
+ * Note that when '*' is set to true, this allows all unspecified fields to
+ * be mass assigned. For security purposes, it is advised to set '*' to false
+ * (or remove it), and explicitly make individual fields accessible as needed.
+ *
+ * @var array
+ */
+ protected $_accessible = [
+ '*' => true,
+ 'software_id' => false,
+ 'recipient_id' => false,
+ 'relationship_type_id' => false,
+ ];
+}
--- /dev/null
+<?php
+namespace App\Model\Entity;
+
+use Cake\ORM\Entity;
+use Cake\Auth\DefaultPasswordHasher;
+/**
+ * User Entity.
+ *
+ * @property int $id
+ * @property string $username
+ * @property \Cake\I18n\Time $created
+ * @property string $logo_url
+ * @property string $url
+ * @property int $user_type_id
+ * @property \App\Model\Entity\UserType $user_type
+ * @property string $description
+ * @property \Cake\I18n\Time $modified
+ * @property string $role
+ * @property string $password
+ */
+class User extends Entity
+{
+
+ /**
+ * Fields that can be mass assigned using newEntity() or patchEntity().
+ *
+ * Note that when '*' is set to true, this allows all unspecified fields to
+ * be mass assigned. For security purposes, it is advised to set '*' to false
+ * (or remove it), and explicitly make individual fields accessible as needed.
+ *
+ * @var array
+ */
+ protected $_accessible = [
+ '*' => true,
+ 'id' => false,
+ 'user_type_id' => true,
+ ];
+
+
+ protected function _setPassword($value)
+ {
+ $hasher = new DefaultPasswordHasher();
+ return $hasher->hash($value);
+ }
+}
--- /dev/null
+<?php
+namespace App\Model\Entity;
+
+use Cake\ORM\Entity;
+
+/**
+ * UserType Entity.
+ *
+ * @property int $id
+ * @property string $name
+ * @property \Cake\I18n\Time $created
+ * @property \Cake\I18n\Time $modified
+ * @property string $cd
+ * @property \App\Model\Entity\User[] $users
+ */
+class UserType extends Entity
+{
+
+ /**
+ * Fields that can be mass assigned using newEntity() or patchEntity().
+ *
+ * Note that when '*' is set to true, this allows all unspecified fields to
+ * be mass assigned. For security purposes, it is advised to set '*' to false
+ * (or remove it), and explicitly make individual fields accessible as needed.
+ *
+ * @var array
+ */
+ protected $_accessible = [
+ '*' => true,
+ 'id' => false,
+ ];
+}
--- /dev/null
+<?php
+namespace App\Model\Entity;
+
+use Cake\ORM\Entity;
+
+/**
+ * UsersRelationship Entity.
+ *
+ * @property int $user_id
+ * @property \App\Model\Entity\User $user
+ * @property int $recipient_id
+ * @property \App\Model\Entity\Recipient $recipient
+ * @property int $relationship_type_id
+ * @property \App\Model\Entity\RelationshipType $relationship_type
+ * @property \Cake\I18n\Time $created
+ * @property \Cake\I18n\Time $modified
+ */
+class UsersRelationship extends Entity
+{
+
+ /**
+ * Fields that can be mass assigned using newEntity() or patchEntity().
+ *
+ * Note that when '*' is set to true, this allows all unspecified fields to
+ * be mass assigned. For security purposes, it is advised to set '*' to false
+ * (or remove it), and explicitly make individual fields accessible as needed.
+ *
+ * @var array
+ */
+ protected $_accessible = [
+ '*' => true,
+ 'created' => false,
+ ];
+}
--- /dev/null
+<?php
+namespace App\Model\Entity;
+
+use Cake\ORM\Entity;
+
+/**
+ * UsersRelationshipTypesSoftware Entity.
+ *
+ * @property int $software_id
+ * @property \App\Model\Entity\Software $software
+ * @property int $user_id
+ * @property \App\Model\Entity\User $user
+ * @property int $relationship_type_id
+ * @property \App\Model\Entity\RelationshipType $relationship_type
+ * @property \Cake\I18n\Time $creadted
+ * @property \Cake\I18n\Time $modified
+ */
+class UsersRelationshipTypesSoftware extends Entity
+{
+
+ /**
+ * Fields that can be mass assigned using newEntity() or patchEntity().
+ *
+ * Note that when '*' is set to true, this allows all unspecified fields to
+ * be mass assigned. For security purposes, it is advised to set '*' to false
+ * (or remove it), and explicitly make individual fields accessible as needed.
+ *
+ * @var array
+ */
+ protected $_accessible = [
+ '*' => true,
+ 'software_id' => false,
+ 'user_id' => false,
+ ];
+}
--- /dev/null
+<?php
+namespace App\Model\Table;
+
+use App\Model\Entity\LicenceType;
+use Cake\ORM\Query;
+use Cake\ORM\RulesChecker;
+use Cake\ORM\Table;
+use Cake\Validation\Validator;
+
+/**
+ * LicenceTypes Model
+ *
+ */
+class LicenceTypesTable extends Table
+{
+
+ /**
+ * Initialize method
+ *
+ * @param array $config The configuration for the Table.
+ * @return void
+ */
+ public function initialize(array $config)
+ {
+ parent::initialize($config);
+
+ $this->table('licence_types');
+ $this->displayField('name');
+ $this->primaryKey('id');
+
+ $this->addBehavior('Timestamp');
+
+ }
+
+ /**
+ * Default validation rules.
+ *
+ * @param \Cake\Validation\Validator $validator Validator instance.
+ * @return \Cake\Validation\Validator
+ */
+ public function validationDefault(Validator $validator)
+ {
+ $validator
+ ->allowEmpty('id', 'create');
+
+ $validator
+ ->requirePresence('name', 'create')
+ ->notEmpty('name');
+
+ $validator
+ ->allowEmpty('cd');
+
+ return $validator;
+ }
+}
--- /dev/null
+<?php
+namespace App\Model\Table;
+
+use App\Model\Entity\License;
+use Cake\ORM\Query;
+use Cake\ORM\RulesChecker;
+use Cake\ORM\Table;
+use Cake\Validation\Validator;
+
+/**
+ * Licenses Model
+ *
+ * @property \Cake\ORM\Association\BelongsTo $LicenceTypes
+ */
+class LicensesTable extends Table
+{
+
+ /**
+ * Initialize method
+ *
+ * @param array $config The configuration for the Table.
+ * @return void
+ */
+ public function initialize(array $config)
+ {
+ parent::initialize($config);
+
+ $this->table('licenses');
+ $this->displayField('name');
+ $this->primaryKey('id');
+
+ $this->addBehavior('Timestamp');
+
+ $this->belongsTo('LicenceTypes', [
+ 'foreignKey' => 'license_type_id',
+ 'joinType' => 'INNER'
+ ]);
+ }
+
+ /**
+ * Default validation rules.
+ *
+ * @param \Cake\Validation\Validator $validator Validator instance.
+ * @return \Cake\Validation\Validator
+ */
+ public function validationDefault(Validator $validator)
+ {
+ $validator
+ ->allowEmpty('id', 'create');
+
+ $validator
+ ->requirePresence('name', 'create')
+ ->notEmpty('name');
+
+ return $validator;
+ }
+
+ /**
+ * Returns a rules checker object that will be used for validating
+ * application integrity.
+ *
+ * @param \Cake\ORM\RulesChecker $rules The rules object to be modified.
+ * @return \Cake\ORM\RulesChecker
+ */
+ public function buildRules(RulesChecker $rules)
+ {
+ $rules->add($rules->existsIn(['license_type_id'], 'LicenceTypes'));
+ return $rules;
+ }
+}
--- /dev/null
+<?php
+namespace App\Model\Table;
+
+use App\Model\Entity\RelationshipType;
+use Cake\ORM\Query;
+use Cake\ORM\RulesChecker;
+use Cake\ORM\Table;
+use Cake\Validation\Validator;
+
+/**
+ * RelationshipTypes Model
+ *
+ * @property \Cake\ORM\Association\HasMany $SoftwaresRelationships
+ * @property \Cake\ORM\Association\HasMany $UsersRelationships
+ */
+class RelationshipTypesTable extends Table
+{
+
+ /**
+ * Initialize method
+ *
+ * @param array $config The configuration for the Table.
+ * @return void
+ */
+ public function initialize(array $config)
+ {
+ parent::initialize($config);
+
+ $this->table('relationship_types');
+ $this->displayField('name');
+ $this->primaryKey('id');
+
+ $this->addBehavior('Timestamp');
+
+ $this->hasMany('SoftwaresRelationships', [
+ 'foreignKey' => 'relationship_type_id'
+ ]);
+ $this->hasMany('UsersRelationships', [
+ 'foreignKey' => 'relationship_type_id'
+ ]);
+ }
+
+ /**
+ * Default validation rules.
+ *
+ * @param \Cake\Validation\Validator $validator Validator instance.
+ * @return \Cake\Validation\Validator
+ */
+ public function validationDefault(Validator $validator)
+ {
+ $validator
+ ->allowEmpty('id', 'create');
+
+ $validator
+ ->requirePresence('name', 'create')
+ ->notEmpty('name');
+
+ $validator
+ ->allowEmpty('cd');
+
+ return $validator;
+ }
+}
--- /dev/null
+<?php
+namespace App\Model\Table;
+
+use App\Model\Entity\Review;
+use Cake\ORM\Query;
+use Cake\ORM\RulesChecker;
+use Cake\ORM\Table;
+use Cake\Validation\Validator;
+
+/**
+ * Reviews Model
+ *
+ * @property \Cake\ORM\Association\BelongsTo $Users
+ * @property \Cake\ORM\Association\BelongsTo $Softwares
+ */
+class ReviewsTable extends Table
+{
+
+ /**
+ * Initialize method
+ *
+ * @param array $config The configuration for the Table.
+ * @return void
+ */
+ public function initialize(array $config)
+ {
+ parent::initialize($config);
+
+ $this->table('reviews');
+ $this->displayField('title');
+ $this->primaryKey('id');
+
+ $this->addBehavior('Timestamp');
+
+ $this->belongsTo('Users', [
+ 'foreignKey' => 'user_id'
+ ]);
+ $this->belongsTo('Softwares', [
+ 'foreignKey' => 'software_id'
+ ]);
+ }
+
+ /**
+ * Default validation rules.
+ *
+ * @param \Cake\Validation\Validator $validator Validator instance.
+ * @return \Cake\Validation\Validator
+ */
+ public function validationDefault(Validator $validator)
+ {
+ $validator
+ ->allowEmpty('id', 'create');
+
+ $validator
+ ->requirePresence('comment', 'create')
+ ->notEmpty('comment');
+
+ $validator
+ ->requirePresence('title', 'create')
+ ->notEmpty('title');
+
+ $validator
+ ->allowEmpty('evaluation');
+
+ return $validator;
+ }
+
+ /**
+ * Returns a rules checker object that will be used for validating
+ * application integrity.
+ *
+ * @param \Cake\ORM\RulesChecker $rules The rules object to be modified.
+ * @return \Cake\ORM\RulesChecker
+ */
+ public function buildRules(RulesChecker $rules)
+ {
+ $rules->add($rules->existsIn(['user_id'], 'Users'));
+ $rules->add($rules->existsIn(['software_id'], 'Softwares'));
+ return $rules;
+ }
+}
--- /dev/null
+<?php
+namespace App\Model\Table;
+
+use App\Model\Entity\Screenshot;
+use Cake\ORM\Query;
+use Cake\ORM\RulesChecker;
+use Cake\ORM\Table;
+use Cake\Validation\Validator;
+
+/**
+ * Screenshots Model
+ *
+ * @property \Cake\ORM\Association\BelongsTo $Softwares
+ */
+class ScreenshotsTable extends Table
+{
+
+ /**
+ * Initialize method
+ *
+ * @param array $config The configuration for the Table.
+ * @return void
+ */
+ public function initialize(array $config)
+ {
+ parent::initialize($config);
+
+ $this->table('screenshots');
+ $this->displayField('name');
+ $this->primaryKey('id');
+
+ $this->addBehavior('Timestamp');
+
+ $this->belongsTo('Softwares', [
+ 'foreignKey' => 'software_id'
+ ]);
+ }
+
+ /**
+ * Default validation rules.
+ *
+ * @param \Cake\Validation\Validator $validator Validator instance.
+ * @return \Cake\Validation\Validator
+ */
+ public function validationDefault(Validator $validator)
+ {
+ $validator
+ ->allowEmpty('id', 'create');
+
+ $validator
+ ->allowEmpty('url');
+
+ $validator
+ ->allowEmpty('name');
+
+ return $validator;
+ }
+
+ /**
+ * Returns a rules checker object that will be used for validating
+ * application integrity.
+ *
+ * @param \Cake\ORM\RulesChecker $rules The rules object to be modified.
+ * @return \Cake\ORM\RulesChecker
+ */
+ public function buildRules(RulesChecker $rules)
+ {
+ $rules->add($rules->existsIn(['software_id'], 'Softwares'));
+ return $rules;
+ }
+}
--- /dev/null
+<?php
+namespace App\Model\Table;
+
+use App\Model\Entity\SoftwaresRelationship;
+use Cake\ORM\Query;
+use Cake\ORM\RulesChecker;
+use Cake\ORM\Table;
+use Cake\Validation\Validator;
+
+/**
+ * SoftwaresRelationships Model
+ *
+ * @property \Cake\ORM\Association\BelongsTo $Softwares
+ * @property \Cake\ORM\Association\BelongsTo $Recipients
+ * @property \Cake\ORM\Association\BelongsTo $RelationshipTypes
+ */
+class SoftwaresRelationshipsTable extends Table
+{
+
+ /**
+ * Initialize method
+ *
+ * @param array $config The configuration for the Table.
+ * @return void
+ */
+ public function initialize(array $config)
+ {
+ parent::initialize($config);
+
+ $this->table('softwares_relationships');
+ $this->displayField('software_id');
+ $this->primaryKey(['software_id', 'recipient_id', 'relationship_type_id']);
+
+ $this->addBehavior('Timestamp');
+
+ $this->belongsTo('Softwares', [
+ 'foreignKey' => 'software_id',
+ 'joinType' => 'INNER'
+ ]);
+ $this->belongsTo('Recipients', [
+ 'foreignKey' => 'recipient_id',
+ 'joinType' => 'INNER'
+ ]);
+ $this->belongsTo('RelationshipTypes', [
+ 'foreignKey' => 'relationship_type_id',
+ 'joinType' => 'INNER'
+ ]);
+ }
+
+ /**
+ * Returns a rules checker object that will be used for validating
+ * application integrity.
+ *
+ * @param \Cake\ORM\RulesChecker $rules The rules object to be modified.
+ * @return \Cake\ORM\RulesChecker
+ */
+ public function buildRules(RulesChecker $rules)
+ {
+ $rules->add($rules->existsIn(['software_id'], 'Softwares'));
+ $rules->add($rules->existsIn(['recipient_id'], 'Recipients'));
+ $rules->add($rules->existsIn(['relationship_type_id'], 'RelationshipTypes'));
+ return $rules;
+ }
+}
--- /dev/null
+<?php
+namespace App\Model\Table;
+
+use App\Model\Entity\Software;
+use Cake\ORM\Query;
+use Cake\ORM\RulesChecker;
+use Cake\ORM\Table;
+use Cake\Validation\Validator;
+
+/**
+ * Softwares Model
+ *
+ * @property \Cake\ORM\Association\BelongsTo $Licenses
+ */
+class SoftwaresTable extends Table
+{
+
+ /**
+ * Initialize method
+ *
+ * @param array $config The configuration for the Table.
+ * @return void
+ */
+ public function initialize(array $config)
+ {
+ parent::initialize($config);
+
+ $this->table('softwares');
+ $this->displayField('id');
+ $this->primaryKey(['id']);
+
+ $this->addBehavior('Timestamp');
+
+ $this->belongsTo('Licenses', [
+ 'foreignKey' => 'licence_id'
+ ]);
+ }
+
+ /**
+ * Default validation rules.
+ *
+ * @param \Cake\Validation\Validator $validator Validator instance.
+ * @return \Cake\Validation\Validator
+ */
+ public function validationDefault(Validator $validator)
+ {
+ $validator
+ ->allowEmpty('id', 'create');
+
+ $validator
+ ->requirePresence('softwarename', 'create')
+ ->notEmpty('softwarename');
+
+ $validator
+ ->requirePresence('url_repository', 'create')
+ ->notEmpty('url_repository')
+ ->add('url_repository', 'unique', ['rule' => 'validateUnique', 'provider' => 'table']);
+
+ $validator
+ ->allowEmpty('description');
+
+ return $validator;
+ }
+
+ /**
+ * Returns a rules checker object that will be used for validating
+ * application integrity.
+ *
+ * @param \Cake\ORM\RulesChecker $rules The rules object to be modified.
+ * @return \Cake\ORM\RulesChecker
+ */
+ public function buildRules(RulesChecker $rules)
+ {
+ $rules->add($rules->existsIn(['licence_id'], 'Licenses'));
+ return $rules;
+ }
+}
--- /dev/null
+<?php
+namespace App\Model\Table;
+
+use App\Model\Entity\UserType;
+use Cake\ORM\Query;
+use Cake\ORM\RulesChecker;
+use Cake\ORM\Table;
+use Cake\Validation\Validator;
+
+/**
+ * UserTypes Model
+ *
+ * @property \Cake\ORM\Association\HasMany $Users
+ */
+class UserTypesTable extends Table
+{
+
+ /**
+ * Initialize method
+ *
+ * @param array $config The configuration for the Table.
+ * @return void
+ */
+ public function initialize(array $config)
+ {
+ parent::initialize($config);
+
+ $this->table('user_types');
+ $this->displayField('name');
+ $this->primaryKey('id');
+
+ $this->addBehavior('Timestamp');
+
+ $this->hasMany('Users', [
+ 'foreignKey' => 'user_type_id'
+ ]);
+ }
+
+ /**
+ * Default validation rules.
+ *
+ * @param \Cake\Validation\Validator $validator Validator instance.
+ * @return \Cake\Validation\Validator
+ */
+ public function validationDefault(Validator $validator)
+ {
+ $validator
+ ->allowEmpty('id', 'create');
+
+ $validator
+ ->allowEmpty('name');
+
+ $validator
+ ->allowEmpty('cd');
+
+ return $validator;
+ }
+}
--- /dev/null
+<?php
+namespace App\Model\Table;
+
+use App\Model\Entity\UsersRelationshipTypesSoftware;
+use Cake\ORM\Query;
+use Cake\ORM\RulesChecker;
+use Cake\ORM\Table;
+use Cake\Validation\Validator;
+
+/**
+ * UsersRelationshipTypesSoftwares Model
+ *
+ * @property \Cake\ORM\Association\BelongsTo $Softwares
+ * @property \Cake\ORM\Association\BelongsTo $Users
+ * @property \Cake\ORM\Association\BelongsTo $RelationshipTypes
+ */
+class UsersRelationshipTypesSoftwaresTable extends Table
+{
+
+ /**
+ * Initialize method
+ *
+ * @param array $config The configuration for the Table.
+ * @return void
+ */
+ public function initialize(array $config)
+ {
+ parent::initialize($config);
+
+ $this->table('users_relationship_types_softwares');
+ $this->displayField('software_id');
+ $this->primaryKey(['software_id', 'user_id']);
+
+ $this->addBehavior('Timestamp');
+
+ $this->belongsTo('Softwares', [
+ 'foreignKey' => 'software_id',
+ 'joinType' => 'INNER'
+ ]);
+ $this->belongsTo('Users', [
+ 'foreignKey' => 'user_id',
+ 'joinType' => 'INNER'
+ ]);
+ $this->belongsTo('RelationshipTypes', [
+ 'foreignKey' => 'relationship_type_id'
+ ]);
+ }
+
+ /**
+ * Default validation rules.
+ *
+ * @param \Cake\Validation\Validator $validator Validator instance.
+ * @return \Cake\Validation\Validator
+ */
+ public function validationDefault(Validator $validator)
+ {
+ $validator
+ ->allowEmpty('creadted');
+
+ return $validator;
+ }
+
+ /**
+ * Returns a rules checker object that will be used for validating
+ * application integrity.
+ *
+ * @param \Cake\ORM\RulesChecker $rules The rules object to be modified.
+ * @return \Cake\ORM\RulesChecker
+ */
+ public function buildRules(RulesChecker $rules)
+ {
+ $rules->add($rules->existsIn(['software_id'], 'Softwares'));
+ $rules->add($rules->existsIn(['user_id'], 'Users'));
+ $rules->add($rules->existsIn(['relationship_type_id'], 'RelationshipTypes'));
+ return $rules;
+ }
+}
--- /dev/null
+<?php
+namespace App\Model\Table;
+
+use App\Model\Entity\UsersRelationship;
+use Cake\ORM\Query;
+use Cake\ORM\RulesChecker;
+use Cake\ORM\Table;
+use Cake\Validation\Validator;
+
+/**
+ * UsersRelationships Model
+ *
+ * @property \Cake\ORM\Association\BelongsTo $Users
+ * @property \Cake\ORM\Association\BelongsTo $Recipients
+ * @property \Cake\ORM\Association\BelongsTo $RelationshipTypes
+ */
+class UsersRelationshipsTable extends Table
+{
+
+ /**
+ * Initialize method
+ *
+ * @param array $config The configuration for the Table.
+ * @return void
+ */
+ public function initialize(array $config)
+ {
+ parent::initialize($config);
+
+ $this->table('users_relationships');
+ $this->displayField('created');
+ $this->primaryKey('created');
+
+ $this->addBehavior('Timestamp');
+
+ $this->belongsTo('Users', [
+ 'foreignKey' => 'user_id',
+ 'joinType' => 'INNER'
+ ]);
+ $this->belongsTo('Recipients', [
+ 'foreignKey' => 'recipient_id',
+ 'joinType' => 'INNER'
+ ]);
+ $this->belongsTo('RelationshipTypes', [
+ 'foreignKey' => 'relationship_type_id',
+ 'joinType' => 'INNER'
+ ]);
+ }
+
+ /**
+ * Returns a rules checker object that will be used for validating
+ * application integrity.
+ *
+ * @param \Cake\ORM\RulesChecker $rules The rules object to be modified.
+ * @return \Cake\ORM\RulesChecker
+ */
+ public function buildRules(RulesChecker $rules)
+ {
+ $rules->add($rules->existsIn(['user_id'], 'Users'));
+ $rules->add($rules->existsIn(['recipient_id'], 'Recipients'));
+ $rules->add($rules->existsIn(['relationship_type_id'], 'RelationshipTypes'));
+ return $rules;
+ }
+}
--- /dev/null
+<?php
+namespace App\Model\Table;
+
+use App\Model\Entity\User;
+use Cake\ORM\Query;
+use Cake\ORM\RulesChecker;
+use Cake\ORM\Table;
+use Cake\Validation\Validator;
+
+/**
+ * Users Model
+ *
+ * @property \Cake\ORM\Association\BelongsTo $UserTypes
+ */
+class UsersTable extends Table
+{
+
+ /**
+ * Initialize method
+ *
+ * @param array $config The configuration for the Table.
+ * @return void
+ */
+ public function initialize(array $config)
+ {
+ parent::initialize($config);
+
+ $this->table('users');
+ $this->displayField('id');
+ $this->primaryKey(['id']);
+
+ $this->addBehavior('Timestamp');
+
+ $this->belongsTo('UserTypes', [
+ 'foreignKey' => 'user_type_id',
+ 'joinType' => 'INNER'
+ ]);
+ }
+
+ /**
+ * Default validation rules.
+ *
+ * @param \Cake\Validation\Validator $validator Validator instance.
+ * @return \Cake\Validation\Validator
+ */
+ public function validationDefault(Validator $validator)
+ {
+ $validator
+ ->allowEmpty('id', 'create');
+
+ $validator
+ ->allowEmpty('username');
+
+ $validator
+ ->allowEmpty('logo_url');
+
+ $validator
+ ->allowEmpty('url');
+
+ $validator
+ ->allowEmpty('description');
+
+ $validator
+ ->requirePresence('role', 'create')
+ ->notEmpty('role');
+
+ $validator
+ ->requirePresence('password', 'create')
+ ->notEmpty('password');
+
+ $validator
+ ->requirePresence('email', 'create')
+ ->notEmpty('email');
+
+ return $validator;
+ }
+
+ /**
+ * Returns a rules checker object that will be used for validating
+ * application integrity.
+ *
+ * @param \Cake\ORM\RulesChecker $rules The rules object to be modified.
+ * @return \Cake\ORM\RulesChecker
+ */
+ public function buildRules(RulesChecker $rules)
+ {
+ $rules->add($rules->isUnique(['username']));
+ $rules->add($rules->existsIn(['user_type_id'], 'UserTypes'));
+ return $rules;
+ }
+
+}
--- /dev/null
+<nav class="large-3 medium-4 columns" id="actions-sidebar">
+ <ul class="side-nav">
+ <li class="heading"><?= __('Actions') ?></li>
+ <li><?= $this->Html->link(__('List Licence Types'), ['action' => 'index']) ?></li>
+ </ul>
+</nav>
+<div class="licenceTypes form large-9 medium-8 columns content">
+ <?= $this->Form->create($licenceType) ?>
+ <fieldset>
+ <legend><?= __('Add Licence Type') ?></legend>
+ <?php
+ echo $this->Form->input('name');
+ echo $this->Form->input('cd');
+ ?>
+ </fieldset>
+ <?= $this->Form->button(__('Submit')) ?>
+ <?= $this->Form->end() ?>
+</div>
--- /dev/null
+<nav class="large-3 medium-4 columns" id="actions-sidebar">
+ <ul class="side-nav">
+ <li class="heading"><?= __('Actions') ?></li>
+ <li><?= $this->Form->postLink(
+ __('Delete'),
+ ['action' => 'delete', $licenceType->id],
+ ['confirm' => __('Are you sure you want to delete # {0}?', $licenceType->id)]
+ )
+ ?></li>
+ <li><?= $this->Html->link(__('List Licence Types'), ['action' => 'index']) ?></li>
+ </ul>
+</nav>
+<div class="licenceTypes form large-9 medium-8 columns content">
+ <?= $this->Form->create($licenceType) ?>
+ <fieldset>
+ <legend><?= __('Edit Licence Type') ?></legend>
+ <?php
+ echo $this->Form->input('name');
+ echo $this->Form->input('cd');
+ ?>
+ </fieldset>
+ <?= $this->Form->button(__('Submit')) ?>
+ <?= $this->Form->end() ?>
+</div>
--- /dev/null
+<nav class="large-3 medium-4 columns" id="actions-sidebar">
+ <ul class="side-nav">
+ <li class="heading"><?= __('Actions') ?></li>
+ <li><?= $this->Html->link(__('New Licence Type'), ['action' => 'add']) ?></li>
+ </ul>
+</nav>
+<div class="licenceTypes index large-9 medium-8 columns content">
+ <h3><?= __('Licence Types') ?></h3>
+ <table cellpadding="0" cellspacing="0">
+ <thead>
+ <tr>
+ <th><?= $this->Paginator->sort('id') ?></th>
+ <th><?= $this->Paginator->sort('created') ?></th>
+ <th><?= $this->Paginator->sort('modified') ?></th>
+ <th class="actions"><?= __('Actions') ?></th>
+ </tr>
+ </thead>
+ <tbody>
+ <?php foreach ($licenceTypes as $licenceType): ?>
+ <tr>
+ <td><?= $this->Number->format($licenceType->id) ?></td>
+ <td><?= h($licenceType->created) ?></td>
+ <td><?= h($licenceType->modified) ?></td>
+ <td class="actions">
+ <?= $this->Html->link(__('View'), ['action' => 'view', $licenceType->id]) ?>
+ <?= $this->Html->link(__('Edit'), ['action' => 'edit', $licenceType->id]) ?>
+ <?= $this->Form->postLink(__('Delete'), ['action' => 'delete', $licenceType->id], ['confirm' => __('Are you sure you want to delete # {0}?', $licenceType->id)]) ?>
+ </td>
+ </tr>
+ <?php endforeach; ?>
+ </tbody>
+ </table>
+ <div class="paginator">
+ <ul class="pagination">
+ <?= $this->Paginator->prev('< ' . __('previous')) ?>
+ <?= $this->Paginator->numbers() ?>
+ <?= $this->Paginator->next(__('next') . ' >') ?>
+ </ul>
+ <p><?= $this->Paginator->counter() ?></p>
+ </div>
+</div>
--- /dev/null
+<nav class="large-3 medium-4 columns" id="actions-sidebar">
+ <ul class="side-nav">
+ <li class="heading"><?= __('Actions') ?></li>
+ <li><?= $this->Html->link(__('Edit Licence Type'), ['action' => 'edit', $licenceType->id]) ?> </li>
+ <li><?= $this->Form->postLink(__('Delete Licence Type'), ['action' => 'delete', $licenceType->id], ['confirm' => __('Are you sure you want to delete # {0}?', $licenceType->id)]) ?> </li>
+ <li><?= $this->Html->link(__('List Licence Types'), ['action' => 'index']) ?> </li>
+ <li><?= $this->Html->link(__('New Licence Type'), ['action' => 'add']) ?> </li>
+ </ul>
+</nav>
+<div class="licenceTypes view large-9 medium-8 columns content">
+ <h3><?= h($licenceType->name) ?></h3>
+ <table class="vertical-table">
+ <tr>
+ <th><?= __('Id') ?></th>
+ <td><?= $this->Number->format($licenceType->id) ?></td>
+ </tr>
+ <tr>
+ <th><?= __('Created') ?></th>
+ <td><?= h($licenceType->created) ?></td>
+ </tr>
+ <tr>
+ <th><?= __('Modified') ?></th>
+ <td><?= h($licenceType->modified) ?></td>
+ </tr>
+ </table>
+ <div class="row">
+ <h4><?= __('Name') ?></h4>
+ <?= $this->Text->autoParagraph(h($licenceType->name)); ?>
+ </div>
+ <div class="row">
+ <h4><?= __('Cd') ?></h4>
+ <?= $this->Text->autoParagraph(h($licenceType->cd)); ?>
+ </div>
+</div>
--- /dev/null
+<nav class="large-3 medium-4 columns" id="actions-sidebar">
+ <ul class="side-nav">
+ <li class="heading"><?= __('Actions') ?></li>
+ <li><?= $this->Html->link(__('List Licenses'), ['action' => 'index']) ?></li>
+ <li><?= $this->Html->link(__('List Licence Types'), ['controller' => 'LicenceTypes', 'action' => 'index']) ?></li>
+ <li><?= $this->Html->link(__('New Licence Type'), ['controller' => 'LicenceTypes', 'action' => 'add']) ?></li>
+ </ul>
+</nav>
+<div class="licenses form large-9 medium-8 columns content">
+ <?= $this->Form->create($license) ?>
+ <fieldset>
+ <legend><?= __('Add License') ?></legend>
+ <?php
+ echo $this->Form->input('name');
+ echo $this->Form->input('license_type_id', ['options' => $licenceTypes]);
+ ?>
+ </fieldset>
+ <?= $this->Form->button(__('Submit')) ?>
+ <?= $this->Form->end() ?>
+</div>
--- /dev/null
+<nav class="large-3 medium-4 columns" id="actions-sidebar">
+ <ul class="side-nav">
+ <li class="heading"><?= __('Actions') ?></li>
+ <li><?= $this->Form->postLink(
+ __('Delete'),
+ ['action' => 'delete', $license->id],
+ ['confirm' => __('Are you sure you want to delete # {0}?', $license->id)]
+ )
+ ?></li>
+ <li><?= $this->Html->link(__('List Licenses'), ['action' => 'index']) ?></li>
+ <li><?= $this->Html->link(__('List Licence Types'), ['controller' => 'LicenceTypes', 'action' => 'index']) ?></li>
+ <li><?= $this->Html->link(__('New Licence Type'), ['controller' => 'LicenceTypes', 'action' => 'add']) ?></li>
+ </ul>
+</nav>
+<div class="licenses form large-9 medium-8 columns content">
+ <?= $this->Form->create($license) ?>
+ <fieldset>
+ <legend><?= __('Edit License') ?></legend>
+ <?php
+ echo $this->Form->input('name');
+ echo $this->Form->input('license_type_id', ['options' => $licenceTypes]);
+ ?>
+ </fieldset>
+ <?= $this->Form->button(__('Submit')) ?>
+ <?= $this->Form->end() ?>
+</div>
--- /dev/null
+<nav class="large-3 medium-4 columns" id="actions-sidebar">
+ <ul class="side-nav">
+ <li class="heading"><?= __('Actions') ?></li>
+ <li><?= $this->Html->link(__('New License'), ['action' => 'add']) ?></li>
+ <li><?= $this->Html->link(__('List Licence Types'), ['controller' => 'LicenceTypes', 'action' => 'index']) ?></li>
+ <li><?= $this->Html->link(__('New Licence Type'), ['controller' => 'LicenceTypes', 'action' => 'add']) ?></li>
+ </ul>
+</nav>
+<div class="licenses index large-9 medium-8 columns content">
+ <h3><?= __('Licenses') ?></h3>
+ <table cellpadding="0" cellspacing="0">
+ <thead>
+ <tr>
+ <th><?= $this->Paginator->sort('id') ?></th>
+ <th><?= $this->Paginator->sort('license_type_id') ?></th>
+ <th><?= $this->Paginator->sort('created') ?></th>
+ <th><?= $this->Paginator->sort('modified') ?></th>
+ <th class="actions"><?= __('Actions') ?></th>
+ </tr>
+ </thead>
+ <tbody>
+ <?php foreach ($licenses as $license): ?>
+ <tr>
+ <td><?= $this->Number->format($license->id) ?></td>
+ <td><?= $license->has('licence_type') ? $this->Html->link($license->licence_type->name, ['controller' => 'LicenceTypes', 'action' => 'view', $license->licence_type->id]) : '' ?></td>
+ <td><?= h($license->created) ?></td>
+ <td><?= h($license->modified) ?></td>
+ <td class="actions">
+ <?= $this->Html->link(__('View'), ['action' => 'view', $license->id]) ?>
+ <?= $this->Html->link(__('Edit'), ['action' => 'edit', $license->id]) ?>
+ <?= $this->Form->postLink(__('Delete'), ['action' => 'delete', $license->id], ['confirm' => __('Are you sure you want to delete # {0}?', $license->id)]) ?>
+ </td>
+ </tr>
+ <?php endforeach; ?>
+ </tbody>
+ </table>
+ <div class="paginator">
+ <ul class="pagination">
+ <?= $this->Paginator->prev('< ' . __('previous')) ?>
+ <?= $this->Paginator->numbers() ?>
+ <?= $this->Paginator->next(__('next') . ' >') ?>
+ </ul>
+ <p><?= $this->Paginator->counter() ?></p>
+ </div>
+</div>
--- /dev/null
+<nav class="large-3 medium-4 columns" id="actions-sidebar">
+ <ul class="side-nav">
+ <li class="heading"><?= __('Actions') ?></li>
+ <li><?= $this->Html->link(__('Edit License'), ['action' => 'edit', $license->id]) ?> </li>
+ <li><?= $this->Form->postLink(__('Delete License'), ['action' => 'delete', $license->id], ['confirm' => __('Are you sure you want to delete # {0}?', $license->id)]) ?> </li>
+ <li><?= $this->Html->link(__('List Licenses'), ['action' => 'index']) ?> </li>
+ <li><?= $this->Html->link(__('New License'), ['action' => 'add']) ?> </li>
+ <li><?= $this->Html->link(__('List Licence Types'), ['controller' => 'LicenceTypes', 'action' => 'index']) ?> </li>
+ <li><?= $this->Html->link(__('New Licence Type'), ['controller' => 'LicenceTypes', 'action' => 'add']) ?> </li>
+ </ul>
+</nav>
+<div class="licenses view large-9 medium-8 columns content">
+ <h3><?= h($license->name) ?></h3>
+ <table class="vertical-table">
+ <tr>
+ <th><?= __('Licence Type') ?></th>
+ <td><?= $license->has('licence_type') ? $this->Html->link($license->licence_type->name, ['controller' => 'LicenceTypes', 'action' => 'view', $license->licence_type->id]) : '' ?></td>
+ </tr>
+ <tr>
+ <th><?= __('Id') ?></th>
+ <td><?= $this->Number->format($license->id) ?></td>
+ </tr>
+ <tr>
+ <th><?= __('Created') ?></th>
+ <td><?= h($license->created) ?></td>
+ </tr>
+ <tr>
+ <th><?= __('Modified') ?></th>
+ <td><?= h($license->modified) ?></td>
+ </tr>
+ </table>
+ <div class="row">
+ <h4><?= __('Name') ?></h4>
+ <?= $this->Text->autoParagraph(h($license->name)); ?>
+ </div>
+</div>
--- /dev/null
+<nav class="large-3 medium-4 columns" id="actions-sidebar">
+ <ul class="side-nav">
+ <li class="heading"><?= __('Actions') ?></li>
+ <li><?= $this->Html->link(__('List Softwares'), ['action' => 'index']) ?></li>
+ <li><?= $this->Html->link(__('List Licenses'), ['controller' => 'Licenses', 'action' => 'index']) ?></li>
+ <li><?= $this->Html->link(__('New License'), ['controller' => 'Licenses', 'action' => 'add']) ?></li>
+ </ul>
+</nav>
+<div class="softwares form large-9 medium-8 columns content">
+ <?= $this->Form->create($software) ?>
+ <fieldset>
+ <legend><?= __('Add Software') ?></legend>
+ <?php
+ echo $this->Form->input('softwarename', ["label"=> __("Project's name")]);
+ echo $this->Form->input('url_repository');
+ echo $this->Form->input('description');
+ echo $this->Form->input('licence_id', ['options' => $licenses, 'empty' => true]);
+ ?>
+ </fieldset>
+ <?= $this->Form->button(__('Submit')) ?>
+ <?= $this->Form->end() ?>
+</div>
--- /dev/null
+<nav class="large-3 medium-4 columns" id="actions-sidebar">
+ <ul class="side-nav">
+ <li class="heading"><?= __('Actions') ?></li>
+ <li><?= $this->Form->postLink(
+ __('Delete'),
+ ['action' => 'delete', $software->id],
+ ['confirm' => __('Are you sure you want to delete # {0}?', $software->id)]
+ )
+ ?></li>
+ <li><?= $this->Html->link(__('List Softwares'), ['action' => 'index']) ?></li>
+ <li><?= $this->Html->link(__('List Licenses'), ['controller' => 'Licenses', 'action' => 'index']) ?></li>
+ <li><?= $this->Html->link(__('New License'), ['controller' => 'Licenses', 'action' => 'add']) ?></li>
+ </ul>
+</nav>
+<div class="softwares form large-9 medium-8 columns content">
+ <?= $this->Form->create($software) ?>
+ <fieldset>
+ <legend><?= __('Edit Software') ?></legend>
+ <?php
+ echo $this->Form->input('url_repository');
+ echo $this->Form->input('description');
+ echo $this->Form->input('licence_id', ['options' => $licenses, 'empty' => true]);
+ ?>
+ </fieldset>
+ <?= $this->Form->button(__('Submit')) ?>
+ <?= $this->Form->end() ?>
+</div>
--- /dev/null
+<nav class="large-3 medium-4 columns" id="actions-sidebar">
+ <ul class="side-nav">
+ <li class="heading"><?= __('Actions') ?></li>
+ <li><?= $this->Html->link(__('New Software'), ['action' => 'add']) ?></li>
+ <li><?= $this->Html->link(__('List Licenses'), ['controller' => 'Licenses', 'action' => 'index']) ?></li>
+ <li><?= $this->Html->link(__('New License'), ['controller' => 'Licenses', 'action' => 'add']) ?></li>
+ </ul>
+</nav>
+<div class="softwares index large-9 medium-8 columns content">
+ <h3><?= __('Softwares') ?></h3>
+ <table cellpadding="0" cellspacing="0">
+ <thead>
+ <tr>
+ <th><?= $this->Paginator->sort('id') ?></th>
+ <th><?= $this->Paginator->sort('licence_id') ?></th>
+ <th><?= $this->Paginator->sort('created') ?></th>
+ <th><?= $this->Paginator->sort('modified') ?></th>
+ <th class="actions"><?= __('Actions') ?></th>
+ </tr>
+ </thead>
+ <tbody>
+ <?php foreach ($softwares as $software): ?>
+ <tr>
+ <td><?= $this->Number->format($software->id) ?></td>
+ <td><?= $software->has('license') ? $this->Html->link($software->license->name, ['controller' => 'Licenses', 'action' => 'view', $software->license->id]) : '' ?></td>
+ <td><?= h($software->created) ?></td>
+ <td><?= h($software->modified) ?></td>
+ <td class="actions">
+ <?= $this->Html->link(__('View'), ['action' => 'view', $software->id]) ?>
+ <?= $this->Html->link(__('Edit'), ['action' => 'edit', $software->id]) ?>
+ <?= $this->Form->postLink(__('Delete'), ['action' => 'delete', $software->id], ['confirm' => __('Are you sure you want to delete # {0}?', $software->id)]) ?>
+ </td>
+ </tr>
+ <?php endforeach; ?>
+ </tbody>
+ </table>
+ <div class="paginator">
+ <ul class="pagination">
+ <?= $this->Paginator->prev('< ' . __('previous')) ?>
+ <?= $this->Paginator->numbers() ?>
+ <?= $this->Paginator->next(__('next') . ' >') ?>
+ </ul>
+ <p><?= $this->Paginator->counter() ?></p>
+ </div>
+</div>
--- /dev/null
+<nav class="large-3 medium-4 columns" id="actions-sidebar">
+ <ul class="side-nav">
+ <li class="heading"><?= __('Actions') ?></li>
+ <li><?= $this->Html->link(__('Edit Software'), ['action' => 'edit', $software->id]) ?> </li>
+ <li><?= $this->Form->postLink(__('Delete Software'), ['action' => 'delete', $software->id], ['confirm' => __('Are you sure you want to delete # {0}?', $software->id)]) ?> </li>
+ <li><?= $this->Html->link(__('List Softwares'), ['action' => 'index']) ?> </li>
+ <li><?= $this->Html->link(__('New Software'), ['action' => 'add']) ?> </li>
+ <li><?= $this->Html->link(__('List Licenses'), ['controller' => 'Licenses', 'action' => 'index']) ?> </li>
+ <li><?= $this->Html->link(__('New License'), ['controller' => 'Licenses', 'action' => 'add']) ?> </li>
+ </ul>
+</nav>
+<div class="softwares view large-9 medium-8 columns content">
+ <h3><?= h($software->id) ?></h3>
+ <table class="vertical-table">
+ <tr>
+ <th><?= __('License') ?></th>
+ <td><?= $software->has('license') ? $this->Html->link($software->license->name, ['controller' => 'Licenses', 'action' => 'view', $software->license->id]) : '' ?></td>
+ </tr>
+ <tr>
+ <th><?= __('Id') ?></th>
+ <td><?= $this->Number->format($software->id) ?></td>
+ </tr>
+ <tr>
+ <th><?= __('Created') ?></th>
+ <td><?= h($software->created) ?></td>
+ </tr>
+ <tr>
+ <th><?= __('Modified') ?></th>
+ <td><?= h($software->modified) ?></td>
+ </tr>
+ </table>
+ <div class="row">
+ <h4><?= __('Softwarename') ?></h4>
+ <?= $this->Text->autoParagraph(h($software->softwarename)); ?>
+ </div>
+ <div class="row">
+ <h4><?= __('Url Repository') ?></h4>
+ <?= $this->Text->autoParagraph(h($software->url_repository)); ?>
+ </div>
+ <div class="row">
+ <h4><?= __('Description') ?></h4>
+ <?= $this->Text->autoParagraph(h($software->description)); ?>
+ </div>
+</div>
--- /dev/null
+<nav class="large-3 medium-4 columns" id="actions-sidebar">
+ <ul class="side-nav">
+ <li class="heading"><?= __('Actions') ?></li>
+ <li><?= $this->Html->link(__('List User Types'), ['action' => 'index']) ?></li>
+ <li><?= $this->Html->link(__('List Users'), ['controller' => 'Users', 'action' => 'index']) ?></li>
+ <li><?= $this->Html->link(__('New User'), ['controller' => 'Users', 'action' => 'add']) ?></li>
+ </ul>
+</nav>
+<div class="userTypes form large-9 medium-8 columns content">
+ <?= $this->Form->create($userType) ?>
+ <fieldset>
+ <legend><?= __('Add User Type') ?></legend>
+ <?php
+ echo $this->Form->input('name');
+ echo $this->Form->input('cd');
+ ?>
+ </fieldset>
+ <?= $this->Form->button(__('Submit')) ?>
+ <?= $this->Form->end() ?>
+</div>
--- /dev/null
+<nav class="large-3 medium-4 columns" id="actions-sidebar">
+ <ul class="side-nav">
+ <li class="heading"><?= __('Actions') ?></li>
+ <li><?= $this->Form->postLink(
+ __('Delete'),
+ ['action' => 'delete', $userType->id],
+ ['confirm' => __('Are you sure you want to delete # {0}?', $userType->id)]
+ )
+ ?></li>
+ <li><?= $this->Html->link(__('List User Types'), ['action' => 'index']) ?></li>
+ <li><?= $this->Html->link(__('List Users'), ['controller' => 'Users', 'action' => 'index']) ?></li>
+ <li><?= $this->Html->link(__('New User'), ['controller' => 'Users', 'action' => 'add']) ?></li>
+ </ul>
+</nav>
+<div class="userTypes form large-9 medium-8 columns content">
+ <?= $this->Form->create($userType) ?>
+ <fieldset>
+ <legend><?= __('Edit User Type') ?></legend>
+ <?php
+ echo $this->Form->input('name');
+ echo $this->Form->input('cd');
+ ?>
+ </fieldset>
+ <?= $this->Form->button(__('Submit')) ?>
+ <?= $this->Form->end() ?>
+</div>
--- /dev/null
+<nav class="large-3 medium-4 columns" id="actions-sidebar">
+ <ul class="side-nav">
+ <li class="heading"><?= __('Actions') ?></li>
+ <li><?= $this->Html->link(__('New User Type'), ['action' => 'add']) ?></li>
+ <li><?= $this->Html->link(__('List Users'), ['controller' => 'Users', 'action' => 'index']) ?></li>
+ <li><?= $this->Html->link(__('New User'), ['controller' => 'Users', 'action' => 'add']) ?></li>
+</ul>
+</nav>
+<div class="userTypes index large-9 medium-8 columns content">
+ <h3><?= __('User Types') ?></h3>
+ <table cellpadding="0" cellspacing="0">
+ <thead>
+ <tr>
+ <th><?= $this->Paginator->sort('id') ?></th>
+ <th><?= $this->Paginator->sort('created') ?></th>
+ <th><?= $this->Paginator->sort('modified') ?></th>
+ <th class="actions"><?= __('Actions') ?></th>
+ </tr>
+ </thead>
+ <tbody>
+ <?php foreach ($userTypes as $userType): ?>
+ <tr>
+ <td><?= $this->Number->format($userType->id) ?></td>
+ <td><?= h($userType->created) ?></td>
+ <td><?= h($userType->modified) ?></td>
+ <td class="actions">
+ <?= $this->Html->link(__('View'), ['action' => 'view', $userType->id]) ?>
+ <?= $this->Html->link(__('Edit'), ['action' => 'edit', $userType->id]) ?>
+ <?= $this->Form->postLink(__('Delete'), ['action' => 'delete', $userType->id], ['confirm' => __('Are you sure you want to delete # {0}?', $userType->id)]) ?>
+ </td>
+ </tr>
+ <?php endforeach; ?>
+ </tbody>
+ </table>
+ <div class="paginator">
+ <ul class="pagination">
+ <?= $this->Paginator->prev('< ' . __('previous')) ?>
+ <?= $this->Paginator->numbers() ?>
+ <?= $this->Paginator->next(__('next') . ' >') ?>
+ </ul>
+ <p><?= $this->Paginator->counter() ?></p>
+ </div>
+</div>
--- /dev/null
+<nav class="large-3 medium-4 columns" id="actions-sidebar">
+ <ul class="side-nav">
+ <li class="heading"><?= __('Actions') ?></li>
+ <li><?= $this->Html->link(__('Edit User Type'), ['action' => 'edit', $userType->id]) ?> </li>
+ <li><?= $this->Form->postLink(__('Delete User Type'), ['action' => 'delete', $userType->id], ['confirm' => __('Are you sure you want to delete # {0}?', $userType->id)]) ?> </li>
+ <li><?= $this->Html->link(__('List User Types'), ['action' => 'index']) ?> </li>
+ <li><?= $this->Html->link(__('New User Type'), ['action' => 'add']) ?> </li>
+ <li><?= $this->Html->link(__('List Users'), ['controller' => 'Users', 'action' => 'index']) ?> </li>
+ <li><?= $this->Html->link(__('New User'), ['controller' => 'Users', 'action' => 'add']) ?> </li>
+ </ul>
+</nav>
+<div class="userTypes view large-9 medium-8 columns content">
+ <h3><?= h($userType->name) ?></h3>
+ <table class="vertical-table">
+ <tr>
+ <th><?= __('Id') ?></th>
+ <td><?= $this->Number->format($userType->id) ?></td>
+ </tr>
+ <tr>
+ <th><?= __('Created') ?></th>
+ <td><?= h($userType->created) ?></td>
+ </tr>
+ <tr>
+ <th><?= __('Modified') ?></th>
+ <td><?= h($userType->modified) ?></td>
+ </tr>
+ </table>
+ <div class="row">
+ <h4><?= __('Name') ?></h4>
+ <?= $this->Text->autoParagraph(h($userType->name)); ?>
+ </div>
+ <div class="row">
+ <h4><?= __('Cd') ?></h4>
+ <?= $this->Text->autoParagraph(h($userType->cd)); ?>
+ </div>
+ <div class="related">
+ <h4><?= __('Related Users') ?></h4>
+ <?php if (!empty($userType->users)): ?>
+ <table cellpadding="0" cellspacing="0">
+ <tr>
+ <th><?= __('Id') ?></th>
+ <th><?= __('Username') ?></th>
+ <th><?= __('Created') ?></th>
+ <th><?= __('Logo Url') ?></th>
+ <th><?= __('Url') ?></th>
+ <th><?= __('User Type Id') ?></th>
+ <th><?= __('Description') ?></th>
+ <th><?= __('Modified') ?></th>
+ <th><?= __('Role') ?></th>
+ <th><?= __('Password') ?></th>
+ <th class="actions"><?= __('Actions') ?></th>
+ </tr>
+ <?php foreach ($userType->users as $users): ?>
+ <tr>
+ <td><?= h($users->id) ?></td>
+ <td><?= h($users->username) ?></td>
+ <td><?= h($users->created) ?></td>
+ <td><?= h($users->logo_url) ?></td>
+ <td><?= h($users->url) ?></td>
+ <td><?= h($users->user_type_id) ?></td>
+ <td><?= h($users->description) ?></td>
+ <td><?= h($users->modified) ?></td>
+ <td><?= h($users->role) ?></td>
+ <td><?= h($users->password) ?></td>
+ <td class="actions">
+ <?= $this->Html->link(__('View'), ['controller' => 'Users', 'action' => 'view', $users->id]) ?>
+
+ <?= $this->Html->link(__('Edit'), ['controller' => 'Users', 'action' => 'edit', $users->id]) ?>
+
+ <?= $this->Form->postLink(__('Delete'), ['controller' => 'Users', 'action' => 'delete', $users->id], ['confirm' => __('Are you sure you want to delete # {0}?', $users->id)]) ?>
+
+ </td>
+ </tr>
+ <?php endforeach; ?>
+ </table>
+ <?php endif; ?>
+ </div>
+</div>
--- /dev/null
+<nav class="large-3 medium-4 columns" id="actions-sidebar">
+ <ul class="side-nav">
+ <li class="heading"><?= __('Actions') ?></li>
+ <li><?= $this->Html->link(__('List Users'), ['action' => 'index']) ?></li>
+ <li><?= $this->Html->link(__('List User Types'), ['controller' => 'UserTypes', 'action' => 'index']) ?></li>
+ <li><?= $this->Html->link(__('New User Type'), ['controller' => 'UserTypes', 'action' => 'add']) ?></li>
+ </ul>
+</nav>
+<div class="users form large-9 medium-8 columns content">
+ <?= $this->Form->create($user) ?>
+ <fieldset>
+ <legend><?= __('Add User') ?></legend>
+ <?php
+ echo $this->Form->input('username');
+ echo $this->Form->input('email');
+ echo $this->Form->input('logo_url');
+ echo $this->Form->input('url');
+ echo $this->Form->input('description');
+ echo $this->Form->input('UserTypes',["name"=>"user_type_id"]);
+ echo $this->Form->input('role');
+ echo $this->Form->input('password');
+ ?>
+ </fieldset>
+ <?= $this->Form->button(__('Submit')) ?>
+ <?= $this->Form->end() ?>
+</div>
--- /dev/null
+<nav class="large-3 medium-4 columns" id="actions-sidebar">
+ <ul class="side-nav">
+ <li class="heading"><?= __('Actions') ?></li>
+ <li><?= $this->Form->postLink(
+ __('Delete'),
+ ['action' => 'delete', $user->id],
+ ['confirm' => __('Are you sure you want to delete # {0}?', $user->id)]
+ )
+ ?></li>
+ <li><?= $this->Html->link(__('List Users'), ['action' => 'index']) ?></li>
+ <li><?= $this->Html->link(__('List User Types'), ['controller' => 'UserTypes', 'action' => 'index']) ?></li>
+ <li><?= $this->Html->link(__('New User Type'), ['controller' => 'UserTypes', 'action' => 'add']) ?></li>
+ </ul>
+</nav>
+<div class="users form large-9 medium-8 columns content">
+ <?= $this->Form->create($user) ?>
+ <fieldset>
+ <legend><?= __('Edit User') ?></legend>
+ <?php
+ echo $this->Form->input('username');
+ echo $this->Form->input('logo_url');
+ echo $this->Form->input('url');
+ echo $this->Form->input('description');
+ echo $this->Form->input('role');
+ echo $this->Form->input('password');
+ ?>
+ </fieldset>
+ <?= $this->Form->button(__('Submit')) ?>
+ <?= $this->Form->end() ?>
+</div>
--- /dev/null
+<nav class="large-3 medium-4 columns" id="actions-sidebar">
+ <ul class="side-nav">
+ <li class="heading"><?= __('Actions') ?></li>
+ <li><?= $this->Html->link(__('New User'), ['action' => 'add']) ?></li>
+ <li><?= $this->Html->link(__('List User Types'), ['controller' => 'UserTypes', 'action' => 'index']) ?></li>
+ <li><?= $this->Html->link(__('New User Type'), ['controller' => 'UserTypes', 'action' => 'add']) ?></li>
+ </ul>
+</nav>
+<div class="users index large-9 medium-8 columns content">
+ <h3><?= __('Users') ?></h3>
+ <table cellpadding="0" cellspacing="0">
+ <thead>
+ <tr>
+ <th><?= $this->Paginator->sort('id') ?></th>
+ <th><?= $this->Paginator->sort('created') ?></th>
+ <th><?= $this->Paginator->sort('user_type_id') ?></th>
+ <th><?= $this->Paginator->sort('modified') ?></th>
+ <th class="actions"><?= __('Actions') ?></th>
+ </tr>
+ </thead>
+ <tbody>
+ <?php foreach ($users as $user): ?>
+ <tr>
+ <td><?= $this->Number->format($user->id) ?></td>
+ <td><?= h($user->created) ?></td>
+ <td><?= $user->has('user_type') ? $this->Html->link($user->user_type->name, ['controller' => 'UserTypes', 'action' => 'view', $user->user_type->id]) : '' ?></td>
+ <td><?= h($user->modified) ?></td>
+ <td class="actions">
+ <?= $this->Html->link(__('View'), ['action' => 'view', $user->id]) ?>
+ <?= $this->Html->link(__('Edit'), ['action' => 'edit', $user->id]) ?>
+ <?= $this->Form->postLink(__('Delete'), ['action' => 'delete', $user->id], ['confirm' => __('Are you sure you want to delete # {0}?', $user->id)]) ?>
+ </td>
+ </tr>
+ <?php endforeach; ?>
+ </tbody>
+ </table>
+ <div class="paginator">
+ <ul class="pagination">
+ <?= $this->Paginator->prev('< ' . __('previous')) ?>
+ <?= $this->Paginator->numbers() ?>
+ <?= $this->Paginator->next(__('next') . ' >') ?>
+ </ul>
+ <p><?= $this->Paginator->counter() ?></p>
+ </div>
+</div>
--- /dev/null
+<?php
+
+/*
+ * To change this license header, choose License Headers in Project Properties.
+ * To change this template file, choose Tools | Templates
+ * and open the template in the editor.
+ */
+
+?>
+
+
+<h1>Connexion</h1>
+<?= $this->Form->create() ?>
+<?= $this->Form->input('username') ?>
+<?= $this->Form->input('password') ?>
+<?= $this->Form->button('Login') ?>
+<?= $this->Form->end() ?>
\ No newline at end of file
--- /dev/null
+<nav class="large-3 medium-4 columns" id="actions-sidebar">
+ <ul class="side-nav">
+ <li class="heading"><?= __('Actions') ?></li>
+ <li><?= $this->Html->link(__('Edit User'), ['action' => 'edit', $user->id]) ?> </li>
+ <li><?= $this->Form->postLink(__('Delete User'), ['action' => 'delete', $user->id], ['confirm' => __('Are you sure you want to delete # {0}?', $user->id)]) ?> </li>
+ <li><?= $this->Html->link(__('List Users'), ['action' => 'index']) ?> </li>
+ <li><?= $this->Html->link(__('New User'), ['action' => 'add']) ?> </li>
+ <li><?= $this->Html->link(__('List User Types'), ['controller' => 'UserTypes', 'action' => 'index']) ?> </li>
+ <li><?= $this->Html->link(__('New User Type'), ['controller' => 'UserTypes', 'action' => 'add']) ?> </li>
+ </ul>
+</nav>
+<div class="users view large-9 medium-8 columns content">
+ <h3><?= h($user->id) ?></h3>
+ <table class="vertical-table">
+ <tr>
+ <th><?= __('User Type') ?></th>
+ <td><?= $user->has('user_type') ? $this->Html->link($user->user_type->name, ['controller' => 'UserTypes', 'action' => 'view', $user->user_type->id]) : '' ?></td>
+ </tr>
+ <tr>
+ <th><?= __('Id') ?></th>
+ <td><?= $this->Number->format($user->id) ?></td>
+ </tr>
+ <tr>
+ <th><?= __('Created') ?></th>
+ <td><?= h($user->created) ?></td>
+ </tr>
+ <tr>
+ <th><?= __('Modified') ?></th>
+ <td><?= h($user->modified) ?></td>
+ </tr>
+ </table>
+ <div class="row">
+ <h4><?= __('Username') ?></h4>
+ <?= $this->Text->autoParagraph(h($user->username)); ?>
+ </div>
+ <div class="row">
+ <h4><?= __('Logo Url') ?></h4>
+ <?= $this->Text->autoParagraph(h($user->logo_url)); ?>
+ </div>
+ <div class="row">
+ <h4><?= __('Url') ?></h4>
+ <?= $this->Text->autoParagraph(h($user->url)); ?>
+ </div>
+ <div class="row">
+ <h4><?= __('Description') ?></h4>
+ <?= $this->Text->autoParagraph(h($user->description)); ?>
+ </div>
+ <div class="row">
+ <h4><?= __('Role') ?></h4>
+ <?= $this->Text->autoParagraph(h($user->role)); ?>
+ </div>
+ <div class="row">
+ <h4><?= __('Password') ?></h4>
+ <?= $this->Text->autoParagraph(h($user->password)); ?>
+ </div>
+</div>
--- /dev/null
+<?php
+namespace App\Test\Fixture;
+
+use Cake\TestSuite\Fixture\TestFixture;
+
+/**
+ * EntityFixture
+ *
+ */
+class EntityFixture extends TestFixture
+{
+
+ /**
+ * Table name
+ *
+ * @var string
+ */
+ public $table = 'entity';
+
+ /**
+ * Fields
+ *
+ * @var array
+ */
+ // @codingStandardsIgnoreStart
+ public $fields = [
+ 'ENTITY_id' => ['type' => 'integer', 'length' => 10, 'autoIncrement' => true, 'default' => null, 'null' => false, 'comment' => null, 'precision' => null, 'unsigned' => null],
+ 'ENTITY_name' => ['type' => 'string', 'length' => 45, 'default' => null, 'null' => true, 'comment' => null, 'precision' => null, 'fixed' => null],
+ 'ENTITY_registration_date' => ['type' => 'timestamp', 'length' => null, 'default' => null, 'null' => true, 'comment' => null, 'precision' => null],
+ 'ENTITY_logo_url' => ['type' => 'text', 'length' => null, 'default' => null, 'null' => true, 'comment' => null, 'precision' => null],
+ 'ENTITY_url' => ['type' => 'text', 'length' => null, 'default' => null, 'null' => true, 'comment' => null, 'precision' => null],
+ 'ENTITY_type' => ['type' => 'integer', 'length' => 10, 'default' => null, 'null' => false, 'comment' => null, 'precision' => null, 'unsigned' => null, 'autoIncrement' => null],
+ 'ENTITY_description' => ['type' => 'text', 'length' => null, 'default' => null, 'null' => true, 'comment' => null, 'precision' => null],
+ '_indexes' => [
+ 'manivelleServer_ENTITY_ENTITY_type1_idx' => ['type' => 'index', 'columns' => ['ENTITY_type'], 'length' => []],
+ ],
+ '_constraints' => [
+ 'primary' => ['type' => 'primary', 'columns' => ['ENTITY_id', 'ENTITY_type'], 'length' => []],
+ 'ENTITY_ENTITY_type_fkey' => ['type' => 'foreign', 'columns' => ['ENTITY_type'], 'references' => ['entity_type', 'ENTITY_TYPE_id'], 'update' => 'noAction', 'delete' => 'noAction', 'length' => []],
+ ],
+ ];
+ // @codingStandardsIgnoreEnd
+
+ /**
+ * Records
+ *
+ * @var array
+ */
+ public $records = [
+ [
+ 'ENTITY_id' => 1,
+ 'ENTITY_name' => 'Lorem ipsum dolor sit amet',
+ 'ENTITY_registration_date' => 1458916956,
+ 'ENTITY_logo_url' => 'Lorem ipsum dolor sit amet, aliquet feugiat. Convallis morbi fringilla gravida, phasellus feugiat dapibus velit nunc, pulvinar eget sollicitudin venenatis cum nullam, vivamus ut a sed, mollitia lectus. Nulla vestibulum massa neque ut et, id hendrerit sit, feugiat in taciti enim proin nibh, tempor dignissim, rhoncus duis vestibulum nunc mattis convallis.',
+ 'ENTITY_url' => 'Lorem ipsum dolor sit amet, aliquet feugiat. Convallis morbi fringilla gravida, phasellus feugiat dapibus velit nunc, pulvinar eget sollicitudin venenatis cum nullam, vivamus ut a sed, mollitia lectus. Nulla vestibulum massa neque ut et, id hendrerit sit, feugiat in taciti enim proin nibh, tempor dignissim, rhoncus duis vestibulum nunc mattis convallis.',
+ 'ENTITY_type' => 1,
+ 'ENTITY_description' => 'Lorem ipsum dolor sit amet, aliquet feugiat. Convallis morbi fringilla gravida, phasellus feugiat dapibus velit nunc, pulvinar eget sollicitudin venenatis cum nullam, vivamus ut a sed, mollitia lectus. Nulla vestibulum massa neque ut et, id hendrerit sit, feugiat in taciti enim proin nibh, tempor dignissim, rhoncus duis vestibulum nunc mattis convallis.'
+ ],
+ ];
+}
--- /dev/null
+<?php
+namespace App\Test\Fixture;
+
+use Cake\TestSuite\Fixture\TestFixture;
+
+/**
+ * EntitySoftwareRelationshipFixture
+ *
+ */
+class EntitySoftwareRelationshipFixture extends TestFixture
+{
+
+ /**
+ * Table name
+ *
+ * @var string
+ */
+ public $table = 'entity_software_relationship';
+
+ /**
+ * Fields
+ *
+ * @var array
+ */
+ // @codingStandardsIgnoreStart
+ public $fields = [
+ 'ENTITY_SOFTWARE_RELATIONSHIP_software_id' => ['type' => 'integer', 'length' => 10, 'default' => null, 'null' => false, 'comment' => null, 'precision' => null, 'unsigned' => null, 'autoIncrement' => null],
+ 'ENTITY_SOFTWARE_RELATIONSHIP_entity_id' => ['type' => 'integer', 'length' => 10, 'default' => null, 'null' => false, 'comment' => null, 'precision' => null, 'unsigned' => null, 'autoIncrement' => null],
+ 'ENTITY_SOFTWARE_RELATIONSHIP_relationship_type_id' => ['type' => 'integer', 'length' => 10, 'default' => null, 'null' => true, 'comment' => null, 'precision' => null, 'unsigned' => null, 'autoIncrement' => null],
+ '_indexes' => [
+ 'manivelleServer_ENTITY_SOFTWARE_RELATIONSHIP_ENTITY_SOFTWARE_RE' => ['type' => 'index', 'columns' => ['ENTITY_SOFTWARE_RELATIONSHIP_relationship_type_id'], 'length' => []],
+ ],
+ '_constraints' => [
+ 'primary' => ['type' => 'primary', 'columns' => ['ENTITY_SOFTWARE_RELATIONSHIP_software_id', 'ENTITY_SOFTWARE_RELATIONSHIP_entity_id'], 'length' => []],
+ 'ENTITY_SOFTWARE_RELATIONSHIP_ENTITY_SOFTWARE_RELATIONSHIP__fkey' => ['type' => 'foreign', 'columns' => ['ENTITY_SOFTWARE_RELATIONSHIP_relationship_type_id'], 'references' => ['relationship_type', 'RELATIONSHIP_TYPE_id'], 'update' => 'noAction', 'delete' => 'noAction', 'length' => []],
+ ],
+ ];
+ // @codingStandardsIgnoreEnd
+
+ /**
+ * Records
+ *
+ * @var array
+ */
+ public $records = [
+ [
+ 'ENTITY_SOFTWARE_RELATIONSHIP_software_id' => 1,
+ 'ENTITY_SOFTWARE_RELATIONSHIP_entity_id' => 1,
+ 'ENTITY_SOFTWARE_RELATIONSHIP_relationship_type_id' => 1
+ ],
+ ];
+}
--- /dev/null
+<?php
+namespace App\Test\Fixture;
+
+use Cake\TestSuite\Fixture\TestFixture;
+
+/**
+ * EntityTypeFixture
+ *
+ */
+class EntityTypeFixture extends TestFixture
+{
+
+ /**
+ * Table name
+ *
+ * @var string
+ */
+ public $table = 'entity_type';
+
+ /**
+ * Fields
+ *
+ * @var array
+ */
+ // @codingStandardsIgnoreStart
+ public $fields = [
+ 'ENTITY_TYPE_id' => ['type' => 'integer', 'length' => 10, 'autoIncrement' => true, 'default' => null, 'null' => false, 'comment' => null, 'precision' => null, 'unsigned' => null],
+ 'ENTITY_TYPE_value' => ['type' => 'string', 'length' => 45, 'default' => null, 'null' => true, 'comment' => null, 'precision' => null, 'fixed' => null],
+ '_constraints' => [
+ 'primary' => ['type' => 'primary', 'columns' => ['ENTITY_TYPE_id'], 'length' => []],
+ ],
+ ];
+ // @codingStandardsIgnoreEnd
+
+ /**
+ * Records
+ *
+ * @var array
+ */
+ public $records = [
+ [
+ 'ENTITY_TYPE_id' => 1,
+ 'ENTITY_TYPE_value' => 'Lorem ipsum dolor sit amet'
+ ],
+ ];
+}
--- /dev/null
+<?php
+namespace App\Test\Fixture;
+
+use Cake\TestSuite\Fixture\TestFixture;
+
+/**
+ * LicenceTypesFixture
+ *
+ */
+class LicenceTypesFixture extends TestFixture
+{
+
+ /**
+ * Fields
+ *
+ * @var array
+ */
+ // @codingStandardsIgnoreStart
+ public $fields = [
+ 'id' => ['type' => 'biginteger', 'length' => 20, 'autoIncrement' => true, 'default' => null, 'null' => false, 'comment' => null, 'precision' => null, 'unsigned' => null],
+ 'name' => ['type' => 'text', 'length' => null, 'default' => null, 'null' => false, 'comment' => null, 'precision' => null],
+ 'created' => ['type' => 'timestamp', 'length' => null, 'default' => null, 'null' => true, 'comment' => null, 'precision' => null],
+ 'modified' => ['type' => 'timestamp', 'length' => null, 'default' => null, 'null' => true, 'comment' => null, 'precision' => null],
+ 'cd' => ['type' => 'text', 'length' => null, 'default' => null, 'null' => true, 'comment' => null, 'precision' => null],
+ '_constraints' => [
+ 'primary' => ['type' => 'primary', 'columns' => ['id'], 'length' => []],
+ ],
+ ];
+ // @codingStandardsIgnoreEnd
+
+ /**
+ * Records
+ *
+ * @var array
+ */
+ public $records = [
+ [
+ 'id' => '',
+ 'name' => 'Lorem ipsum dolor sit amet, aliquet feugiat. Convallis morbi fringilla gravida, phasellus feugiat dapibus velit nunc, pulvinar eget sollicitudin venenatis cum nullam, vivamus ut a sed, mollitia lectus. Nulla vestibulum massa neque ut et, id hendrerit sit, feugiat in taciti enim proin nibh, tempor dignissim, rhoncus duis vestibulum nunc mattis convallis.',
+ 'created' => 1459435670,
+ 'modified' => 1459435670,
+ 'cd' => 'Lorem ipsum dolor sit amet, aliquet feugiat. Convallis morbi fringilla gravida, phasellus feugiat dapibus velit nunc, pulvinar eget sollicitudin venenatis cum nullam, vivamus ut a sed, mollitia lectus. Nulla vestibulum massa neque ut et, id hendrerit sit, feugiat in taciti enim proin nibh, tempor dignissim, rhoncus duis vestibulum nunc mattis convallis.'
+ ],
+ ];
+}
--- /dev/null
+<?php
+namespace App\Test\Fixture;
+
+use Cake\TestSuite\Fixture\TestFixture;
+
+/**
+ * LicenseFixture
+ *
+ */
+class LicenseFixture extends TestFixture
+{
+
+ /**
+ * Table name
+ *
+ * @var string
+ */
+ public $table = 'license';
+
+ /**
+ * Fields
+ *
+ * @var array
+ */
+ // @codingStandardsIgnoreStart
+ public $fields = [
+ 'LICENSE_id' => ['type' => 'integer', 'length' => 10, 'autoIncrement' => true, 'default' => null, 'null' => false, 'comment' => null, 'precision' => null, 'unsigned' => null],
+ 'LICENSE_tag' => ['type' => 'string', 'length' => 45, 'default' => null, 'null' => false, 'comment' => null, 'precision' => null, 'fixed' => null],
+ 'LICENSE_name' => ['type' => 'string', 'length' => 45, 'default' => null, 'null' => false, 'comment' => null, 'precision' => null, 'fixed' => null],
+ 'LICENSE_type_id' => ['type' => 'integer', 'length' => 10, 'default' => null, 'null' => false, 'comment' => null, 'precision' => null, 'unsigned' => null, 'autoIncrement' => null],
+ '_indexes' => [
+ 'manivelleServer_LICENSE_LICENSE_type_id1_idx' => ['type' => 'index', 'columns' => ['LICENSE_type_id'], 'length' => []],
+ ],
+ '_constraints' => [
+ 'primary' => ['type' => 'primary', 'columns' => ['LICENSE_id'], 'length' => []],
+ 'LICENSE_LICENSE_type_id_fkey' => ['type' => 'foreign', 'columns' => ['LICENSE_type_id'], 'references' => ['licnse_type', 'LICENSE_TYPE_id'], 'update' => 'noAction', 'delete' => 'noAction', 'length' => []],
+ ],
+ ];
+ // @codingStandardsIgnoreEnd
+
+ /**
+ * Records
+ *
+ * @var array
+ */
+ public $records = [
+ [
+ 'LICENSE_id' => 1,
+ 'LICENSE_tag' => 'Lorem ipsum dolor sit amet',
+ 'LICENSE_name' => 'Lorem ipsum dolor sit amet',
+ 'LICENSE_type_id' => 1
+ ],
+ ];
+}
--- /dev/null
+<?php
+namespace App\Test\Fixture;
+
+use Cake\TestSuite\Fixture\TestFixture;
+
+/**
+ * LicensesFixture
+ *
+ */
+class LicensesFixture extends TestFixture
+{
+
+ /**
+ * Fields
+ *
+ * @var array
+ */
+ // @codingStandardsIgnoreStart
+ public $fields = [
+ 'id' => ['type' => 'biginteger', 'length' => 20, 'autoIncrement' => true, 'default' => null, 'null' => false, 'comment' => null, 'precision' => null, 'unsigned' => null],
+ 'name' => ['type' => 'text', 'length' => null, 'default' => null, 'null' => false, 'comment' => null, 'precision' => null],
+ 'license_type_id' => ['type' => 'biginteger', 'length' => 20, 'default' => null, 'null' => false, 'comment' => null, 'precision' => null, 'unsigned' => null, 'autoIncrement' => null],
+ 'created' => ['type' => 'timestamp', 'length' => null, 'default' => null, 'null' => true, 'comment' => null, 'precision' => null],
+ 'modified' => ['type' => 'timestamp', 'length' => null, 'default' => null, 'null' => true, 'comment' => null, 'precision' => null],
+ '_indexes' => [
+ 'idx_17588_fk_license_licence_type_idx' => ['type' => 'index', 'columns' => ['license_type_id'], 'length' => []],
+ ],
+ '_constraints' => [
+ 'primary' => ['type' => 'primary', 'columns' => ['id'], 'length' => []],
+ 'fk_license_licence_type' => ['type' => 'foreign', 'columns' => ['license_type_id'], 'references' => ['licence_types', 'id'], 'update' => 'noAction', 'delete' => 'noAction', 'length' => []],
+ ],
+ ];
+ // @codingStandardsIgnoreEnd
+
+ /**
+ * Records
+ *
+ * @var array
+ */
+ public $records = [
+ [
+ 'id' => '',
+ 'name' => 'Lorem ipsum dolor sit amet, aliquet feugiat. Convallis morbi fringilla gravida, phasellus feugiat dapibus velit nunc, pulvinar eget sollicitudin venenatis cum nullam, vivamus ut a sed, mollitia lectus. Nulla vestibulum massa neque ut et, id hendrerit sit, feugiat in taciti enim proin nibh, tempor dignissim, rhoncus duis vestibulum nunc mattis convallis.',
+ 'license_type_id' => '',
+ 'created' => 1459435670,
+ 'modified' => 1459435670
+ ],
+ ];
+}
--- /dev/null
+<?php
+namespace App\Test\Fixture;
+
+use Cake\TestSuite\Fixture\TestFixture;
+
+/**
+ * LicnseTypeFixture
+ *
+ */
+class LicnseTypeFixture extends TestFixture
+{
+
+ /**
+ * Table name
+ *
+ * @var string
+ */
+ public $table = 'licnse_type';
+
+ /**
+ * Fields
+ *
+ * @var array
+ */
+ // @codingStandardsIgnoreStart
+ public $fields = [
+ 'LICENSE_TYPE_id' => ['type' => 'integer', 'length' => 10, 'autoIncrement' => true, 'default' => null, 'null' => false, 'comment' => null, 'precision' => null, 'unsigned' => null],
+ 'LICENSE_TYPE_value' => ['type' => 'text', 'length' => null, 'default' => null, 'null' => false, 'comment' => null, 'precision' => null],
+ '_constraints' => [
+ 'primary' => ['type' => 'primary', 'columns' => ['LICENSE_TYPE_id'], 'length' => []],
+ ],
+ ];
+ // @codingStandardsIgnoreEnd
+
+ /**
+ * Records
+ *
+ * @var array
+ */
+ public $records = [
+ [
+ 'LICENSE_TYPE_id' => 1,
+ 'LICENSE_TYPE_value' => 'Lorem ipsum dolor sit amet, aliquet feugiat. Convallis morbi fringilla gravida, phasellus feugiat dapibus velit nunc, pulvinar eget sollicitudin venenatis cum nullam, vivamus ut a sed, mollitia lectus. Nulla vestibulum massa neque ut et, id hendrerit sit, feugiat in taciti enim proin nibh, tempor dignissim, rhoncus duis vestibulum nunc mattis convallis.'
+ ],
+ ];
+}
--- /dev/null
+<?php
+namespace App\Test\Fixture;
+
+use Cake\TestSuite\Fixture\TestFixture;
+
+/**
+ * RelationshipTypeFixture
+ *
+ */
+class RelationshipTypeFixture extends TestFixture
+{
+
+ /**
+ * Table name
+ *
+ * @var string
+ */
+ public $table = 'relationship_type';
+
+ /**
+ * Fields
+ *
+ * @var array
+ */
+ // @codingStandardsIgnoreStart
+ public $fields = [
+ 'RELATIONSHIP_TYPE_id' => ['type' => 'integer', 'length' => 10, 'default' => null, 'null' => false, 'comment' => null, 'precision' => null, 'unsigned' => null, 'autoIncrement' => null],
+ 'RELATIONSHIP_TYPE_value' => ['type' => 'string', 'length' => 45, 'default' => null, 'null' => false, 'comment' => null, 'precision' => null, 'fixed' => null],
+ '_constraints' => [
+ 'primary' => ['type' => 'primary', 'columns' => ['RELATIONSHIP_TYPE_id'], 'length' => []],
+ ],
+ ];
+ // @codingStandardsIgnoreEnd
+
+ /**
+ * Records
+ *
+ * @var array
+ */
+ public $records = [
+ [
+ 'RELATIONSHIP_TYPE_id' => 1,
+ 'RELATIONSHIP_TYPE_value' => 'Lorem ipsum dolor sit amet'
+ ],
+ ];
+}
--- /dev/null
+<?php
+namespace App\Test\Fixture;
+
+use Cake\TestSuite\Fixture\TestFixture;
+
+/**
+ * RelationshipTypesFixture
+ *
+ */
+class RelationshipTypesFixture extends TestFixture
+{
+
+ /**
+ * Fields
+ *
+ * @var array
+ */
+ // @codingStandardsIgnoreStart
+ public $fields = [
+ 'id' => ['type' => 'biginteger', 'length' => 20, 'default' => null, 'null' => false, 'comment' => null, 'precision' => null, 'unsigned' => null, 'autoIncrement' => null],
+ 'name' => ['type' => 'text', 'length' => null, 'default' => null, 'null' => false, 'comment' => null, 'precision' => null],
+ 'created' => ['type' => 'timestamp', 'length' => null, 'default' => null, 'null' => true, 'comment' => null, 'precision' => null],
+ 'modified' => ['type' => 'timestamp', 'length' => null, 'default' => null, 'null' => true, 'comment' => null, 'precision' => null],
+ 'cd' => ['type' => 'text', 'length' => null, 'default' => null, 'null' => true, 'comment' => null, 'precision' => null],
+ '_constraints' => [
+ 'primary' => ['type' => 'primary', 'columns' => ['id'], 'length' => []],
+ ],
+ ];
+ // @codingStandardsIgnoreEnd
+
+ /**
+ * Records
+ *
+ * @var array
+ */
+ public $records = [
+ [
+ 'id' => '',
+ 'name' => 'Lorem ipsum dolor sit amet, aliquet feugiat. Convallis morbi fringilla gravida, phasellus feugiat dapibus velit nunc, pulvinar eget sollicitudin venenatis cum nullam, vivamus ut a sed, mollitia lectus. Nulla vestibulum massa neque ut et, id hendrerit sit, feugiat in taciti enim proin nibh, tempor dignissim, rhoncus duis vestibulum nunc mattis convallis.',
+ 'created' => 1459435670,
+ 'modified' => 1459435670,
+ 'cd' => 'Lorem ipsum dolor sit amet, aliquet feugiat. Convallis morbi fringilla gravida, phasellus feugiat dapibus velit nunc, pulvinar eget sollicitudin venenatis cum nullam, vivamus ut a sed, mollitia lectus. Nulla vestibulum massa neque ut et, id hendrerit sit, feugiat in taciti enim proin nibh, tempor dignissim, rhoncus duis vestibulum nunc mattis convallis.'
+ ],
+ ];
+}
--- /dev/null
+<?php
+namespace App\Test\Fixture;
+
+use Cake\TestSuite\Fixture\TestFixture;
+
+/**
+ * ReviewFixture
+ *
+ */
+class ReviewFixture extends TestFixture
+{
+
+ /**
+ * Table name
+ *
+ * @var string
+ */
+ public $table = 'review';
+
+ /**
+ * Fields
+ *
+ * @var array
+ */
+ // @codingStandardsIgnoreStart
+ public $fields = [
+ 'REVIEW_id' => ['type' => 'integer', 'length' => 10, 'autoIncrement' => true, 'default' => null, 'null' => false, 'comment' => null, 'precision' => null, 'unsigned' => null],
+ 'REVIEW_comment' => ['type' => 'text', 'length' => null, 'default' => null, 'null' => false, 'comment' => null, 'precision' => null],
+ 'REVIEW_title' => ['type' => 'string', 'length' => 25, 'default' => null, 'null' => false, 'comment' => null, 'precision' => null, 'fixed' => null],
+ 'REVIEW_date' => ['type' => 'timestamp', 'length' => null, 'default' => 'now()', 'null' => false, 'comment' => null, 'precision' => null],
+ 'REVIEW_entity_id' => ['type' => 'integer', 'length' => 10, 'default' => null, 'null' => true, 'comment' => null, 'precision' => null, 'unsigned' => null, 'autoIncrement' => null],
+ 'REVIEW_software_id' => ['type' => 'integer', 'length' => 10, 'default' => null, 'null' => true, 'comment' => null, 'precision' => null, 'unsigned' => null, 'autoIncrement' => null],
+ 'REVIEW_evaluation' => ['type' => 'integer', 'length' => 10, 'default' => null, 'null' => true, 'comment' => null, 'precision' => null, 'unsigned' => null, 'autoIncrement' => null],
+ '_indexes' => [
+ 'manivelleServer_REVIEW_REVIEW_entity_id1_idx' => ['type' => 'index', 'columns' => ['REVIEW_entity_id'], 'length' => []],
+ 'manivelleServer_REVIEW_REVIEW_software_id2_idx' => ['type' => 'index', 'columns' => ['REVIEW_software_id'], 'length' => []],
+ ],
+ '_constraints' => [
+ 'primary' => ['type' => 'primary', 'columns' => ['REVIEW_id', 'REVIEW_date'], 'length' => []],
+ ],
+ ];
+ // @codingStandardsIgnoreEnd
+
+ /**
+ * Records
+ *
+ * @var array
+ */
+ public $records = [
+ [
+ 'REVIEW_id' => 1,
+ 'REVIEW_comment' => 'Lorem ipsum dolor sit amet, aliquet feugiat. Convallis morbi fringilla gravida, phasellus feugiat dapibus velit nunc, pulvinar eget sollicitudin venenatis cum nullam, vivamus ut a sed, mollitia lectus. Nulla vestibulum massa neque ut et, id hendrerit sit, feugiat in taciti enim proin nibh, tempor dignissim, rhoncus duis vestibulum nunc mattis convallis.',
+ 'REVIEW_title' => 'Lorem ipsum dolor sit a',
+ 'REVIEW_date' => 1458916957,
+ 'REVIEW_entity_id' => 1,
+ 'REVIEW_software_id' => 1,
+ 'REVIEW_evaluation' => 1
+ ],
+ ];
+}
--- /dev/null
+<?php
+namespace App\Test\Fixture;
+
+use Cake\TestSuite\Fixture\TestFixture;
+
+/**
+ * ReviewsFixture
+ *
+ */
+class ReviewsFixture extends TestFixture
+{
+
+ /**
+ * Fields
+ *
+ * @var array
+ */
+ // @codingStandardsIgnoreStart
+ public $fields = [
+ 'id' => ['type' => 'biginteger', 'length' => 20, 'autoIncrement' => true, 'default' => null, 'null' => false, 'comment' => null, 'precision' => null, 'unsigned' => null],
+ 'comment' => ['type' => 'text', 'length' => null, 'default' => null, 'null' => false, 'comment' => null, 'precision' => null],
+ 'title' => ['type' => 'text', 'length' => null, 'default' => null, 'null' => false, 'comment' => null, 'precision' => null],
+ 'created' => ['type' => 'timestamp', 'length' => null, 'default' => null, 'null' => false, 'comment' => null, 'precision' => null],
+ 'user_id' => ['type' => 'biginteger', 'length' => 20, 'default' => null, 'null' => true, 'comment' => null, 'precision' => null, 'unsigned' => null, 'autoIncrement' => null],
+ 'software_id' => ['type' => 'biginteger', 'length' => 20, 'default' => null, 'null' => true, 'comment' => null, 'precision' => null, 'unsigned' => null, 'autoIncrement' => null],
+ 'evaluation' => ['type' => 'biginteger', 'length' => 20, 'default' => null, 'null' => true, 'comment' => null, 'precision' => null, 'unsigned' => null, 'autoIncrement' => null],
+ 'modified' => ['type' => 'timestamp', 'length' => null, 'default' => null, 'null' => true, 'comment' => null, 'precision' => null],
+ '_indexes' => [
+ 'idx_17603_fk_review_software_idx' => ['type' => 'index', 'columns' => ['software_id'], 'length' => []],
+ 'idx_17603_fk_review_user_idx' => ['type' => 'index', 'columns' => ['user_id'], 'length' => []],
+ ],
+ '_constraints' => [
+ 'primary' => ['type' => 'primary', 'columns' => ['id'], 'length' => []],
+ ],
+ ];
+ // @codingStandardsIgnoreEnd
+
+ /**
+ * Records
+ *
+ * @var array
+ */
+ public $records = [
+ [
+ 'id' => '',
+ 'comment' => 'Lorem ipsum dolor sit amet, aliquet feugiat. Convallis morbi fringilla gravida, phasellus feugiat dapibus velit nunc, pulvinar eget sollicitudin venenatis cum nullam, vivamus ut a sed, mollitia lectus. Nulla vestibulum massa neque ut et, id hendrerit sit, feugiat in taciti enim proin nibh, tempor dignissim, rhoncus duis vestibulum nunc mattis convallis.',
+ 'title' => 'Lorem ipsum dolor sit amet, aliquet feugiat. Convallis morbi fringilla gravida, phasellus feugiat dapibus velit nunc, pulvinar eget sollicitudin venenatis cum nullam, vivamus ut a sed, mollitia lectus. Nulla vestibulum massa neque ut et, id hendrerit sit, feugiat in taciti enim proin nibh, tempor dignissim, rhoncus duis vestibulum nunc mattis convallis.',
+ 'created' => 1459435670,
+ 'user_id' => '',
+ 'software_id' => '',
+ 'evaluation' => '',
+ 'modified' => 1459435670
+ ],
+ ];
+}
--- /dev/null
+<?php
+namespace App\Test\Fixture;
+
+use Cake\TestSuite\Fixture\TestFixture;
+
+/**
+ * ScreenshotsFixture
+ *
+ */
+class ScreenshotsFixture extends TestFixture
+{
+
+ /**
+ * Fields
+ *
+ * @var array
+ */
+ // @codingStandardsIgnoreStart
+ public $fields = [
+ 'id' => ['type' => 'biginteger', 'length' => 20, 'default' => null, 'null' => false, 'comment' => null, 'precision' => null, 'unsigned' => null, 'autoIncrement' => null],
+ 'software_id' => ['type' => 'biginteger', 'length' => 20, 'default' => null, 'null' => true, 'comment' => null, 'precision' => null, 'unsigned' => null, 'autoIncrement' => null],
+ 'url' => ['type' => 'text', 'length' => null, 'default' => null, 'null' => true, 'comment' => null, 'precision' => null],
+ 'created' => ['type' => 'timestamp', 'length' => null, 'default' => null, 'null' => true, 'comment' => null, 'precision' => null],
+ 'modified' => ['type' => 'timestamp', 'length' => null, 'default' => null, 'null' => true, 'comment' => null, 'precision' => null],
+ 'name' => ['type' => 'text', 'length' => null, 'default' => null, 'null' => true, 'comment' => null, 'precision' => null],
+ '_indexes' => [
+ 'idx_17610_fk_screens_software_idx' => ['type' => 'index', 'columns' => ['software_id'], 'length' => []],
+ ],
+ '_constraints' => [
+ 'primary' => ['type' => 'primary', 'columns' => ['id'], 'length' => []],
+ ],
+ ];
+ // @codingStandardsIgnoreEnd
+
+ /**
+ * Records
+ *
+ * @var array
+ */
+ public $records = [
+ [
+ 'id' => '',
+ 'software_id' => '',
+ 'url' => 'Lorem ipsum dolor sit amet, aliquet feugiat. Convallis morbi fringilla gravida, phasellus feugiat dapibus velit nunc, pulvinar eget sollicitudin venenatis cum nullam, vivamus ut a sed, mollitia lectus. Nulla vestibulum massa neque ut et, id hendrerit sit, feugiat in taciti enim proin nibh, tempor dignissim, rhoncus duis vestibulum nunc mattis convallis.',
+ 'created' => 1459435671,
+ 'modified' => 1459435671,
+ 'name' => 'Lorem ipsum dolor sit amet, aliquet feugiat. Convallis morbi fringilla gravida, phasellus feugiat dapibus velit nunc, pulvinar eget sollicitudin venenatis cum nullam, vivamus ut a sed, mollitia lectus. Nulla vestibulum massa neque ut et, id hendrerit sit, feugiat in taciti enim proin nibh, tempor dignissim, rhoncus duis vestibulum nunc mattis convallis.'
+ ],
+ ];
+}
--- /dev/null
+<?php
+namespace App\Test\Fixture;
+
+use Cake\TestSuite\Fixture\TestFixture;
+
+/**
+ * SoftwareFixture
+ *
+ */
+class SoftwareFixture extends TestFixture
+{
+
+ /**
+ * Table name
+ *
+ * @var string
+ */
+ public $table = 'software';
+
+ /**
+ * Fields
+ *
+ * @var array
+ */
+ // @codingStandardsIgnoreStart
+ public $fields = [
+ 'SOFTWARE_id' => ['type' => 'integer', 'length' => 10, 'autoIncrement' => true, 'default' => null, 'null' => false, 'comment' => null, 'precision' => null, 'unsigned' => null],
+ 'SOFTWARE_name' => ['type' => 'string', 'length' => 45, 'default' => null, 'null' => false, 'comment' => null, 'precision' => null, 'fixed' => null],
+ 'SOFTWARE_url_repository' => ['type' => 'string', 'length' => 45, 'default' => null, 'null' => false, 'comment' => null, 'precision' => null, 'fixed' => null],
+ 'SOFTWARE_description' => ['type' => 'text', 'length' => null, 'default' => null, 'null' => true, 'comment' => null, 'precision' => null],
+ 'SOFTWARE_licence' => ['type' => 'integer', 'length' => 10, 'default' => null, 'null' => true, 'comment' => null, 'precision' => null, 'unsigned' => null, 'autoIncrement' => null],
+ '_indexes' => [
+ 'manivelleServer_SOFTWARE_SOFTWARE_licence2_idx' => ['type' => 'index', 'columns' => ['SOFTWARE_licence'], 'length' => []],
+ ],
+ '_constraints' => [
+ 'primary' => ['type' => 'primary', 'columns' => ['SOFTWARE_id', 'SOFTWARE_name'], 'length' => []],
+ 'manivelleServer_SOFTWARE_SOFTWARE_url_repository1_idx' => ['type' => 'unique', 'columns' => ['SOFTWARE_url_repository'], 'length' => []],
+ 'SOFTWARE_SOFTWARE_licence_fkey' => ['type' => 'foreign', 'columns' => ['SOFTWARE_licence'], 'references' => ['license', 'LICENSE_id'], 'update' => 'noAction', 'delete' => 'noAction', 'length' => []],
+ ],
+ ];
+ // @codingStandardsIgnoreEnd
+
+ /**
+ * Records
+ *
+ * @var array
+ */
+ public $records = [
+ [
+ 'SOFTWARE_id' => 1,
+ 'SOFTWARE_name' => 'ee278e7e-c9f3-4a5d-b7dd-fa190bdcaece',
+ 'SOFTWARE_url_repository' => 'Lorem ipsum dolor sit amet',
+ 'SOFTWARE_description' => 'Lorem ipsum dolor sit amet, aliquet feugiat. Convallis morbi fringilla gravida, phasellus feugiat dapibus velit nunc, pulvinar eget sollicitudin venenatis cum nullam, vivamus ut a sed, mollitia lectus. Nulla vestibulum massa neque ut et, id hendrerit sit, feugiat in taciti enim proin nibh, tempor dignissim, rhoncus duis vestibulum nunc mattis convallis.',
+ 'SOFTWARE_licence' => 1
+ ],
+ ];
+}
--- /dev/null
+<?php
+namespace App\Test\Fixture;
+
+use Cake\TestSuite\Fixture\TestFixture;
+
+/**
+ * SoftwareRelationshipFixture
+ *
+ */
+class SoftwareRelationshipFixture extends TestFixture
+{
+
+ /**
+ * Table name
+ *
+ * @var string
+ */
+ public $table = 'software_relationship';
+
+ /**
+ * Fields
+ *
+ * @var array
+ */
+ // @codingStandardsIgnoreStart
+ public $fields = [
+ 'SOFTWARE_RELATIONSHIP_from' => ['type' => 'integer', 'length' => 10, 'default' => null, 'null' => false, 'comment' => null, 'precision' => null, 'unsigned' => null, 'autoIncrement' => null],
+ 'SOFTWARE_RELATIONSHIP_to' => ['type' => 'integer', 'length' => 10, 'default' => null, 'null' => false, 'comment' => null, 'precision' => null, 'unsigned' => null, 'autoIncrement' => null],
+ 'SOFTWARE_RELATIONSHIP_type' => ['type' => 'integer', 'length' => 10, 'default' => null, 'null' => false, 'comment' => null, 'precision' => null, 'unsigned' => null, 'autoIncrement' => null],
+ '_indexes' => [
+ 'manivelleServer_SOFTWARE_RELATIONSHIP_SOFTWARE_RELATIONSHIP_to2' => ['type' => 'index', 'columns' => ['SOFTWARE_RELATIONSHIP_to'], 'length' => []],
+ 'manivelleServer_SOFTWARE_RELATIONSHIP_SOFTWARE_RELATIONSHIP_typ' => ['type' => 'index', 'columns' => ['SOFTWARE_RELATIONSHIP_type'], 'length' => []],
+ ],
+ '_constraints' => [
+ 'primary' => ['type' => 'primary', 'columns' => ['SOFTWARE_RELATIONSHIP_from', 'SOFTWARE_RELATIONSHIP_to', 'SOFTWARE_RELATIONSHIP_type'], 'length' => []],
+ 'SOFTWARE_RELATIONSHIP_SOFTWARE_RELATIONSHIP_type_fkey' => ['type' => 'foreign', 'columns' => ['SOFTWARE_RELATIONSHIP_type'], 'references' => ['relationship_type', 'RELATIONSHIP_TYPE_id'], 'update' => 'noAction', 'delete' => 'noAction', 'length' => []],
+ ],
+ ];
+ // @codingStandardsIgnoreEnd
+
+ /**
+ * Records
+ *
+ * @var array
+ */
+ public $records = [
+ [
+ 'SOFTWARE_RELATIONSHIP_from' => 1,
+ 'SOFTWARE_RELATIONSHIP_to' => 1,
+ 'SOFTWARE_RELATIONSHIP_type' => 1
+ ],
+ ];
+}
--- /dev/null
+<?php
+namespace App\Test\Fixture;
+
+use Cake\TestSuite\Fixture\TestFixture;
+
+/**
+ * SoftwaresFixture
+ *
+ */
+class SoftwaresFixture extends TestFixture
+{
+
+ /**
+ * Fields
+ *
+ * @var array
+ */
+ // @codingStandardsIgnoreStart
+ public $fields = [
+ 'id' => ['type' => 'biginteger', 'length' => 20, 'autoIncrement' => true, 'default' => null, 'null' => false, 'comment' => null, 'precision' => null, 'unsigned' => null],
+ 'softwarename' => ['type' => 'text', 'length' => null, 'default' => null, 'null' => false, 'comment' => null, 'precision' => null],
+ 'url_repository' => ['type' => 'text', 'length' => null, 'default' => null, 'null' => false, 'comment' => null, 'precision' => null],
+ 'description' => ['type' => 'text', 'length' => null, 'default' => null, 'null' => true, 'comment' => null, 'precision' => null],
+ 'licence_id' => ['type' => 'biginteger', 'length' => 20, 'default' => null, 'null' => true, 'comment' => null, 'precision' => null, 'unsigned' => null, 'autoIncrement' => null],
+ 'created' => ['type' => 'timestamp', 'length' => null, 'default' => null, 'null' => true, 'comment' => null, 'precision' => null],
+ 'modified' => ['type' => 'timestamp', 'length' => null, 'default' => null, 'null' => true, 'comment' => null, 'precision' => null],
+ '_indexes' => [
+ 'idx_17618_fk_software_licence_idx' => ['type' => 'index', 'columns' => ['licence_id'], 'length' => []],
+ ],
+ '_constraints' => [
+ 'primary' => ['type' => 'primary', 'columns' => ['id', 'softwarename'], 'length' => []],
+ 'idx_17618_software_url_repository_unique' => ['type' => 'unique', 'columns' => ['url_repository'], 'length' => []],
+ 'fk_software_licence' => ['type' => 'foreign', 'columns' => ['licence_id'], 'references' => ['licenses', 'id'], 'update' => 'noAction', 'delete' => 'noAction', 'length' => []],
+ ],
+ ];
+ // @codingStandardsIgnoreEnd
+
+ /**
+ * Records
+ *
+ * @var array
+ */
+ public $records = [
+ [
+ 'id' => '',
+ 'softwarename' => 'Lorem ipsum dolor sit amet, aliquet feugiat. Convallis morbi fringilla gravida, phasellus feugiat dapibus velit nunc, pulvinar eget sollicitudin venenatis cum nullam, vivamus ut a sed, mollitia lectus. Nulla vestibulum massa neque ut et, id hendrerit sit, feugiat in taciti enim proin nibh, tempor dignissim, rhoncus duis vestibulum nunc mattis convallis.',
+ 'url_repository' => 'Lorem ipsum dolor sit amet, aliquet feugiat. Convallis morbi fringilla gravida, phasellus feugiat dapibus velit nunc, pulvinar eget sollicitudin venenatis cum nullam, vivamus ut a sed, mollitia lectus. Nulla vestibulum massa neque ut et, id hendrerit sit, feugiat in taciti enim proin nibh, tempor dignissim, rhoncus duis vestibulum nunc mattis convallis.',
+ 'description' => 'Lorem ipsum dolor sit amet, aliquet feugiat. Convallis morbi fringilla gravida, phasellus feugiat dapibus velit nunc, pulvinar eget sollicitudin venenatis cum nullam, vivamus ut a sed, mollitia lectus. Nulla vestibulum massa neque ut et, id hendrerit sit, feugiat in taciti enim proin nibh, tempor dignissim, rhoncus duis vestibulum nunc mattis convallis.',
+ 'licence_id' => '',
+ 'created' => 1459435671,
+ 'modified' => 1459435671
+ ],
+ ];
+}
--- /dev/null
+<?php
+namespace App\Test\Fixture;
+
+use Cake\TestSuite\Fixture\TestFixture;
+
+/**
+ * SoftwaresRelationshipsFixture
+ *
+ */
+class SoftwaresRelationshipsFixture extends TestFixture
+{
+
+ /**
+ * Fields
+ *
+ * @var array
+ */
+ // @codingStandardsIgnoreStart
+ public $fields = [
+ 'software_id' => ['type' => 'biginteger', 'length' => 20, 'default' => null, 'null' => false, 'comment' => null, 'precision' => null, 'unsigned' => null, 'autoIncrement' => null],
+ 'recipient_id' => ['type' => 'biginteger', 'length' => 20, 'default' => null, 'null' => false, 'comment' => null, 'precision' => null, 'unsigned' => null, 'autoIncrement' => null],
+ 'relationship_type_id' => ['type' => 'biginteger', 'length' => 20, 'default' => null, 'null' => false, 'comment' => null, 'precision' => null, 'unsigned' => null, 'autoIncrement' => null],
+ 'created' => ['type' => 'timestamp', 'length' => null, 'default' => null, 'null' => true, 'comment' => null, 'precision' => null],
+ 'modified' => ['type' => 'timestamp', 'length' => null, 'default' => null, 'null' => true, 'comment' => null, 'precision' => null],
+ '_indexes' => [
+ 'idx_17625_fk_software_relationship_relation_type_idx' => ['type' => 'index', 'columns' => ['relationship_type_id'], 'length' => []],
+ 'idx_17625_fk_software_relationship_to_idx' => ['type' => 'index', 'columns' => ['recipient_id'], 'length' => []],
+ ],
+ '_constraints' => [
+ 'primary' => ['type' => 'primary', 'columns' => ['software_id', 'recipient_id', 'relationship_type_id'], 'length' => []],
+ 'fk_software_relationship_relation_type' => ['type' => 'foreign', 'columns' => ['relationship_type_id'], 'references' => ['relationship_types', 'id'], 'update' => 'noAction', 'delete' => 'noAction', 'length' => []],
+ ],
+ ];
+ // @codingStandardsIgnoreEnd
+
+ /**
+ * Records
+ *
+ * @var array
+ */
+ public $records = [
+ [
+ 'software_id' => '',
+ 'recipient_id' => '',
+ 'relationship_type_id' => '',
+ 'created' => 1459435671,
+ 'modified' => 1459435671
+ ],
+ ];
+}
--- /dev/null
+<?php
+namespace App\Test\Fixture;
+
+use Cake\TestSuite\Fixture\TestFixture;
+
+/**
+ * UserTypesFixture
+ *
+ */
+class UserTypesFixture extends TestFixture
+{
+
+ /**
+ * Fields
+ *
+ * @var array
+ */
+ // @codingStandardsIgnoreStart
+ public $fields = [
+ 'id' => ['type' => 'biginteger', 'length' => 20, 'autoIncrement' => true, 'default' => null, 'null' => false, 'comment' => null, 'precision' => null, 'unsigned' => null],
+ 'name' => ['type' => 'text', 'length' => null, 'default' => null, 'null' => true, 'comment' => null, 'precision' => null],
+ 'created' => ['type' => 'timestamp', 'length' => null, 'default' => null, 'null' => true, 'comment' => null, 'precision' => null],
+ 'modified' => ['type' => 'timestamp', 'length' => null, 'default' => null, 'null' => true, 'comment' => null, 'precision' => null],
+ 'cd' => ['type' => 'text', 'length' => null, 'default' => null, 'null' => true, 'comment' => null, 'precision' => null],
+ '_constraints' => [
+ 'primary' => ['type' => 'primary', 'columns' => ['id'], 'length' => []],
+ ],
+ ];
+ // @codingStandardsIgnoreEnd
+
+ /**
+ * Records
+ *
+ * @var array
+ */
+ public $records = [
+ [
+ 'id' => '',
+ 'name' => 'Lorem ipsum dolor sit amet, aliquet feugiat. Convallis morbi fringilla gravida, phasellus feugiat dapibus velit nunc, pulvinar eget sollicitudin venenatis cum nullam, vivamus ut a sed, mollitia lectus. Nulla vestibulum massa neque ut et, id hendrerit sit, feugiat in taciti enim proin nibh, tempor dignissim, rhoncus duis vestibulum nunc mattis convallis.',
+ 'created' => 1459435671,
+ 'modified' => 1459435671,
+ 'cd' => 'Lorem ipsum dolor sit amet, aliquet feugiat. Convallis morbi fringilla gravida, phasellus feugiat dapibus velit nunc, pulvinar eget sollicitudin venenatis cum nullam, vivamus ut a sed, mollitia lectus. Nulla vestibulum massa neque ut et, id hendrerit sit, feugiat in taciti enim proin nibh, tempor dignissim, rhoncus duis vestibulum nunc mattis convallis.'
+ ],
+ ];
+}
--- /dev/null
+<?php
+namespace App\Test\Fixture;
+
+use Cake\TestSuite\Fixture\TestFixture;
+
+/**
+ * UsersFixture
+ *
+ */
+class UsersFixture extends TestFixture
+{
+
+ /**
+ * Fields
+ *
+ * @var array
+ */
+ // @codingStandardsIgnoreStart
+ public $fields = [
+ 'id' => ['type' => 'biginteger', 'length' => 20, 'autoIncrement' => true, 'default' => null, 'null' => false, 'comment' => null, 'precision' => null, 'unsigned' => null],
+ 'username' => ['type' => 'text', 'length' => null, 'default' => null, 'null' => true, 'comment' => null, 'precision' => null],
+ 'created' => ['type' => 'timestamp', 'length' => null, 'default' => null, 'null' => false, 'comment' => null, 'precision' => null],
+ 'logo_url' => ['type' => 'text', 'length' => null, 'default' => null, 'null' => true, 'comment' => null, 'precision' => null],
+ 'url' => ['type' => 'text', 'length' => null, 'default' => null, 'null' => true, 'comment' => null, 'precision' => null],
+ 'user_type_id' => ['type' => 'biginteger', 'length' => 20, 'default' => null, 'null' => false, 'comment' => null, 'precision' => null, 'unsigned' => null, 'autoIncrement' => null],
+ 'description' => ['type' => 'text', 'length' => null, 'default' => null, 'null' => true, 'comment' => null, 'precision' => null],
+ 'modified' => ['type' => 'timestamp', 'length' => null, 'default' => null, 'null' => false, 'comment' => null, 'precision' => null],
+ 'role' => ['type' => 'text', 'length' => null, 'default' => null, 'null' => false, 'comment' => null, 'precision' => null],
+ 'password' => ['type' => 'text', 'length' => null, 'default' => null, 'null' => false, 'comment' => null, 'precision' => null],
+ '_indexes' => [
+ 'idx_17630_fk_users_user_types_idx' => ['type' => 'index', 'columns' => ['user_type_id'], 'length' => []],
+ ],
+ '_constraints' => [
+ 'primary' => ['type' => 'primary', 'columns' => ['id', 'user_type_id'], 'length' => []],
+ 'fk_user_user_type' => ['type' => 'foreign', 'columns' => ['user_type_id'], 'references' => ['user_types', 'id'], 'update' => 'noAction', 'delete' => 'noAction', 'length' => []],
+ ],
+ ];
+ // @codingStandardsIgnoreEnd
+
+ /**
+ * Records
+ *
+ * @var array
+ */
+ public $records = [
+ [
+ 'id' => '',
+ 'username' => 'Lorem ipsum dolor sit amet, aliquet feugiat. Convallis morbi fringilla gravida, phasellus feugiat dapibus velit nunc, pulvinar eget sollicitudin venenatis cum nullam, vivamus ut a sed, mollitia lectus. Nulla vestibulum massa neque ut et, id hendrerit sit, feugiat in taciti enim proin nibh, tempor dignissim, rhoncus duis vestibulum nunc mattis convallis.',
+ 'created' => 1459435671,
+ 'logo_url' => 'Lorem ipsum dolor sit amet, aliquet feugiat. Convallis morbi fringilla gravida, phasellus feugiat dapibus velit nunc, pulvinar eget sollicitudin venenatis cum nullam, vivamus ut a sed, mollitia lectus. Nulla vestibulum massa neque ut et, id hendrerit sit, feugiat in taciti enim proin nibh, tempor dignissim, rhoncus duis vestibulum nunc mattis convallis.',
+ 'url' => 'Lorem ipsum dolor sit amet, aliquet feugiat. Convallis morbi fringilla gravida, phasellus feugiat dapibus velit nunc, pulvinar eget sollicitudin venenatis cum nullam, vivamus ut a sed, mollitia lectus. Nulla vestibulum massa neque ut et, id hendrerit sit, feugiat in taciti enim proin nibh, tempor dignissim, rhoncus duis vestibulum nunc mattis convallis.',
+ 'user_type_id' => '',
+ 'description' => 'Lorem ipsum dolor sit amet, aliquet feugiat. Convallis morbi fringilla gravida, phasellus feugiat dapibus velit nunc, pulvinar eget sollicitudin venenatis cum nullam, vivamus ut a sed, mollitia lectus. Nulla vestibulum massa neque ut et, id hendrerit sit, feugiat in taciti enim proin nibh, tempor dignissim, rhoncus duis vestibulum nunc mattis convallis.',
+ 'modified' => 1459435671,
+ 'role' => 'Lorem ipsum dolor sit amet, aliquet feugiat. Convallis morbi fringilla gravida, phasellus feugiat dapibus velit nunc, pulvinar eget sollicitudin venenatis cum nullam, vivamus ut a sed, mollitia lectus. Nulla vestibulum massa neque ut et, id hendrerit sit, feugiat in taciti enim proin nibh, tempor dignissim, rhoncus duis vestibulum nunc mattis convallis.',
+ 'password' => 'Lorem ipsum dolor sit amet, aliquet feugiat. Convallis morbi fringilla gravida, phasellus feugiat dapibus velit nunc, pulvinar eget sollicitudin venenatis cum nullam, vivamus ut a sed, mollitia lectus. Nulla vestibulum massa neque ut et, id hendrerit sit, feugiat in taciti enim proin nibh, tempor dignissim, rhoncus duis vestibulum nunc mattis convallis.'
+ ],
+ ];
+}
--- /dev/null
+<?php
+namespace App\Test\Fixture;
+
+use Cake\TestSuite\Fixture\TestFixture;
+
+/**
+ * UsersRelationshipTypesSoftwaresFixture
+ *
+ */
+class UsersRelationshipTypesSoftwaresFixture extends TestFixture
+{
+
+ /**
+ * Fields
+ *
+ * @var array
+ */
+ // @codingStandardsIgnoreStart
+ public $fields = [
+ 'software_id' => ['type' => 'biginteger', 'length' => 20, 'default' => null, 'null' => false, 'comment' => null, 'precision' => null, 'unsigned' => null, 'autoIncrement' => null],
+ 'user_id' => ['type' => 'biginteger', 'length' => 20, 'default' => null, 'null' => false, 'comment' => null, 'precision' => null, 'unsigned' => null, 'autoIncrement' => null],
+ 'relationship_type_id' => ['type' => 'biginteger', 'length' => 20, 'default' => null, 'null' => true, 'comment' => null, 'precision' => null, 'unsigned' => null, 'autoIncrement' => null],
+ 'creadted' => ['type' => 'timestamp', 'length' => null, 'default' => null, 'null' => true, 'comment' => null, 'precision' => null],
+ 'modified' => ['type' => 'timestamp', 'length' => null, 'default' => null, 'null' => true, 'comment' => null, 'precision' => null],
+ '_indexes' => [
+ 'idx_17640_fk_entity_software_relationship_entity_idx' => ['type' => 'index', 'columns' => ['user_id'], 'length' => []],
+ 'idx_17640_fk_entity_software_relationship_relationship_type_idx' => ['type' => 'index', 'columns' => ['relationship_type_id'], 'length' => []],
+ ],
+ '_constraints' => [
+ 'primary' => ['type' => 'primary', 'columns' => ['software_id', 'user_id'], 'length' => []],
+ 'fk_user_software_relationship_relationship_type' => ['type' => 'foreign', 'columns' => ['relationship_type_id'], 'references' => ['relationship_types', 'id'], 'update' => 'noAction', 'delete' => 'noAction', 'length' => []],
+ ],
+ ];
+ // @codingStandardsIgnoreEnd
+
+ /**
+ * Records
+ *
+ * @var array
+ */
+ public $records = [
+ [
+ 'software_id' => '',
+ 'user_id' => '',
+ 'relationship_type_id' => '',
+ 'creadted' => 1459435672,
+ 'modified' => 1459435672
+ ],
+ ];
+}
--- /dev/null
+<?php
+namespace App\Test\Fixture;
+
+use Cake\TestSuite\Fixture\TestFixture;
+
+/**
+ * UsersRelationshipsFixture
+ *
+ */
+class UsersRelationshipsFixture extends TestFixture
+{
+
+ /**
+ * Fields
+ *
+ * @var array
+ */
+ // @codingStandardsIgnoreStart
+ public $fields = [
+ 'user_id' => ['type' => 'biginteger', 'length' => 20, 'default' => null, 'null' => false, 'comment' => null, 'precision' => null, 'unsigned' => null, 'autoIncrement' => null],
+ 'recipient_id' => ['type' => 'biginteger', 'length' => 20, 'default' => null, 'null' => false, 'comment' => null, 'precision' => null, 'unsigned' => null, 'autoIncrement' => null],
+ 'relationship_type_id' => ['type' => 'biginteger', 'length' => 20, 'default' => null, 'null' => false, 'comment' => null, 'precision' => null, 'unsigned' => null, 'autoIncrement' => null],
+ 'created' => ['type' => 'timestamp', 'length' => null, 'default' => null, 'null' => false, 'comment' => null, 'precision' => null],
+ 'modified' => ['type' => 'timestamp', 'length' => null, 'default' => null, 'null' => true, 'comment' => null, 'precision' => null],
+ '_indexes' => [
+ 'idx_17637_fk_entities_relationships_entities_idx' => ['type' => 'index', 'columns' => ['user_id'], 'length' => []],
+ 'idx_17637_fk_entities_relationships_relationtion_types_idx' => ['type' => 'index', 'columns' => ['relationship_type_id'], 'length' => []],
+ 'idx_17637_fk_entities_relationships_users_recipient_idx' => ['type' => 'index', 'columns' => ['recipient_id'], 'length' => []],
+ ],
+ '_constraints' => [
+ 'primary' => ['type' => 'primary', 'columns' => ['created'], 'length' => []],
+ 'fk_entities_relationships_relationtion_types' => ['type' => 'foreign', 'columns' => ['relationship_type_id'], 'references' => ['relationship_types', 'id'], 'update' => 'noAction', 'delete' => 'noAction', 'length' => []],
+ ],
+ ];
+ // @codingStandardsIgnoreEnd
+
+ /**
+ * Records
+ *
+ * @var array
+ */
+ public $records = [
+ [
+ 'user_id' => '',
+ 'recipient_id' => '',
+ 'relationship_type_id' => '',
+ 'created' => 1459435672,
+ 'modified' => 1459435672
+ ],
+ ];
+}
--- /dev/null
+<?php
+namespace App\Test\TestCase\Controller;
+
+use App\Controller\EntityController;
+use Cake\TestSuite\IntegrationTestCase;
+
+/**
+ * App\Controller\EntityController Test Case
+ */
+class EntityControllerTest extends IntegrationTestCase
+{
+
+ /**
+ * Fixtures
+ *
+ * @var array
+ */
+ public $fixtures = [
+ 'app.entity',
+ 'app.e_n_t_i_ties'
+ ];
+
+ /**
+ * Test index method
+ *
+ * @return void
+ */
+ public function testIndex()
+ {
+ $this->markTestIncomplete('Not implemented yet.');
+ }
+
+ /**
+ * Test view method
+ *
+ * @return void
+ */
+ public function testView()
+ {
+ $this->markTestIncomplete('Not implemented yet.');
+ }
+
+ /**
+ * Test add method
+ *
+ * @return void
+ */
+ public function testAdd()
+ {
+ $this->markTestIncomplete('Not implemented yet.');
+ }
+
+ /**
+ * Test edit method
+ *
+ * @return void
+ */
+ public function testEdit()
+ {
+ $this->markTestIncomplete('Not implemented yet.');
+ }
+
+ /**
+ * Test delete method
+ *
+ * @return void
+ */
+ public function testDelete()
+ {
+ $this->markTestIncomplete('Not implemented yet.');
+ }
+}
--- /dev/null
+<?php
+namespace App\Test\TestCase\Controller;
+
+use App\Controller\EntitySoftwareRelationshipController;
+use Cake\TestSuite\IntegrationTestCase;
+
+/**
+ * App\Controller\EntitySoftwareRelationshipController Test Case
+ */
+class EntitySoftwareRelationshipControllerTest extends IntegrationTestCase
+{
+
+ /**
+ * Fixtures
+ *
+ * @var array
+ */
+ public $fixtures = [
+ 'app.entity_software_relationship',
+ 'app.e_n_t_i_t_y_s_o_f_t_w_a_r_e_r_e_l_a_t_i_o_n_s_h_i_p_softwares',
+ 'app.e_n_t_i_t_y_s_o_f_t_w_a_r_e_r_e_l_a_t_i_o_n_s_h_i_p_entities',
+ 'app.relationship_type',
+ 'app.r_e_l_a_t_i_o_n_s_h_i_p_t_y_p_es'
+ ];
+
+ /**
+ * Test index method
+ *
+ * @return void
+ */
+ public function testIndex()
+ {
+ $this->markTestIncomplete('Not implemented yet.');
+ }
+
+ /**
+ * Test view method
+ *
+ * @return void
+ */
+ public function testView()
+ {
+ $this->markTestIncomplete('Not implemented yet.');
+ }
+
+ /**
+ * Test add method
+ *
+ * @return void
+ */
+ public function testAdd()
+ {
+ $this->markTestIncomplete('Not implemented yet.');
+ }
+
+ /**
+ * Test edit method
+ *
+ * @return void
+ */
+ public function testEdit()
+ {
+ $this->markTestIncomplete('Not implemented yet.');
+ }
+
+ /**
+ * Test delete method
+ *
+ * @return void
+ */
+ public function testDelete()
+ {
+ $this->markTestIncomplete('Not implemented yet.');
+ }
+}
--- /dev/null
+<?php
+namespace App\Test\TestCase\Controller;
+
+use App\Controller\EntityTypeController;
+use Cake\TestSuite\IntegrationTestCase;
+
+/**
+ * App\Controller\EntityTypeController Test Case
+ */
+class EntityTypeControllerTest extends IntegrationTestCase
+{
+
+ /**
+ * Fixtures
+ *
+ * @var array
+ */
+ public $fixtures = [
+ 'app.entity_type',
+ 'app.e_n_t_i_t_y_t_y_p_es'
+ ];
+
+ /**
+ * Test index method
+ *
+ * @return void
+ */
+ public function testIndex()
+ {
+ $this->markTestIncomplete('Not implemented yet.');
+ }
+
+ /**
+ * Test view method
+ *
+ * @return void
+ */
+ public function testView()
+ {
+ $this->markTestIncomplete('Not implemented yet.');
+ }
+
+ /**
+ * Test add method
+ *
+ * @return void
+ */
+ public function testAdd()
+ {
+ $this->markTestIncomplete('Not implemented yet.');
+ }
+
+ /**
+ * Test edit method
+ *
+ * @return void
+ */
+ public function testEdit()
+ {
+ $this->markTestIncomplete('Not implemented yet.');
+ }
+
+ /**
+ * Test delete method
+ *
+ * @return void
+ */
+ public function testDelete()
+ {
+ $this->markTestIncomplete('Not implemented yet.');
+ }
+}
--- /dev/null
+<?php
+namespace App\Test\TestCase\Controller;
+
+use App\Controller\LicenceTypesController;
+use Cake\TestSuite\IntegrationTestCase;
+
+/**
+ * App\Controller\LicenceTypesController Test Case
+ */
+class LicenceTypesControllerTest extends IntegrationTestCase
+{
+
+ /**
+ * Fixtures
+ *
+ * @var array
+ */
+ public $fixtures = [
+ 'app.licence_types'
+ ];
+
+ /**
+ * Test index method
+ *
+ * @return void
+ */
+ public function testIndex()
+ {
+ $this->markTestIncomplete('Not implemented yet.');
+ }
+
+ /**
+ * Test view method
+ *
+ * @return void
+ */
+ public function testView()
+ {
+ $this->markTestIncomplete('Not implemented yet.');
+ }
+
+ /**
+ * Test add method
+ *
+ * @return void
+ */
+ public function testAdd()
+ {
+ $this->markTestIncomplete('Not implemented yet.');
+ }
+
+ /**
+ * Test edit method
+ *
+ * @return void
+ */
+ public function testEdit()
+ {
+ $this->markTestIncomplete('Not implemented yet.');
+ }
+
+ /**
+ * Test delete method
+ *
+ * @return void
+ */
+ public function testDelete()
+ {
+ $this->markTestIncomplete('Not implemented yet.');
+ }
+}
--- /dev/null
+<?php
+namespace App\Test\TestCase\Controller;
+
+use App\Controller\LicenseController;
+use Cake\TestSuite\IntegrationTestCase;
+
+/**
+ * App\Controller\LicenseController Test Case
+ */
+class LicenseControllerTest extends IntegrationTestCase
+{
+
+ /**
+ * Fixtures
+ *
+ * @var array
+ */
+ public $fixtures = [
+ 'app.license',
+ 'app.l_i_c_e_n_s_es',
+ 'app.licnse_type',
+ 'app.l_i_c_e_n_s_e_t_y_p_es'
+ ];
+
+ /**
+ * Test index method
+ *
+ * @return void
+ */
+ public function testIndex()
+ {
+ $this->markTestIncomplete('Not implemented yet.');
+ }
+
+ /**
+ * Test view method
+ *
+ * @return void
+ */
+ public function testView()
+ {
+ $this->markTestIncomplete('Not implemented yet.');
+ }
+
+ /**
+ * Test add method
+ *
+ * @return void
+ */
+ public function testAdd()
+ {
+ $this->markTestIncomplete('Not implemented yet.');
+ }
+
+ /**
+ * Test edit method
+ *
+ * @return void
+ */
+ public function testEdit()
+ {
+ $this->markTestIncomplete('Not implemented yet.');
+ }
+
+ /**
+ * Test delete method
+ *
+ * @return void
+ */
+ public function testDelete()
+ {
+ $this->markTestIncomplete('Not implemented yet.');
+ }
+}
--- /dev/null
+<?php
+namespace App\Test\TestCase\Controller;
+
+use App\Controller\LicensesController;
+use Cake\TestSuite\IntegrationTestCase;
+
+/**
+ * App\Controller\LicensesController Test Case
+ */
+class LicensesControllerTest extends IntegrationTestCase
+{
+
+ /**
+ * Fixtures
+ *
+ * @var array
+ */
+ public $fixtures = [
+ 'app.licenses',
+ 'app.licence_types'
+ ];
+
+ /**
+ * Test index method
+ *
+ * @return void
+ */
+ public function testIndex()
+ {
+ $this->markTestIncomplete('Not implemented yet.');
+ }
+
+ /**
+ * Test view method
+ *
+ * @return void
+ */
+ public function testView()
+ {
+ $this->markTestIncomplete('Not implemented yet.');
+ }
+
+ /**
+ * Test add method
+ *
+ * @return void
+ */
+ public function testAdd()
+ {
+ $this->markTestIncomplete('Not implemented yet.');
+ }
+
+ /**
+ * Test edit method
+ *
+ * @return void
+ */
+ public function testEdit()
+ {
+ $this->markTestIncomplete('Not implemented yet.');
+ }
+
+ /**
+ * Test delete method
+ *
+ * @return void
+ */
+ public function testDelete()
+ {
+ $this->markTestIncomplete('Not implemented yet.');
+ }
+}
--- /dev/null
+<?php
+namespace App\Test\TestCase\Controller;
+
+use App\Controller\LicnseTypeController;
+use Cake\TestSuite\IntegrationTestCase;
+
+/**
+ * App\Controller\LicnseTypeController Test Case
+ */
+class LicnseTypeControllerTest extends IntegrationTestCase
+{
+
+ /**
+ * Fixtures
+ *
+ * @var array
+ */
+ public $fixtures = [
+ 'app.licnse_type',
+ 'app.l_i_c_e_n_s_e_t_y_p_es'
+ ];
+
+ /**
+ * Test index method
+ *
+ * @return void
+ */
+ public function testIndex()
+ {
+ $this->markTestIncomplete('Not implemented yet.');
+ }
+
+ /**
+ * Test view method
+ *
+ * @return void
+ */
+ public function testView()
+ {
+ $this->markTestIncomplete('Not implemented yet.');
+ }
+
+ /**
+ * Test add method
+ *
+ * @return void
+ */
+ public function testAdd()
+ {
+ $this->markTestIncomplete('Not implemented yet.');
+ }
+
+ /**
+ * Test edit method
+ *
+ * @return void
+ */
+ public function testEdit()
+ {
+ $this->markTestIncomplete('Not implemented yet.');
+ }
+
+ /**
+ * Test delete method
+ *
+ * @return void
+ */
+ public function testDelete()
+ {
+ $this->markTestIncomplete('Not implemented yet.');
+ }
+}
--- /dev/null
+<?php
+namespace App\Test\TestCase\Controller;
+
+use App\Controller\RelationshipTypeController;
+use Cake\TestSuite\IntegrationTestCase;
+
+/**
+ * App\Controller\RelationshipTypeController Test Case
+ */
+class RelationshipTypeControllerTest extends IntegrationTestCase
+{
+
+ /**
+ * Fixtures
+ *
+ * @var array
+ */
+ public $fixtures = [
+ 'app.relationship_type',
+ 'app.r_e_l_a_t_i_o_n_s_h_i_p_t_y_p_es'
+ ];
+
+ /**
+ * Test index method
+ *
+ * @return void
+ */
+ public function testIndex()
+ {
+ $this->markTestIncomplete('Not implemented yet.');
+ }
+
+ /**
+ * Test view method
+ *
+ * @return void
+ */
+ public function testView()
+ {
+ $this->markTestIncomplete('Not implemented yet.');
+ }
+
+ /**
+ * Test add method
+ *
+ * @return void
+ */
+ public function testAdd()
+ {
+ $this->markTestIncomplete('Not implemented yet.');
+ }
+
+ /**
+ * Test edit method
+ *
+ * @return void
+ */
+ public function testEdit()
+ {
+ $this->markTestIncomplete('Not implemented yet.');
+ }
+
+ /**
+ * Test delete method
+ *
+ * @return void
+ */
+ public function testDelete()
+ {
+ $this->markTestIncomplete('Not implemented yet.');
+ }
+}
--- /dev/null
+<?php
+namespace App\Test\TestCase\Controller;
+
+use App\Controller\RelationshipTypesController;
+use Cake\TestSuite\IntegrationTestCase;
+
+/**
+ * App\Controller\RelationshipTypesController Test Case
+ */
+class RelationshipTypesControllerTest extends IntegrationTestCase
+{
+
+ /**
+ * Fixtures
+ *
+ * @var array
+ */
+ public $fixtures = [
+ 'app.relationship_types',
+ 'app.softwares_relationships',
+ 'app.softwares',
+ 'app.licenses',
+ 'app.licence_types',
+ 'app.recipients',
+ 'app.users_relationships',
+ 'app.users',
+ 'app.user_types'
+ ];
+
+ /**
+ * Test index method
+ *
+ * @return void
+ */
+ public function testIndex()
+ {
+ $this->markTestIncomplete('Not implemented yet.');
+ }
+
+ /**
+ * Test view method
+ *
+ * @return void
+ */
+ public function testView()
+ {
+ $this->markTestIncomplete('Not implemented yet.');
+ }
+
+ /**
+ * Test add method
+ *
+ * @return void
+ */
+ public function testAdd()
+ {
+ $this->markTestIncomplete('Not implemented yet.');
+ }
+
+ /**
+ * Test edit method
+ *
+ * @return void
+ */
+ public function testEdit()
+ {
+ $this->markTestIncomplete('Not implemented yet.');
+ }
+
+ /**
+ * Test delete method
+ *
+ * @return void
+ */
+ public function testDelete()
+ {
+ $this->markTestIncomplete('Not implemented yet.');
+ }
+}
--- /dev/null
+<?php
+namespace App\Test\TestCase\Controller;
+
+use App\Controller\ReviewController;
+use Cake\TestSuite\IntegrationTestCase;
+
+/**
+ * App\Controller\ReviewController Test Case
+ */
+class ReviewControllerTest extends IntegrationTestCase
+{
+
+ /**
+ * Fixtures
+ *
+ * @var array
+ */
+ public $fixtures = [
+ 'app.review',
+ 'app.r_e_v_i_e_ws',
+ 'app.r_e_v_i_e_w_entities',
+ 'app.r_e_v_i_e_w_softwares'
+ ];
+
+ /**
+ * Test index method
+ *
+ * @return void
+ */
+ public function testIndex()
+ {
+ $this->markTestIncomplete('Not implemented yet.');
+ }
+
+ /**
+ * Test view method
+ *
+ * @return void
+ */
+ public function testView()
+ {
+ $this->markTestIncomplete('Not implemented yet.');
+ }
+
+ /**
+ * Test add method
+ *
+ * @return void
+ */
+ public function testAdd()
+ {
+ $this->markTestIncomplete('Not implemented yet.');
+ }
+
+ /**
+ * Test edit method
+ *
+ * @return void
+ */
+ public function testEdit()
+ {
+ $this->markTestIncomplete('Not implemented yet.');
+ }
+
+ /**
+ * Test delete method
+ *
+ * @return void
+ */
+ public function testDelete()
+ {
+ $this->markTestIncomplete('Not implemented yet.');
+ }
+}
--- /dev/null
+<?php
+namespace App\Test\TestCase\Controller;
+
+use App\Controller\ReviewsController;
+use Cake\TestSuite\IntegrationTestCase;
+
+/**
+ * App\Controller\ReviewsController Test Case
+ */
+class ReviewsControllerTest extends IntegrationTestCase
+{
+
+ /**
+ * Fixtures
+ *
+ * @var array
+ */
+ public $fixtures = [
+ 'app.reviews',
+ 'app.users',
+ 'app.user_types',
+ 'app.softwares',
+ 'app.licenses',
+ 'app.licence_types'
+ ];
+
+ /**
+ * Test index method
+ *
+ * @return void
+ */
+ public function testIndex()
+ {
+ $this->markTestIncomplete('Not implemented yet.');
+ }
+
+ /**
+ * Test view method
+ *
+ * @return void
+ */
+ public function testView()
+ {
+ $this->markTestIncomplete('Not implemented yet.');
+ }
+
+ /**
+ * Test add method
+ *
+ * @return void
+ */
+ public function testAdd()
+ {
+ $this->markTestIncomplete('Not implemented yet.');
+ }
+
+ /**
+ * Test edit method
+ *
+ * @return void
+ */
+ public function testEdit()
+ {
+ $this->markTestIncomplete('Not implemented yet.');
+ }
+
+ /**
+ * Test delete method
+ *
+ * @return void
+ */
+ public function testDelete()
+ {
+ $this->markTestIncomplete('Not implemented yet.');
+ }
+}
--- /dev/null
+<?php
+namespace App\Test\TestCase\Controller;
+
+use App\Controller\ScreenshotsController;
+use Cake\TestSuite\IntegrationTestCase;
+
+/**
+ * App\Controller\ScreenshotsController Test Case
+ */
+class ScreenshotsControllerTest extends IntegrationTestCase
+{
+
+ /**
+ * Fixtures
+ *
+ * @var array
+ */
+ public $fixtures = [
+ 'app.screenshots',
+ 'app.softwares',
+ 'app.licenses',
+ 'app.licence_types'
+ ];
+
+ /**
+ * Test index method
+ *
+ * @return void
+ */
+ public function testIndex()
+ {
+ $this->markTestIncomplete('Not implemented yet.');
+ }
+
+ /**
+ * Test view method
+ *
+ * @return void
+ */
+ public function testView()
+ {
+ $this->markTestIncomplete('Not implemented yet.');
+ }
+
+ /**
+ * Test add method
+ *
+ * @return void
+ */
+ public function testAdd()
+ {
+ $this->markTestIncomplete('Not implemented yet.');
+ }
+
+ /**
+ * Test edit method
+ *
+ * @return void
+ */
+ public function testEdit()
+ {
+ $this->markTestIncomplete('Not implemented yet.');
+ }
+
+ /**
+ * Test delete method
+ *
+ * @return void
+ */
+ public function testDelete()
+ {
+ $this->markTestIncomplete('Not implemented yet.');
+ }
+}
--- /dev/null
+<?php
+namespace App\Test\TestCase\Controller;
+
+use App\Controller\SoftwareController;
+use Cake\TestSuite\IntegrationTestCase;
+
+/**
+ * App\Controller\SoftwareController Test Case
+ */
+class SoftwareControllerTest extends IntegrationTestCase
+{
+
+ /**
+ * Fixtures
+ *
+ * @var array
+ */
+ public $fixtures = [
+ 'app.software',
+ 'app.s_o_f_t_w_a_r_es'
+ ];
+
+ /**
+ * Test index method
+ *
+ * @return void
+ */
+ public function testIndex()
+ {
+ $this->markTestIncomplete('Not implemented yet.');
+ }
+
+ /**
+ * Test view method
+ *
+ * @return void
+ */
+ public function testView()
+ {
+ $this->markTestIncomplete('Not implemented yet.');
+ }
+
+ /**
+ * Test add method
+ *
+ * @return void
+ */
+ public function testAdd()
+ {
+ $this->markTestIncomplete('Not implemented yet.');
+ }
+
+ /**
+ * Test edit method
+ *
+ * @return void
+ */
+ public function testEdit()
+ {
+ $this->markTestIncomplete('Not implemented yet.');
+ }
+
+ /**
+ * Test delete method
+ *
+ * @return void
+ */
+ public function testDelete()
+ {
+ $this->markTestIncomplete('Not implemented yet.');
+ }
+}
--- /dev/null
+<?php
+namespace App\Test\TestCase\Controller;
+
+use App\Controller\SoftwareRelationshipController;
+use Cake\TestSuite\IntegrationTestCase;
+
+/**
+ * App\Controller\SoftwareRelationshipController Test Case
+ */
+class SoftwareRelationshipControllerTest extends IntegrationTestCase
+{
+
+ /**
+ * Fixtures
+ *
+ * @var array
+ */
+ public $fixtures = [
+ 'app.software_relationship'
+ ];
+
+ /**
+ * Test index method
+ *
+ * @return void
+ */
+ public function testIndex()
+ {
+ $this->markTestIncomplete('Not implemented yet.');
+ }
+
+ /**
+ * Test view method
+ *
+ * @return void
+ */
+ public function testView()
+ {
+ $this->markTestIncomplete('Not implemented yet.');
+ }
+
+ /**
+ * Test add method
+ *
+ * @return void
+ */
+ public function testAdd()
+ {
+ $this->markTestIncomplete('Not implemented yet.');
+ }
+
+ /**
+ * Test edit method
+ *
+ * @return void
+ */
+ public function testEdit()
+ {
+ $this->markTestIncomplete('Not implemented yet.');
+ }
+
+ /**
+ * Test delete method
+ *
+ * @return void
+ */
+ public function testDelete()
+ {
+ $this->markTestIncomplete('Not implemented yet.');
+ }
+}
--- /dev/null
+<?php
+namespace App\Test\TestCase\Controller;
+
+use App\Controller\SoftwaresController;
+use Cake\TestSuite\IntegrationTestCase;
+
+/**
+ * App\Controller\SoftwaresController Test Case
+ */
+class SoftwaresControllerTest extends IntegrationTestCase
+{
+
+ /**
+ * Fixtures
+ *
+ * @var array
+ */
+ public $fixtures = [
+ 'app.softwares',
+ 'app.licenses',
+ 'app.licence_types'
+ ];
+
+ /**
+ * Test index method
+ *
+ * @return void
+ */
+ public function testIndex()
+ {
+ $this->markTestIncomplete('Not implemented yet.');
+ }
+
+ /**
+ * Test view method
+ *
+ * @return void
+ */
+ public function testView()
+ {
+ $this->markTestIncomplete('Not implemented yet.');
+ }
+
+ /**
+ * Test add method
+ *
+ * @return void
+ */
+ public function testAdd()
+ {
+ $this->markTestIncomplete('Not implemented yet.');
+ }
+
+ /**
+ * Test edit method
+ *
+ * @return void
+ */
+ public function testEdit()
+ {
+ $this->markTestIncomplete('Not implemented yet.');
+ }
+
+ /**
+ * Test delete method
+ *
+ * @return void
+ */
+ public function testDelete()
+ {
+ $this->markTestIncomplete('Not implemented yet.');
+ }
+}
--- /dev/null
+<?php
+namespace App\Test\TestCase\Controller;
+
+use App\Controller\SoftwaresRelationshipsController;
+use Cake\TestSuite\IntegrationTestCase;
+
+/**
+ * App\Controller\SoftwaresRelationshipsController Test Case
+ */
+class SoftwaresRelationshipsControllerTest extends IntegrationTestCase
+{
+
+ /**
+ * Fixtures
+ *
+ * @var array
+ */
+ public $fixtures = [
+ 'app.softwares_relationships',
+ 'app.softwares',
+ 'app.licenses',
+ 'app.licence_types',
+ 'app.recipients',
+ 'app.relationship_types',
+ 'app.users_relationships',
+ 'app.users',
+ 'app.user_types'
+ ];
+
+ /**
+ * Test index method
+ *
+ * @return void
+ */
+ public function testIndex()
+ {
+ $this->markTestIncomplete('Not implemented yet.');
+ }
+
+ /**
+ * Test view method
+ *
+ * @return void
+ */
+ public function testView()
+ {
+ $this->markTestIncomplete('Not implemented yet.');
+ }
+
+ /**
+ * Test add method
+ *
+ * @return void
+ */
+ public function testAdd()
+ {
+ $this->markTestIncomplete('Not implemented yet.');
+ }
+
+ /**
+ * Test edit method
+ *
+ * @return void
+ */
+ public function testEdit()
+ {
+ $this->markTestIncomplete('Not implemented yet.');
+ }
+
+ /**
+ * Test delete method
+ *
+ * @return void
+ */
+ public function testDelete()
+ {
+ $this->markTestIncomplete('Not implemented yet.');
+ }
+}
--- /dev/null
+<?php
+namespace App\Test\TestCase\Controller;
+
+use App\Controller\UserTypesController;
+use Cake\TestSuite\IntegrationTestCase;
+
+/**
+ * App\Controller\UserTypesController Test Case
+ */
+class UserTypesControllerTest extends IntegrationTestCase
+{
+
+ /**
+ * Fixtures
+ *
+ * @var array
+ */
+ public $fixtures = [
+ 'app.user_types',
+ 'app.users'
+ ];
+
+ /**
+ * Test index method
+ *
+ * @return void
+ */
+ public function testIndex()
+ {
+ $this->markTestIncomplete('Not implemented yet.');
+ }
+
+ /**
+ * Test view method
+ *
+ * @return void
+ */
+ public function testView()
+ {
+ $this->markTestIncomplete('Not implemented yet.');
+ }
+
+ /**
+ * Test add method
+ *
+ * @return void
+ */
+ public function testAdd()
+ {
+ $this->markTestIncomplete('Not implemented yet.');
+ }
+
+ /**
+ * Test edit method
+ *
+ * @return void
+ */
+ public function testEdit()
+ {
+ $this->markTestIncomplete('Not implemented yet.');
+ }
+
+ /**
+ * Test delete method
+ *
+ * @return void
+ */
+ public function testDelete()
+ {
+ $this->markTestIncomplete('Not implemented yet.');
+ }
+}
--- /dev/null
+<?php
+namespace App\Test\TestCase\Controller;
+
+use App\Controller\UsersController;
+use Cake\TestSuite\IntegrationTestCase;
+
+/**
+ * App\Controller\UsersController Test Case
+ */
+class UsersControllerTest extends IntegrationTestCase
+{
+
+ /**
+ * Fixtures
+ *
+ * @var array
+ */
+ public $fixtures = [
+ 'app.users',
+ 'app.user_types'
+ ];
+
+ public function setUp()
+ {
+ parent::setUp();
+ $this->Users = TableRegistry::get('Users');
+ }
+
+
+ /**
+ * Test index method
+ *
+ * @return void
+ */
+ public function testIndex()
+ {
+ $this->markTestIncomplete('Not implemented yet.');
+ }
+
+ /**
+ * Test view method
+ *
+ * @return void
+ */
+ public function testView()
+ {
+ $this->markTestIncomplete('Not implemented yet.');
+ }
+
+ /**
+ * Test add method
+ *
+ * @return void
+ */
+ public function testAdd()
+ {
+ // Définit des données de session
+ $this->session([
+ 'Auth' => [
+ 'User' => [
+ 'id' => 9,
+ 'username' => 'Mickael',
+ 'password' => '8ie9nxz5',
+ ]
+ ]
+ ]);
+ $this->get('/articles/add');
+
+ $this->assertResponseOk();
+
+ $this->post('/users/add', $this->Users);
+
+ }
+
+ /**
+ * Test edit method
+ *
+ * @return void
+ */
+ public function testEdit()
+ {
+ $this->markTestIncomplete('Not implemented yet.');
+ }
+
+ /**
+ * Test delete method
+ *
+ * @return void
+ */
+ public function testDelete()
+ {
+ $this->markTestIncomplete('Not implemented yet.');
+ }
+}
--- /dev/null
+<?php
+namespace App\Test\TestCase\Controller;
+
+use App\Controller\UsersRelationshipTypesSoftwaresController;
+use Cake\TestSuite\IntegrationTestCase;
+
+/**
+ * App\Controller\UsersRelationshipTypesSoftwaresController Test Case
+ */
+class UsersRelationshipTypesSoftwaresControllerTest extends IntegrationTestCase
+{
+
+ /**
+ * Fixtures
+ *
+ * @var array
+ */
+ public $fixtures = [
+ 'app.users_relationship_types_softwares',
+ 'app.softwares',
+ 'app.licenses',
+ 'app.licence_types',
+ 'app.users',
+ 'app.user_types',
+ 'app.relationship_types',
+ 'app.softwares_relationships',
+ 'app.recipients',
+ 'app.users_relationships'
+ ];
+
+ /**
+ * Test index method
+ *
+ * @return void
+ */
+ public function testIndex()
+ {
+ $this->markTestIncomplete('Not implemented yet.');
+ }
+
+ /**
+ * Test view method
+ *
+ * @return void
+ */
+ public function testView()
+ {
+ $this->markTestIncomplete('Not implemented yet.');
+ }
+
+ /**
+ * Test add method
+ *
+ * @return void
+ */
+ public function testAdd()
+ {
+ $this->markTestIncomplete('Not implemented yet.');
+ }
+
+ /**
+ * Test edit method
+ *
+ * @return void
+ */
+ public function testEdit()
+ {
+ $this->markTestIncomplete('Not implemented yet.');
+ }
+
+ /**
+ * Test delete method
+ *
+ * @return void
+ */
+ public function testDelete()
+ {
+ $this->markTestIncomplete('Not implemented yet.');
+ }
+}
--- /dev/null
+<?php
+namespace App\Test\TestCase\Controller;
+
+use App\Controller\UsersRelationshipsController;
+use Cake\TestSuite\IntegrationTestCase;
+
+/**
+ * App\Controller\UsersRelationshipsController Test Case
+ */
+class UsersRelationshipsControllerTest extends IntegrationTestCase
+{
+
+ /**
+ * Fixtures
+ *
+ * @var array
+ */
+ public $fixtures = [
+ 'app.users_relationships',
+ 'app.users',
+ 'app.user_types',
+ 'app.recipients',
+ 'app.relationship_types',
+ 'app.softwares_relationships',
+ 'app.softwares',
+ 'app.licenses',
+ 'app.licence_types'
+ ];
+
+ /**
+ * Test index method
+ *
+ * @return void
+ */
+ public function testIndex()
+ {
+ $this->markTestIncomplete('Not implemented yet.');
+ }
+
+ /**
+ * Test view method
+ *
+ * @return void
+ */
+ public function testView()
+ {
+ $this->markTestIncomplete('Not implemented yet.');
+ }
+
+ /**
+ * Test add method
+ *
+ * @return void
+ */
+ public function testAdd()
+ {
+ $this->markTestIncomplete('Not implemented yet.');
+ }
+
+ /**
+ * Test edit method
+ *
+ * @return void
+ */
+ public function testEdit()
+ {
+ $this->markTestIncomplete('Not implemented yet.');
+ }
+
+ /**
+ * Test delete method
+ *
+ * @return void
+ */
+ public function testDelete()
+ {
+ $this->markTestIncomplete('Not implemented yet.');
+ }
+}
--- /dev/null
+<?php
+namespace App\Test\TestCase\Controller;
+
+use App\Controller\UsersTableController;
+use Cake\TestSuite\IntegrationTestCase;
+
+/**
+ * App\Controller\UsersTableController Test Case
+ */
+class UsersTableControllerTest extends IntegrationTestCase
+{
+
+ /**
+ * Test initial setup
+ *
+ * @return void
+ */
+ public function testInitialization()
+ {
+ $this->markTestIncomplete('Not implemented yet.');
+ }
+}
--- /dev/null
+<?php
+namespace App\Test\TestCase\Model\Table;
+
+use App\Model\Table\EntitySoftwareRelationshipTable;
+use Cake\ORM\TableRegistry;
+use Cake\TestSuite\TestCase;
+
+/**
+ * App\Model\Table\EntitySoftwareRelationshipTable Test Case
+ */
+class EntitySoftwareRelationshipTableTest extends TestCase
+{
+
+ /**
+ * Fixtures
+ *
+ * @var array
+ */
+ public $fixtures = [
+ 'app.entity_software_relationship',
+ 'app.e_n_t_i_t_y_s_o_f_t_w_a_r_e_r_e_l_a_t_i_o_n_s_h_i_p_softwares',
+ 'app.e_n_t_i_t_y_s_o_f_t_w_a_r_e_r_e_l_a_t_i_o_n_s_h_i_p_entities',
+ 'app.relationship_type'
+ ];
+
+ /**
+ * setUp method
+ *
+ * @return void
+ */
+ public function setUp()
+ {
+ parent::setUp();
+ $config = TableRegistry::exists('EntitySoftwareRelationship') ? [] : ['className' => 'App\Model\Table\EntitySoftwareRelationshipTable'];
+ $this->EntitySoftwareRelationship = TableRegistry::get('EntitySoftwareRelationship', $config);
+ }
+
+ /**
+ * tearDown method
+ *
+ * @return void
+ */
+ public function tearDown()
+ {
+ unset($this->EntitySoftwareRelationship);
+
+ parent::tearDown();
+ }
+
+ /**
+ * Test initialize method
+ *
+ * @return void
+ */
+ public function testInitialize()
+ {
+ $this->markTestIncomplete('Not implemented yet.');
+ }
+
+ /**
+ * Test buildRules method
+ *
+ * @return void
+ */
+ public function testBuildRules()
+ {
+ $this->markTestIncomplete('Not implemented yet.');
+ }
+}
--- /dev/null
+<?php
+namespace App\Test\TestCase\Model\Table;
+
+use App\Model\Table\EntityTable;
+use Cake\ORM\TableRegistry;
+use Cake\TestSuite\TestCase;
+
+/**
+ * App\Model\Table\EntityTable Test Case
+ */
+class EntityTableTest extends TestCase
+{
+
+ /**
+ * Fixtures
+ *
+ * @var array
+ */
+ public $fixtures = [
+ 'app.entity',
+ 'app.e_n_t_i_ties'
+ ];
+
+ /**
+ * setUp method
+ *
+ * @return void
+ */
+ public function setUp()
+ {
+ parent::setUp();
+ $config = TableRegistry::exists('Entity') ? [] : ['className' => 'App\Model\Table\EntityTable'];
+ $this->Entity = TableRegistry::get('Entity', $config);
+ }
+
+ /**
+ * tearDown method
+ *
+ * @return void
+ */
+ public function tearDown()
+ {
+ unset($this->Entity);
+
+ parent::tearDown();
+ }
+
+ /**
+ * Test initialize method
+ *
+ * @return void
+ */
+ public function testInitialize()
+ {
+ $this->markTestIncomplete('Not implemented yet.');
+ }
+
+ /**
+ * Test validationDefault method
+ *
+ * @return void
+ */
+ public function testValidationDefault()
+ {
+ $this->markTestIncomplete('Not implemented yet.');
+ }
+
+ /**
+ * Test buildRules method
+ *
+ * @return void
+ */
+ public function testBuildRules()
+ {
+ $this->markTestIncomplete('Not implemented yet.');
+ }
+}
--- /dev/null
+<?php
+namespace App\Test\TestCase\Model\Table;
+
+use App\Model\Table\EntityTypeTable;
+use Cake\ORM\TableRegistry;
+use Cake\TestSuite\TestCase;
+
+/**
+ * App\Model\Table\EntityTypeTable Test Case
+ */
+class EntityTypeTableTest extends TestCase
+{
+
+ /**
+ * Fixtures
+ *
+ * @var array
+ */
+ public $fixtures = [
+ 'app.entity_type',
+ 'app.e_n_t_i_t_y_t_y_p_es'
+ ];
+
+ /**
+ * setUp method
+ *
+ * @return void
+ */
+ public function setUp()
+ {
+ parent::setUp();
+ $config = TableRegistry::exists('EntityType') ? [] : ['className' => 'App\Model\Table\EntityTypeTable'];
+ $this->EntityType = TableRegistry::get('EntityType', $config);
+ }
+
+ /**
+ * tearDown method
+ *
+ * @return void
+ */
+ public function tearDown()
+ {
+ unset($this->EntityType);
+
+ parent::tearDown();
+ }
+
+ /**
+ * Test initialize method
+ *
+ * @return void
+ */
+ public function testInitialize()
+ {
+ $this->markTestIncomplete('Not implemented yet.');
+ }
+
+ /**
+ * Test validationDefault method
+ *
+ * @return void
+ */
+ public function testValidationDefault()
+ {
+ $this->markTestIncomplete('Not implemented yet.');
+ }
+
+ /**
+ * Test buildRules method
+ *
+ * @return void
+ */
+ public function testBuildRules()
+ {
+ $this->markTestIncomplete('Not implemented yet.');
+ }
+}
--- /dev/null
+<?php
+namespace App\Test\TestCase\Model\Table;
+
+use App\Model\Table\LicenseTable;
+use Cake\ORM\TableRegistry;
+use Cake\TestSuite\TestCase;
+
+/**
+ * App\Model\Table\LicenseTable Test Case
+ */
+class LicenseTableTest extends TestCase
+{
+
+ /**
+ * Fixtures
+ *
+ * @var array
+ */
+ public $fixtures = [
+ 'app.license',
+ 'app.l_i_c_e_n_s_es',
+ 'app.licnse_type'
+ ];
+
+ /**
+ * setUp method
+ *
+ * @return void
+ */
+ public function setUp()
+ {
+ parent::setUp();
+ $config = TableRegistry::exists('License') ? [] : ['className' => 'App\Model\Table\LicenseTable'];
+ $this->License = TableRegistry::get('License', $config);
+ }
+
+ /**
+ * tearDown method
+ *
+ * @return void
+ */
+ public function tearDown()
+ {
+ unset($this->License);
+
+ parent::tearDown();
+ }
+
+ /**
+ * Test initialize method
+ *
+ * @return void
+ */
+ public function testInitialize()
+ {
+ $this->markTestIncomplete('Not implemented yet.');
+ }
+
+ /**
+ * Test validationDefault method
+ *
+ * @return void
+ */
+ public function testValidationDefault()
+ {
+ $this->markTestIncomplete('Not implemented yet.');
+ }
+
+ /**
+ * Test buildRules method
+ *
+ * @return void
+ */
+ public function testBuildRules()
+ {
+ $this->markTestIncomplete('Not implemented yet.');
+ }
+}
--- /dev/null
+<?php
+namespace App\Test\TestCase\Model\Table;
+
+use App\Model\Table\LicnseTypeTable;
+use Cake\ORM\TableRegistry;
+use Cake\TestSuite\TestCase;
+
+/**
+ * App\Model\Table\LicnseTypeTable Test Case
+ */
+class LicnseTypeTableTest extends TestCase
+{
+
+ /**
+ * Fixtures
+ *
+ * @var array
+ */
+ public $fixtures = [
+ 'app.licnse_type',
+ 'app.l_i_c_e_n_s_e_t_y_p_es'
+ ];
+
+ /**
+ * setUp method
+ *
+ * @return void
+ */
+ public function setUp()
+ {
+ parent::setUp();
+ $config = TableRegistry::exists('LicnseType') ? [] : ['className' => 'App\Model\Table\LicnseTypeTable'];
+ $this->LicnseType = TableRegistry::get('LicnseType', $config);
+ }
+
+ /**
+ * tearDown method
+ *
+ * @return void
+ */
+ public function tearDown()
+ {
+ unset($this->LicnseType);
+
+ parent::tearDown();
+ }
+
+ /**
+ * Test initialize method
+ *
+ * @return void
+ */
+ public function testInitialize()
+ {
+ $this->markTestIncomplete('Not implemented yet.');
+ }
+
+ /**
+ * Test validationDefault method
+ *
+ * @return void
+ */
+ public function testValidationDefault()
+ {
+ $this->markTestIncomplete('Not implemented yet.');
+ }
+
+ /**
+ * Test buildRules method
+ *
+ * @return void
+ */
+ public function testBuildRules()
+ {
+ $this->markTestIncomplete('Not implemented yet.');
+ }
+}
--- /dev/null
+<?php
+namespace App\Test\TestCase\Model\Table;
+
+use App\Model\Table\RelationshipTypeTable;
+use Cake\ORM\TableRegistry;
+use Cake\TestSuite\TestCase;
+
+/**
+ * App\Model\Table\RelationshipTypeTable Test Case
+ */
+class RelationshipTypeTableTest extends TestCase
+{
+
+ /**
+ * Fixtures
+ *
+ * @var array
+ */
+ public $fixtures = [
+ 'app.relationship_type',
+ 'app.r_e_l_a_t_i_o_n_s_h_i_p_t_y_p_es'
+ ];
+
+ /**
+ * setUp method
+ *
+ * @return void
+ */
+ public function setUp()
+ {
+ parent::setUp();
+ $config = TableRegistry::exists('RelationshipType') ? [] : ['className' => 'App\Model\Table\RelationshipTypeTable'];
+ $this->RelationshipType = TableRegistry::get('RelationshipType', $config);
+ }
+
+ /**
+ * tearDown method
+ *
+ * @return void
+ */
+ public function tearDown()
+ {
+ unset($this->RelationshipType);
+
+ parent::tearDown();
+ }
+
+ /**
+ * Test initialize method
+ *
+ * @return void
+ */
+ public function testInitialize()
+ {
+ $this->markTestIncomplete('Not implemented yet.');
+ }
+
+ /**
+ * Test validationDefault method
+ *
+ * @return void
+ */
+ public function testValidationDefault()
+ {
+ $this->markTestIncomplete('Not implemented yet.');
+ }
+
+ /**
+ * Test buildRules method
+ *
+ * @return void
+ */
+ public function testBuildRules()
+ {
+ $this->markTestIncomplete('Not implemented yet.');
+ }
+}
--- /dev/null
+<?php
+namespace App\Test\TestCase\Model\Table;
+
+use App\Model\Table\ReviewTable;
+use Cake\ORM\TableRegistry;
+use Cake\TestSuite\TestCase;
+
+/**
+ * App\Model\Table\ReviewTable Test Case
+ */
+class ReviewTableTest extends TestCase
+{
+
+ /**
+ * Fixtures
+ *
+ * @var array
+ */
+ public $fixtures = [
+ 'app.review',
+ 'app.r_e_v_i_e_ws',
+ 'app.r_e_v_i_e_w_entities',
+ 'app.r_e_v_i_e_w_softwares'
+ ];
+
+ /**
+ * setUp method
+ *
+ * @return void
+ */
+ public function setUp()
+ {
+ parent::setUp();
+ $config = TableRegistry::exists('Review') ? [] : ['className' => 'App\Model\Table\ReviewTable'];
+ $this->Review = TableRegistry::get('Review', $config);
+ }
+
+ /**
+ * tearDown method
+ *
+ * @return void
+ */
+ public function tearDown()
+ {
+ unset($this->Review);
+
+ parent::tearDown();
+ }
+
+ /**
+ * Test initialize method
+ *
+ * @return void
+ */
+ public function testInitialize()
+ {
+ $this->markTestIncomplete('Not implemented yet.');
+ }
+
+ /**
+ * Test validationDefault method
+ *
+ * @return void
+ */
+ public function testValidationDefault()
+ {
+ $this->markTestIncomplete('Not implemented yet.');
+ }
+
+ /**
+ * Test buildRules method
+ *
+ * @return void
+ */
+ public function testBuildRules()
+ {
+ $this->markTestIncomplete('Not implemented yet.');
+ }
+}
--- /dev/null
+<?php
+namespace App\Test\TestCase\Model\Table;
+
+use App\Model\Table\SoftwareRelationshipTable;
+use Cake\ORM\TableRegistry;
+use Cake\TestSuite\TestCase;
+
+/**
+ * App\Model\Table\SoftwareRelationshipTable Test Case
+ */
+class SoftwareRelationshipTableTest extends TestCase
+{
+
+ /**
+ * Fixtures
+ *
+ * @var array
+ */
+ public $fixtures = [
+ 'app.software_relationship'
+ ];
+
+ /**
+ * setUp method
+ *
+ * @return void
+ */
+ public function setUp()
+ {
+ parent::setUp();
+ $config = TableRegistry::exists('SoftwareRelationship') ? [] : ['className' => 'App\Model\Table\SoftwareRelationshipTable'];
+ $this->SoftwareRelationship = TableRegistry::get('SoftwareRelationship', $config);
+ }
+
+ /**
+ * tearDown method
+ *
+ * @return void
+ */
+ public function tearDown()
+ {
+ unset($this->SoftwareRelationship);
+
+ parent::tearDown();
+ }
+
+ /**
+ * Test initialize method
+ *
+ * @return void
+ */
+ public function testInitialize()
+ {
+ $this->markTestIncomplete('Not implemented yet.');
+ }
+
+ /**
+ * Test validationDefault method
+ *
+ * @return void
+ */
+ public function testValidationDefault()
+ {
+ $this->markTestIncomplete('Not implemented yet.');
+ }
+}
--- /dev/null
+<?php
+namespace App\Test\TestCase\Model\Table;
+
+use App\Model\Table\SoftwareTable;
+use Cake\ORM\TableRegistry;
+use Cake\TestSuite\TestCase;
+
+/**
+ * App\Model\Table\SoftwareTable Test Case
+ */
+class SoftwareTableTest extends TestCase
+{
+
+ /**
+ * Fixtures
+ *
+ * @var array
+ */
+ public $fixtures = [
+ 'app.software',
+ 'app.s_o_f_t_w_a_r_es'
+ ];
+
+ /**
+ * setUp method
+ *
+ * @return void
+ */
+ public function setUp()
+ {
+ parent::setUp();
+ $config = TableRegistry::exists('Software') ? [] : ['className' => 'App\Model\Table\SoftwareTable'];
+ $this->Software = TableRegistry::get('Software', $config);
+ }
+
+ /**
+ * tearDown method
+ *
+ * @return void
+ */
+ public function tearDown()
+ {
+ unset($this->Software);
+
+ parent::tearDown();
+ }
+
+ /**
+ * Test initialize method
+ *
+ * @return void
+ */
+ public function testInitialize()
+ {
+ $this->markTestIncomplete('Not implemented yet.');
+ }
+
+ /**
+ * Test validationDefault method
+ *
+ * @return void
+ */
+ public function testValidationDefault()
+ {
+ $this->markTestIncomplete('Not implemented yet.');
+ }
+
+ /**
+ * Test buildRules method
+ *
+ * @return void
+ */
+ public function testBuildRules()
+ {
+ $this->markTestIncomplete('Not implemented yet.');
+ }
+}
--- /dev/null
+<?php
+namespace App\Test\TestCase\Model\Table;
+
+use App\Model\Table\UsersTable;
+use Cake\ORM\TableRegistry;
+use Cake\TestSuite\TestCase;
+
+/**
+ * App\Model\Table\UsersTable Test Case
+ */
+class UsersTableTest extends TestCase
+{
+
+ /**
+ * Fixtures
+ *
+ * @var array
+ */
+ public $fixtures = [
+ 'app.users',
+ 'app.user_types'
+ ];
+
+ /**
+ * setUp method
+ *
+ * @return void
+ */
+ public function setUp()
+ {
+ parent::setUp();
+ $config = TableRegistry::exists('Users') ? [] : ['className' => 'App\Model\Table\UsersTable'];
+ $this->UsersTable = TableRegistry::get('Users', $config);
+ }
+
+ /**
+ * tearDown method
+ *
+ * @return void
+ */
+ public function tearDown()
+ {
+ unset($this->UsersTable);
+
+ parent::tearDown();
+ }
+
+ /**
+ * Test initialize method
+ *
+ * @return void
+ */
+ public function testInitialize()
+ {
+ $this->markTestIncomplete('Not implemented yet.');
+ }
+
+ /**
+ * Test validationDefault method
+ *
+ * @return void
+ */
+ public function testValidationDefault()
+ {
+ $this->markTestIncomplete('Not implemented yet.');
+ }
+
+ /**
+ * Test buildRules method
+ *
+ * @return void
+ */
+ public function testBuildRules()
+ {
+ $this->markTestIncomplete('Not implemented yet.');
+ }
+}