Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

チェックボックスの入力値をDB保存 #1

Open
akagane99 opened this issue Nov 16, 2014 · 0 comments
Open

チェックボックスの入力値をDB保存 #1

akagane99 opened this issue Nov 16, 2014 · 0 comments

Comments

@akagane99
Copy link
Contributor

🈵 です。

内容

NetCommons3/NetCommons3#27

php

            $onlineFrameSetting['OnlineFrameSetting']['display_visitor'] = ($onlineFrameSetting['OnlineFrameSetting']['display_visitor'] == "false") ? 0 : 1;
            $onlineFrameSetting['OnlineFrameSetting']['display_login_user'] = ($onlineFrameSetting['OnlineFrameSetting']['display_login_user'] == "false") ? 0 : 1;
            $onlineFrameSetting['OnlineFrameSetting']['display_registration_user'] = ($onlineFrameSetting['OnlineFrameSetting']['display_registration_user'] == "false") ? 0 : 1;

phpmd の例外指定。

/**
 * save OnlineFrameSetting
 *
 * @param array $postData received post data
 * @return bool true success, false error
 * @throws ForbiddenException
 * @SuppressWarnings(PHPMD.CyclomaticComplexity)
 * @SuppressWarnings(PHPMD.NPathComplexity)
 */
    public function saveOnlineFrameSetting($postData) {

対象ソース

https://github.com/NetCommons3/OnlineStatuses/blob/master/Model/OnlineFrameSetting.php

@akagane99 akagane99 changed the title チェックボックスの入力値をDB保存 チェックボックスの入力値をDB保存 🈵 Nov 16, 2014
@akagane99 akagane99 changed the title チェックボックスの入力値をDB保存 🈵 チェックボックスの入力値をDB保存 Nov 16, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant