111 if (array_key_exists(
"bucket", $analysisArray)) {
112 $this->bucket = filter_var($analysisArray[
"bucket"],
113 FILTER_VALIDATE_BOOLEAN);
115 if (array_key_exists(
"copyright_email_author", $analysisArray)) {
116 $this->copyright = filter_var($analysisArray[
"copyright_email_author"],
117 FILTER_VALIDATE_BOOLEAN);
119 if (array_key_exists(
"ecc", $analysisArray)) {
120 $this->ecc = filter_var($analysisArray[
"ecc"], FILTER_VALIDATE_BOOLEAN);
122 if (array_key_exists(
"keyword", $analysisArray)) {
123 $this->keyword = filter_var($analysisArray[
"keyword"],
124 FILTER_VALIDATE_BOOLEAN);
126 if (array_key_exists(
"mime", $analysisArray)) {
127 $this->mimetype = filter_var($analysisArray[
"mime"],
128 FILTER_VALIDATE_BOOLEAN);
130 if (array_key_exists(
"monk", $analysisArray)) {
131 $this->monk = filter_var($analysisArray[
"monk"], FILTER_VALIDATE_BOOLEAN);
133 if (array_key_exists(
"nomos", $analysisArray)) {
134 $this->nomos = filter_var($analysisArray[
"nomos"], FILTER_VALIDATE_BOOLEAN);
136 if (array_key_exists(
"ojo", $analysisArray)) {
137 $this->ojo = filter_var($analysisArray[
"ojo"], FILTER_VALIDATE_BOOLEAN);
139 if (array_key_exists(
"package", $analysisArray)) {
140 $this->pkgagent = filter_var($analysisArray[
"package"],
141 FILTER_VALIDATE_BOOLEAN);
153 if (stristr($analysisString,
"bucket")) {
154 $this->bucket =
true;
156 if (stristr($analysisString,
"copyright")) {
157 $this->copyright =
true;
159 if (stristr($analysisString,
"ecc")) {
162 if (stristr($analysisString,
"keyword")) {
163 $this->keyword =
true;
165 if (stristr($analysisString,
"mimetype")) {
166 $this->mimetype =
true;
168 if (stristr($analysisString,
"monk")) {
171 if (stristr($analysisString,
"nomos")) {
174 if (stristr($analysisString,
"ojo")) {
177 if (stristr($analysisString,
"pkgagent")) {
178 $this->pkgagent =
true;
262 $this->bucket = filter_var(
$bucket, FILTER_VALIDATE_BOOLEAN);
270 $this->copyright = filter_var(
$copyright, FILTER_VALIDATE_BOOLEAN);
278 $this->ecc = filter_var(
$ecc, FILTER_VALIDATE_BOOLEAN);
286 $this->keyword = filter_var(
$keyword, FILTER_VALIDATE_BOOLEAN);
294 $this->mimetype = filter_var($mime, FILTER_VALIDATE_BOOLEAN);
302 $this->monk = filter_var(
$monk, FILTER_VALIDATE_BOOLEAN);
310 $this->nomos = filter_var(
$nomos, FILTER_VALIDATE_BOOLEAN);
318 $this->ojo = filter_var(
$ojo, FILTER_VALIDATE_BOOLEAN);
326 $this->pkgagent = filter_var($package, FILTER_VALIDATE_BOOLEAN);
setUsingArray($analysisArray)
setUsingString($analysisString)
__construct($bucket=false, $copyright=false, $ecc=false, $keyword=false, $mimetype=false, $monk=false, $nomos=false, $ojo=false, $pkgagent=false)
Model to hold analysis settings.