SiteConfig::getControlSource PHP Method

getControlSource() public method

コントロールソースを取得する
public getControlSource ( string $field = null ) : mixed
$field string
return mixed array | false
    public function getControlSource($field = null)
    {
        $controlSources['mode'] = array(-1 => 'インストールモード', 0 => 'ノーマルモード', 1 => 'デバッグモード1', 2 => 'デバッグモード2', 3 => 'デバッグモード3');
        if (isset($controlSources[$field])) {
            return $controlSources[$field];
        } else {
            return false;
        }
    }