This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: "2" | |
services: | |
node1: | |
container_name: node1 | |
image: percona/percona-xtradb-cluster:5.7 | |
environment: | |
- CLUSTER_NAME=cluster1 | |
- MYSQL_ROOT_PASSWORD=root | |
networks: | |
- pxc-network |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: "2" | |
services: | |
node1: | |
container_name: node1 | |
image: percona/percona-xtradb-cluster:5.7 | |
environment: | |
- CLUSTER_NAME=cluster1 | |
- MYSQL_ROOT_PASSWORD=root | |
networks: | |
- pxc-network |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DestroyFunc ResizeNonMaximized | |
AddToFunc ResizeNonMaximized | |
+ I ThisWindow (!Maximized) Resize |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Mouse 3 W 4 Resize-on-Drag | |
DestroyFunc Resize-on-Drag | |
AddToFunc Resize-on-Drag | |
+ C Menu MenuWindowOps | |
+ I Raise | |
+ M ResizeNonMaximized |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* FilesTable */ | |
public function initialize(array $config) | |
{ | |
parent::initialize($config); | |
$this->table('files'); | |
$this->displayField('name'); | |
$this->primaryKey('id'); | |
$this->addBehavior('Timestamp'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$webShop = $this->WebShops->get($id, [ | |
'contain' => [ | |
'ArticleGroups.Images' => function($q) use ($limit) { | |
return $q->limit($limit); | |
} | |
] | |
]); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$company = $this->Companies->find()->where(['Companies.id' => $id])->contain(['ArticleGroups','Locations'])->first(); | |
if ($this->request->is(['patch', 'post', 'put'])) { | |
$company = $this->Companies->patchEntity($company, $this->request->data); | |
if ($this->Companies->save($company)) { | |
$this->Flash->success(__('The company has been saved.')); | |
} else { | |
$this->Flash->error(__('The company could not be saved. Please, try again.')); | |
} | |
} |