Completed
Push — develop ( 840c69...29c45a )
by René
03:26
created

Configuration::getProjectId()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
/**
4
 * File ApiKey
5
 */
6
7
namespace HDNET\OnpageIntegration\Domain\Model;
8
9
use TYPO3\CMS\Core\Utility\GeneralUtility;
10
11
/**
12
 * Class ApiKey
13
 *
14
 * @db
15
 */
16
class Configuration extends \TYPO3\CMS\Extbase\DomainObject\AbstractEntity
17
{
18
19
    // @todo hide fields hier eintragen
20
    const DEFAULT_HIDE_FIELDS = 'is_local,
21
                                 passes_juice_to_url,
22
                                 is_indexable,
23
                                 mime,
24
                                 header_status,
25
                                 country,
26
                                 mime_error,
27
                                 hash,
28
                                 language,
29
                                 redirect_category,
30
                                 redirect_to_mime_error,
31
                                 redirect_type_group,
32
                                 redirect_to_hash,
33
                                 redirect_to_mime,
34
                                 redirect_to_language,
35
                                 redirect_to_is_local,
36
                                 redirect_to_header_status,
37
                                 redirect_to_country,
38
                                 twitter_description,
39
                                 twitter_title,
40
                                 twitter_image,
41
                                 og_country,
42
                                 og_language,
43
                                 og_image,
44
                                 meta_title,
45
                                 meta_description,
46
                                 og_url,
47
                                 og_title,
48
                                 og_description,
49
                                 compression_type,';
50
51
    /**
52
     * api_key
53
     *
54
     * @db
55
     * @var string
56
     */
57
    protected $apiKey;
58
59
    /**
60
     * project_id
61
     *
62
     * @db
63
     * @var string
64
     */
65
    protected $projectId;
66
67
    /**
68
     * @var string
69
     * @db
70
     */
71
    protected $hideFields;
72
73
    /**
74
     * Returns the project id
75
     *
76
     * @return string
77
     */
78
    public function getProjectId()
79
    {
80
        return $this->projectId;
81
    }
82
83
    /**
84
     * Sets the projects id
85
     *
86
     * @param string $projectId
87
     */
88
    public function setProjectId($projectId)
89
    {
90
        $this->projectId = $projectId;
91
    }
92
93
    /**
94
     * Returns the api key
95
     *
96
     * @return string
97
     */
98
    public function getApiKey()
99
    {
100
        return $this->apiKey;
101
    }
102
103
    /**
104
     * Sets the api key
105
     *
106
     * @param string $apiKey
107
     */
108
    public function setApiKey($apiKey)
109
    {
110
        $this->apiKey = $apiKey;
111
    }
112
113
    /**
114
     * @return string
115
     */
116
    public function getHideFields()
117
    {
118
        return $this->hideFields;
119
    }
120
121
    /**
122
     * @return array
123
     */
124
    public function getHideFieldsAsArray()
125
    {
126
        return GeneralUtility::trimExplode("\n", $this->getHideFields(), true);
127
    }
128
129
    /**
130
     * @param string $hideFields
131
     */
132
    public function setHideFields($hideFields)
133
    {
134
        $this->hideFields = $hideFields;
135
    }
136
137
}
138