Skip to content

Instantly share code, notes, and snippets.

View Casperhr's full-sized avatar

Casper Rasmussen Casperhr

View GitHub Profile
Database prepared
Started sync all command
58095
90589
90590
90591
90592
90593
90594
90595
{
"field_0": 5.12,
"field_1": 1.12,
"field_2": 12.12,
"field_3": 4.12,
"graph_0": [
{
"datetime": "2015-01-01 00:00:00",
"value": 1
},
{
"field_0": 5.12,
"field_1": 1.12,
"field_2": 12.12,
"field_3": 4.12,
"graph_0": [
{
"datetime": 2015-01-01 00:00:00,
"value": 1
},
public function beforeSave($options = []) {
parent::beforeSave($options);
$this->data[$this->alias]['seo_title'] = (isset($this->data[$this->alias]['seo_title']) && !empty($this->data[$this->alias]['seo_title'])) ? $this->data[$this->alias]['seo_title'] : null;
$this->data[$this->alias]['seo_description'] = (isset($this->data[$this->alias]['seo_description']) && !empty($this->data[$this->alias]['seo_description'])) ? $this->data[$this->alias]['seo_description'] : null;
}
<label><?=__('seo_title')?></label>
<div class="input-group">
<span class="input-group-addon">
<i class="fa fa-font"></i>
</span>
<?php
echo $this->Form->input(
'Project.seo_title',
array(
'div' => array(
<label><?=__('seo_title')?></label>
<div class="input-group">
<span class="input-group-addon">
<i class="fa fa-font"></i>
</span>
<?php
echo $this->Form->input(
'Project.seo_title',
array(
'div' => array(
{"access_token":"348345888642936|z9TxEsLM81s06azhSYT_KkbJ2MY","token_type":"bearer", "data": {"key":"value"}}
$array = [
'1' => 'One',
'2' => 'Two',
'3' => 'Three',
'4' => 'Four',
'5' => 'Five',
'6' => 'Six',
'7' => 'Seven',
];
public function leave($accountId)
{
$user = api_user();
$account = $this->accountRepository->getByIdOrFail($accountId);
$accountUser = $this->accountRepository->getAccountUser($account, $user);
if ($accountUser->type == AccountUser::TYPE_OWNER) {
throw new OwnerCannotLeaveAccountException();
}
$accountUser->$delete();
app(UserRepository::class)->clearDefaultPaymentTypeForAccountUser($accountUser);
{"data":{"leftmenu_news_buttontext":"leftmenu_news_buttontext","leftmenu_findusers_buttontext":"leftmenu_findusers_buttontext","leftmenu_wiki_buttontext":"leftmenu_wiki_buttontext","leftmenu_notifications_buttontext":"leftmenu_notifications_buttontext","leftmenu_followers_buttontext":"leftmenu_followers_buttontext","leftmenu_following_buttontext":"leftmenu_following_buttontext","leftmenu_updates_buttontext":"leftmenu_updates_buttontext","myprofile_bio_buttontext":"myprofile_bio_buttontext","myprofile_updates_buttontext":"myprofile_updates_buttontext","myprofile_myhorses_buttontext":"myprofile_myhorses_buttontext","myprofile_gallery_buttontext":"myprofile_gallery_buttontext","postupdate_navigationbar_headertext":"postupdate_navigationbar_headertext","postupdate_post_buttontext":"postupdate_post_buttontext","postupdate_noimage_text":"postupdate_noimage_text","postupdate_postplaceholder_headertext":"postupdate_postplaceholder_headertext","postupdate_takephoto_buttontext":"postupdate_takephoto_buttontext","postu