Skip to content
Snippets Groups Projects
Commit 9d7e032f authored by Tilman Vatteroth's avatar Tilman Vatteroth :robot:
Browse files

vendor

parent e9eec356
No related branches found
No related tags found
No related merge requests found
Showing
with 293 additions and 86 deletions
File added
1432311735
a:5:{s:7:"version";s:3:"0.1";s:12:"vrrf_version";s:16:"0.07-33-ge14a3a6";s:17:"used_vrrf_version";s:4:"0.07";s:6:"errors";a:3:{s:39:"Dortmund - Josef-von-Fraunhover Straße";N;s:21:"Dortmund - Meitnerweg";N;s:25:"Dortmund - Universität S";N;}s:5:"lines";a:20:{i:0;a:4:{s:4:"line";s:2:"S1";s:11:"destination";s:12:"Solingen Hbf";s:4:"type";s:6:"S-Bahn";s:5:"stops";a:1:{i:0;a:6:{s:4:"date";s:10:"22.05.2015";s:4:"time";s:5:"18:00";s:5:"delay";s:2:"22";s:6:"cancel";i:0;s:4:"name";s:25:"Dortmund - Universität S";s:4:"info";s:0:"";}}}i:1;a:4:{s:4:"line";s:2:"S1";s:11:"destination";s:12:"Dortmund Hbf";s:4:"type";s:6:"S-Bahn";s:5:"stops";a:1:{i:0;a:6:{s:4:"date";s:10:"22.05.2015";s:4:"time";s:5:"18:19";s:5:"delay";s:2:"22";s:6:"cancel";i:0;s:4:"name";s:25:"Dortmund - Universität S";s:4:"info";s:0:"";}}}i:2;a:4:{s:4:"line";s:2:"S1";s:11:"destination";s:15:"Düsseldorf Hbf";s:4:"type";s:6:"S-Bahn";s:5:"stops";a:1:{i:0;a:6:{s:4:"date";s:10:"22.05.2015";s:4:"time";s:5:"18:20";s:5:"delay";s:2:"15";s:6:"cancel";i:0;s:4:"name";s:25:"Dortmund - Universität S";s:4:"info";s:0:"";}}}i:3;a:4:{s:4:"line";s:3:"447";s:11:"destination";s:17:"Dortmund Hacheney";s:4:"type";s:3:"Bus";s:5:"stops";a:1:{i:0;a:6:{s:4:"date";s:10:"22.05.2015";s:4:"time";s:5:"18:22";s:5:"delay";s:1:"0";s:6:"cancel";i:0;s:4:"name";s:25:"Dortmund - Universität S";s:4:"info";s:0:"";}}}i:4;a:4:{s:4:"line";s:3:"462";s:11:"destination";s:5:"Barop";s:4:"type";s:3:"Bus";s:5:"stops";a:1:{i:0;a:6:{s:4:"date";s:10:"22.05.2015";s:4:"time";s:5:"18:22";s:5:"delay";s:1:"0";s:6:"cancel";i:0;s:4:"name";s:25:"Dortmund - Universität S";s:4:"info";s:0:"";}}}i:5;a:4:{s:4:"line";s:3:"462";s:11:"destination";s:24:"Dortmund Huckarde Bushof";s:4:"type";s:3:"Bus";s:5:"stops";a:2:{i:0;a:6:{s:4:"date";s:10:"22.05.2015";s:4:"time";s:5:"18:22";s:5:"delay";s:1:"0";s:6:"cancel";i:0;s:4:"name";s:21:"Dortmund - Meitnerweg";s:4:"info";s:0:"";}i:1;a:6:{s:4:"date";s:10:"22.05.2015";s:4:"time";s:5:"18:23";s:5:"delay";s:1:"0";s:6:"cancel";i:0;s:4:"name";s:39:"Dortmund - Josef-von-Fraunhover Straße";s:4:"info";s:0:"";}}}i:6;a:4:{s:4:"line";s:3:"445";s:11:"destination";s:26:"Dortmund Otto-Hahn-Straße";s:4:"type";s:3:"Bus";s:5:"stops";a:2:{i:0;a:6:{s:4:"date";s:10:"22.05.2015";s:4:"time";s:5:"18:26";s:5:"delay";s:1:"0";s:6:"cancel";i:0;s:4:"name";s:25:"Dortmund - Universität S";s:4:"info";s:0:"";}i:1;a:6:{s:4:"date";s:10:"22.05.2015";s:4:"time";s:5:"18:28";s:5:"delay";s:1:"0";s:6:"cancel";i:0;s:4:"name";s:21:"Dortmund - Meitnerweg";s:4:"info";s:0:"";}}}i:7;a:4:{s:4:"line";s:3:"465";s:11:"destination";s:8:"Huckarde";s:4:"type";s:3:"Bus";s:5:"stops";a:1:{i:0;a:6:{s:4:"date";s:10:"22.05.2015";s:4:"time";s:5:"18:26";s:5:"delay";s:1:"0";s:6:"cancel";i:0;s:4:"name";s:39:"Dortmund - Josef-von-Fraunhover Straße";s:4:"info";s:0:"";}}}i:8;a:4:{s:4:"line";s:3:"445";s:11:"destination";s:25:"Dortmund An der Palmweide";s:4:"type";s:3:"Bus";s:5:"stops";a:2:{i:0;a:6:{s:4:"date";s:10:"22.05.2015";s:4:"time";s:5:"18:29";s:5:"delay";s:1:"0";s:6:"cancel";i:0;s:4:"name";s:21:"Dortmund - Meitnerweg";s:4:"info";s:0:"";}i:1;a:6:{s:4:"date";s:10:"22.05.2015";s:4:"time";s:5:"18:32";s:5:"delay";s:1:"0";s:6:"cancel";i:0;s:4:"name";s:25:"Dortmund - Universität S";s:4:"info";s:0:"";}}}i:9;a:4:{s:4:"line";s:3:"465";s:11:"destination";s:17:"Dortmund Oespel S";s:4:"type";s:3:"Bus";s:5:"stops";a:1:{i:0;a:6:{s:4:"date";s:10:"22.05.2015";s:4:"time";s:5:"18:31";s:5:"delay";s:1:"0";s:6:"cancel";i:0;s:4:"name";s:39:"Dortmund - Josef-von-Fraunhover Straße";s:4:"info";s:0:"";}}}i:10;a:4:{s:4:"line";s:3:"462";s:11:"destination";s:5:"Barop";s:4:"type";s:3:"Bus";s:5:"stops";a:3:{i:0;a:6:{s:4:"date";s:10:"22.05.2015";s:4:"time";s:5:"18:36";s:5:"delay";s:1:"0";s:6:"cancel";i:0;s:4:"name";s:39:"Dortmund - Josef-von-Fraunhover Straße";s:4:"info";s:0:"";}i:1;a:6:{s:4:"date";s:10:"22.05.2015";s:4:"time";s:5:"18:37";s:5:"delay";s:1:"0";s:6:"cancel";i:0;s:4:"name";s:21:"Dortmund - Meitnerweg";s:4:"info";s:0:"";}i:2;a:6:{s:4:"date";s:10:"22.05.2015";s:4:"time";s:5:"18:42";s:5:"delay";s:1:"0";s:6:"cancel";i:0;s:4:"name";s:25:"Dortmund - Universität S";s:4:"info";s:0:"";}}}i:11;a:4:{s:4:"line";s:3:"447";s:11:"destination";s:22:"Dortmund Bandelstraße";s:4:"type";s:3:"Bus";s:5:"stops";a:1:{i:0;a:6:{s:4:"date";s:10:"22.05.2015";s:4:"time";s:5:"18:38";s:5:"delay";s:1:"0";s:6:"cancel";i:0;s:4:"name";s:25:"Dortmund - Universität S";s:4:"info";s:0:"";}}}i:12;a:4:{s:4:"line";s:2:"S1";s:11:"destination";s:12:"Dortmund Hbf";s:4:"type";s:6:"S-Bahn";s:5:"stops";a:1:{i:0;a:6:{s:4:"date";s:10:"22.05.2015";s:4:"time";s:5:"18:39";s:5:"delay";i:0;s:6:"cancel";i:1;s:4:"name";s:25:"Dortmund - Universität S";s:4:"info";s:0:"";}}}i:13;a:4:{s:4:"line";s:3:"462";s:11:"destination";s:24:"Dortmund Huckarde Bushof";s:4:"type";s:3:"Bus";s:5:"stops";a:3:{i:0;a:6:{s:4:"date";s:10:"22.05.2015";s:4:"time";s:5:"18:40";s:5:"delay";s:1:"0";s:6:"cancel";i:0;s:4:"name";s:25:"Dortmund - Universität S";s:4:"info";s:0:"";}i:1;a:6:{s:4:"date";s:10:"22.05.2015";s:4:"time";s:5:"18:42";s:5:"delay";s:1:"0";s:6:"cancel";i:0;s:4:"name";s:21:"Dortmund - Meitnerweg";s:4:"info";s:0:"";}i:2;a:6:{s:4:"date";s:10:"22.05.2015";s:4:"time";s:5:"18:43";s:5:"delay";s:1:"0";s:6:"cancel";i:0;s:4:"name";s:39:"Dortmund - Josef-von-Fraunhover Straße";s:4:"info";s:0:"";}}}i:14;a:4:{s:4:"line";s:2:"S1";s:11:"destination";s:15:"Düsseldorf Hbf";s:4:"type";s:6:"S-Bahn";s:5:"stops";a:1:{i:0;a:6:{s:4:"date";s:10:"22.05.2015";s:4:"time";s:5:"18:40";s:5:"delay";i:0;s:6:"cancel";i:1;s:4:"name";s:25:"Dortmund - Universität S";s:4:"info";s:0:"";}}}i:15;a:4:{s:4:"line";s:3:"447";s:11:"destination";s:17:"Dortmund Hacheney";s:4:"type";s:3:"Bus";s:5:"stops";a:1:{i:0;a:6:{s:4:"date";s:10:"22.05.2015";s:4:"time";s:5:"18:42";s:5:"delay";i:0;s:6:"cancel";i:0;s:4:"name";s:25:"Dortmund - Universität S";s:4:"info";s:0:"";}}}i:16;a:4:{s:4:"line";s:3:"445";s:11:"destination";s:26:"Dortmund Otto-Hahn-Straße";s:4:"type";s:3:"Bus";s:5:"stops";a:2:{i:0;a:6:{s:4:"date";s:10:"22.05.2015";s:4:"time";s:5:"18:46";s:5:"delay";s:1:"0";s:6:"cancel";i:0;s:4:"name";s:25:"Dortmund - Universität S";s:4:"info";s:0:"";}i:1;a:6:{s:4:"date";s:10:"22.05.2015";s:4:"time";s:5:"18:48";s:5:"delay";s:1:"0";s:6:"cancel";i:0;s:4:"name";s:21:"Dortmund - Meitnerweg";s:4:"info";s:0:"";}}}i:17;a:4:{s:4:"line";s:3:"465";s:11:"destination";s:9:"Dorstfeld";s:4:"type";s:3:"Bus";s:5:"stops";a:1:{i:0;a:6:{s:4:"date";s:10:"22.05.2015";s:4:"time";s:5:"18:46";s:5:"delay";s:1:"0";s:6:"cancel";i:0;s:4:"name";s:39:"Dortmund - Josef-von-Fraunhover Straße";s:4:"info";s:0:"";}}}i:18;a:4:{s:4:"line";s:3:"445";s:11:"destination";s:22:"Dortmund Renninghausen";s:4:"type";s:3:"Bus";s:5:"stops";a:2:{i:0;a:6:{s:4:"date";s:10:"22.05.2015";s:4:"time";s:5:"18:49";s:5:"delay";s:1:"0";s:6:"cancel";i:0;s:4:"name";s:21:"Dortmund - Meitnerweg";s:4:"info";s:0:"";}i:1;a:6:{s:4:"date";s:10:"22.05.2015";s:4:"time";s:5:"18:52";s:5:"delay";s:1:"0";s:6:"cancel";i:0;s:4:"name";s:25:"Dortmund - Universität S";s:4:"info";s:0:"";}}}i:19;a:4:{s:4:"line";s:3:"465";s:11:"destination";s:17:"Dortmund Oespel S";s:4:"type";s:3:"Bus";s:5:"stops";a:1:{i:0;a:6:{s:4:"date";s:10:"22.05.2015";s:4:"time";s:5:"18:51";s:5:"delay";s:1:"0";s:6:"cancel";i:0;s:4:"name";s:39:"Dortmund - Josef-von-Fraunhover Straße";s:4:"info";s:0:"";}}}}}
<?php
/**
* CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
* Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
*
* Licensed under The MIT License
* For full copyright and license information, please see the LICENSE.txt
* Redistributions of files must retain the above copyright notice.
*
* @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
* @link http://cakephp.org CakePHP(tm) Project
* @since 0.1.0
* @license http://www.opensource.org/licenses/mit-license.php MIT License
*/
echo $this->element('form');
<?php
/**
* CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
* Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
*
* Licensed under The MIT License
* For full copyright and license information, please see the LICENSE.txt
* Redistributions of files must retain the above copyright notice.
*
* @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
* @link http://cakephp.org CakePHP(tm) Project
* @since 0.1.0
* @license http://www.opensource.org/licenses/mit-license.php MIT License
*/
use Cake\Utility\Inflector;
$fields = collection($fields)
->filter(function($field) use ($schema) {
return !in_array($schema->columnType($field), ['binary', 'text']);
})
->take(7);
?>
<div class="actions columns large-2 medium-3">
<h3><CakePHPBakeOpenTag= __('Actions') CakePHPBakeCloseTag></h3>
<ul class="side-nav">
<li><CakePHPBakeOpenTag= $this->Html->link(__('New <?= $singularHumanName ?>'), ['action' => 'add']) CakePHPBakeCloseTag></li>
<?php
$done = [];
foreach ($associations as $type => $data):
foreach ($data as $alias => $details):
if ($details['controller'] != $this->name && !in_array($details['controller'], $done)):
?>
<li><CakePHPBakeOpenTag= $this->Html->link(__('List <?= $this->_pluralHumanName($alias) ?>'), ['controller' => '<?= $details['controller'] ?>', 'action' => 'index']) CakePHPBakeCloseTag> </li>
<li><CakePHPBakeOpenTag= $this->Html->link(__('New <?= $this->_singularHumanName($alias) ?>'), ['controller' => '<?= $details['controller'] ?>', 'action' => 'add']) CakePHPBakeCloseTag> </li>
<?php
$done[] = $details['controller'];
endif;
endforeach;
endforeach;
?>
</ul>
</div>
<div class="<?= $pluralVar ?> index large-10 medium-9 columns">
<table cellpadding="0" cellspacing="0">
<thead>
<tr>
<?php foreach ($fields as $field): ?>
<th><CakePHPBakeOpenTag= $this->Paginator->sort('<?= $field ?>') CakePHPBakeCloseTag></th>
<?php endforeach; ?>
<th class="actions"><CakePHPBakeOpenTag= __('Actions') CakePHPBakeCloseTag></th>
</tr>
</thead>
<tbody>
<CakePHPBakeOpenTagphp foreach ($<?= $pluralVar ?> as $<?= $singularVar ?>): CakePHPBakeCloseTag>
<tr>
<?php foreach ($fields as $field) {
$isKey = false;
if (!empty($associations['BelongsTo'])) {
foreach ($associations['BelongsTo'] as $alias => $details) {
if ($field === $details['foreignKey']) {
$isKey = true;
?>
<td>
<CakePHPBakeOpenTag= $<?= $singularVar ?>->has('<?= $details['property'] ?>') ? $this->Html->link($<?= $singularVar ?>-><?= $details['property'] ?>-><?= $details['displayField'] ?>, ['controller' => '<?= $details['controller'] ?>', 'action' => 'view', $<?= $singularVar ?>-><?= $details['property'] ?>-><?= $details['primaryKey'][0] ?>]) : '' CakePHPBakeCloseTag>
</td>
<?php
break;
}
}
}
if ($isKey !== true) {
if (!in_array($schema->columnType($field), ['integer', 'biginteger', 'decimal', 'float'])) {
?>
<td><CakePHPBakeOpenTag= h($<?= $singularVar ?>-><?= $field ?>) CakePHPBakeCloseTag></td>
<?php
} else {
?>
<td><CakePHPBakeOpenTag= $this->Number->format($<?= $singularVar ?>-><?= $field ?>) CakePHPBakeCloseTag></td>
<?php
}
}
}
$pk = '$' . $singularVar . '->' . $primaryKey[0];
?>
<td class="actions">
<CakePHPBakeOpenTag= $this->Html->link(__('View'), ['action' => 'view', <?= $pk ?>]) CakePHPBakeCloseTag>
<CakePHPBakeOpenTag= $this->Html->link(__('Edit'), ['action' => 'edit', <?= $pk ?>]) CakePHPBakeCloseTag>
<CakePHPBakeOpenTag= $this->Form->postLink(__('Delete'), ['action' => 'delete', <?= $pk ?>], ['confirm' => __('Are you sure you want to delete # {0}?', <?= $pk ?>)]) CakePHPBakeCloseTag>
</td>
</tr>
<CakePHPBakeOpenTagphp endforeach; CakePHPBakeCloseTag>
</tbody>
</table>
<div class="paginator">
<ul class="pagination">
<CakePHPBakeOpenTag= $this->Paginator->prev('< ' . __('previous')) CakePHPBakeCloseTag>
<CakePHPBakeOpenTag= $this->Paginator->numbers() CakePHPBakeCloseTag>
<CakePHPBakeOpenTag= $this->Paginator->next(__('next') . ' >') CakePHPBakeCloseTag>
</ul>
<p><CakePHPBakeOpenTag= $this->Paginator->counter() CakePHPBakeCloseTag></p>
</div>
</div>
<?php
/**
* CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
* Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
*
* Licensed under The MIT License
* For full copyright and license information, please see the LICENSE.txt
* Redistributions of files must retain the above copyright notice.
*
* @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
* @link http://cakephp.org CakePHP(tm) Project
* @since 0.1.0
* @license http://www.opensource.org/licenses/mit-license.php MIT License
*/
use Cake\Utility\Inflector;
$associations += ['BelongsTo' => [], 'HasOne' => [], 'HasMany' => [], 'BelongsToMany' => []];
$immediateAssociations = $associations['BelongsTo'] + $associations['HasOne'];
$associationFields = collection($fields)
->map(function($field) use ($immediateAssociations) {
foreach ($immediateAssociations as $alias => $details) {
if ($field === $details['foreignKey']) {
return [$field => $details];
}
}
})
->filter()
->reduce(function($fields, $value) {
return $fields + $value;
}, []);
$groupedFields = collection($fields)
->filter(function($field) use ($schema) {
return $schema->columnType($field) !== 'binary';
})
->groupBy(function($field) use ($schema, $associationFields) {
$type = $schema->columnType($field);
if (isset($associationFields[$field])) {
return 'string';
}
if (in_array($type, ['integer', 'float', 'decimal', 'biginteger'])) {
return 'number';
}
if (in_array($type, ['date', 'time', 'datetime', 'timestamp'])) {
return 'date';
}
return in_array($type, ['text', 'boolean']) ? $type : 'string';
})
->toArray();
$groupedFields += ['number' => [], 'string' => [], 'boolean' => [], 'date' => [], 'text' => []];
$pk = "\$$singularVar->{$primaryKey[0]}";
?>
<div class="actions columns large-2 medium-3">
<h3><CakePHPBakeOpenTag= __('Actions') CakePHPBakeCloseTag></h3>
<ul class="side-nav">
<li><CakePHPBakeOpenTag= $this->Html->link(__('Edit <?= $singularHumanName ?>'), ['action' => 'edit', <?= $pk ?>]) CakePHPBakeCloseTag> </li>
<li><CakePHPBakeOpenTag= $this->Form->postLink(__('Delete <?= $singularHumanName ?>'), ['action' => 'delete', <?= $pk ?>], ['confirm' => __('Are you sure you want to delete # {0}?', <?= $pk ?>)]) CakePHPBakeCloseTag> </li>
<li><CakePHPBakeOpenTag= $this->Html->link(__('List <?= $pluralHumanName ?>'), ['action' => 'index']) CakePHPBakeCloseTag> </li>
<li><CakePHPBakeOpenTag= $this->Html->link(__('New <?= $singularHumanName ?>'), ['action' => 'add']) CakePHPBakeCloseTag> </li>
<?php
$done = [];
foreach ($associations as $type => $data) {
foreach ($data as $alias => $details) {
if ($details['controller'] != $this->name && !in_array($details['controller'], $done)) {
?>
<li><CakePHPBakeOpenTag= $this->Html->link(__('List <?= $this->_pluralHumanName($alias) ?>'), ['controller' => '<?= $details['controller'] ?>', 'action' => 'index']) CakePHPBakeCloseTag> </li>
<li><CakePHPBakeOpenTag= $this->Html->link(__('New <?= Inflector::humanize(Inflector::singularize(Inflector::underscore($alias))) ?>'), ['controller' => '<?= $details['controller'] ?>', 'action' => 'add']) CakePHPBakeCloseTag> </li>
<?php
$done[] = $details['controller'];
}
}
}
?>
</ul>
</div>
<div class="<?= $pluralVar ?> view large-10 medium-9 columns">
<h2><CakePHPBakeOpenTag= h($<?= $singularVar ?>-><?= $displayField ?>) CakePHPBakeCloseTag></h2>
<div class="row">
<?php if ($groupedFields['string']) : ?>
<div class="large-5 columns strings">
<?php foreach ($groupedFields['string'] as $field) : ?>
<?php if (isset($associationFields[$field])) :
$details = $associationFields[$field];
?>
<h6 class="subheader"><CakePHPBakeOpenTag= __('<?= Inflector::humanize($details['property']) ?>') CakePHPBakeCloseTag></h6>
<p><CakePHPBakeOpenTag= $<?= $singularVar ?>->has('<?= $details['property'] ?>') ? $this->Html->link($<?= $singularVar ?>-><?= $details['property'] ?>-><?= $details['displayField'] ?>, ['controller' => '<?= $details['controller'] ?>', 'action' => 'view', $<?= $singularVar ?>-><?= $details['property'] ?>-><?= $details['primaryKey'][0] ?>]) : '' CakePHPBakeCloseTag></p>
<?php else : ?>
<h6 class="subheader"><CakePHPBakeOpenTag= __('<?= Inflector::humanize($field) ?>') CakePHPBakeCloseTag></h6>
<p><CakePHPBakeOpenTag= h($<?= $singularVar ?>-><?= $field ?>) CakePHPBakeCloseTag></p>
<?php endif; ?>
<?php endforeach; ?>
</div>
<?php endif; ?>
<?php if ($groupedFields['number']) : ?>
<div class="large-2 columns numbers end">
<?php foreach ($groupedFields['number'] as $field) : ?>
<h6 class="subheader"><CakePHPBakeOpenTag= __('<?= Inflector::humanize($field) ?>') CakePHPBakeCloseTag></h6>
<p><CakePHPBakeOpenTag= $this->Number->format($<?= $singularVar ?>-><?= $field ?>) CakePHPBakeCloseTag></p>
<?php endforeach; ?>
</div>
<?php endif; ?>
<?php if ($groupedFields['date']) : ?>
<div class="large-2 columns dates end">
<?php foreach ($groupedFields['date'] as $field) : ?>
<h6 class="subheader"><?= "<?= __('" . Inflector::humanize($field) . "') ?>" ?></h6>
<p><CakePHPBakeOpenTag= h($<?= $singularVar ?>-><?= $field ?>) CakePHPBakeCloseTag></p>
<?php endforeach; ?>
</div>
<?php endif; ?>
<?php if ($groupedFields['boolean']) : ?>
<div class="large-2 columns booleans end">
<?php foreach ($groupedFields['boolean'] as $field) : ?>
<h6 class="subheader"><CakePHPBakeOpenTag= __('<?= Inflector::humanize($field) ?>') CakePHPBakeCloseTag></h6>
<p><CakePHPBakeOpenTag= $<?= $singularVar ?>-><?= $field ?> ? __('Yes') : __('No'); CakePHPBakeCloseTag></p>
<?php endforeach; ?>
</div>
<?php endif; ?>
</div>
<?php if ($groupedFields['text']) : ?>
<?php foreach ($groupedFields['text'] as $field) : ?>
<div class="row texts">
<div class="columns large-9">
<h6 class="subheader"><CakePHPBakeOpenTag= __('<?= Inflector::humanize($field) ?>') CakePHPBakeCloseTag></h6>
<CakePHPBakeOpenTag= $this->Text->autoParagraph(h($<?= $singularVar ?>-><?= $field ?>)); CakePHPBakeCloseTag>
</div>
</div>
<?php endforeach; ?>
<?php endif; ?>
</div>
<?php
$relations = $associations['HasMany'] + $associations['BelongsToMany'];
foreach ($relations as $alias => $details):
$otherSingularVar = Inflector::variable($alias);
$otherPluralHumanName = Inflector::humanize($details['controller']);
?>
<div class="related row">
<div class="column large-12">
<h4 class="subheader"><CakePHPBakeOpenTag= __('Related <?= $otherPluralHumanName ?>') CakePHPBakeCloseTag></h4>
<CakePHPBakeOpenTagphp if (!empty($<?= $singularVar ?>-><?= $details['property'] ?>)): CakePHPBakeCloseTag>
<table cellpadding="0" cellspacing="0">
<tr>
<?php foreach ($details['fields'] as $field): ?>
<th><CakePHPBakeOpenTag= __('<?= Inflector::humanize($field) ?>') CakePHPBakeCloseTag></th>
<?php endforeach; ?>
<th class="actions"><CakePHPBakeOpenTag= __('Actions') CakePHPBakeCloseTag></th>
</tr>
<CakePHPBakeOpenTagphp foreach ($<?= $singularVar ?>-><?= $details['property'] ?> as $<?= $otherSingularVar ?>): CakePHPBakeCloseTag>
<tr>
<?php foreach ($details['fields'] as $field): ?>
<td><CakePHPBakeOpenTag= h($<?= $otherSingularVar ?>-><?= $field ?>) CakePHPBakeCloseTag></td>
<?php endforeach; ?>
<?php $otherPk = "\${$otherSingularVar}->{$details['primaryKey'][0]}"; ?>
<td class="actions">
<CakePHPBakeOpenTag= $this->Html->link(__('View'), ['controller' => '<?= $details['controller'] ?>', 'action' => 'view', <?= $otherPk ?>]) ?>
<CakePHPBakeOpenTag= $this->Html->link(__('Edit'), ['controller' => '<?= $details['controller'] ?>', 'action' => 'edit', <?= $otherPk ?>]) ?>
<CakePHPBakeOpenTag= $this->Form->postLink(__('Delete'), ['controller' => '<?= $details['controller'] ?>', 'action' => 'delete', <?= $otherPk ?>], ['confirm' => __('Are you sure you want to delete # {0}?', <?= $otherPk ?>)]) ?>
</td>
</tr>
<CakePHPBakeOpenTagphp endforeach; CakePHPBakeCloseTag>
</table>
<CakePHPBakeOpenTagphp endif; CakePHPBakeCloseTag>
</div>
</div>
<?php endforeach; ?>
tests/tmp
\ No newline at end of file
/composer.lock
/phpunit.xml
/vendor
*.diff
*.err
*.orig
*.rej
*.swo
*.swp
*.vi
*~
.DS_Store
.cache
.project
.settings
.svn
errors.err
tags
/nbproject/
/composer.lock
/vendor
/phpunit.xml
plugins/
vendor/
/vendor
/composer.lock
\ No newline at end of file
/vendor/
build
vendor
composer.lock
/.idea/
/build/
/vendor/
/composer.lock
\ No newline at end of file
vendor/
nbproject/
/*.buildpath
/*.project
/.settings
/error.log
/export/nicejson
.idea/
*.iml
/coverage
/phpunit.phar
vendor
vendor/
composer.lock
manual/
__pycache__
.php_cs.cache
# These all appear to be hidden files from various IDEs & Operating Systems.
# These probably belong in ~/.gitignore_global and not in here.
# See https://help.github.com/articles/ignoring-files
.DS_Store
.buildpath
.project
.settings
.idea
# These seem to be generated by the build tool for releasing a tagged version of this software
build
*.tgz
dist
# Don't commit composer.phar, or the .phar our build tool generates
*.phar
# this is the code coverage generated when running phpunit.
tests/log
# not positive, but this probably generated by the unit tests?
migrations
# sphinx generates HTML files for the documentation here
docs/_build
# composer installed dependencies
vendor
# this is user specific settings for running phpunit to override the defaults in phpunit.xml.dist
phpunit.xml
# sqlite test database
phinx_testing.sqlite3
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment