14 namespace Fossology\UI\Api\Models;
108 if (array_key_exists(
"bucket", $analysisArray)) {
109 $this->bucket = filter_var($analysisArray[
"bucket"],
110 FILTER_VALIDATE_BOOLEAN);
112 if (array_key_exists(
"copyright_email_author", $analysisArray)) {
113 $this->copyright = filter_var($analysisArray[
"copyright_email_author"],
114 FILTER_VALIDATE_BOOLEAN);
116 if (array_key_exists(
"ecc", $analysisArray)) {
117 $this->ecc = filter_var($analysisArray[
"ecc"], FILTER_VALIDATE_BOOLEAN);
119 if (array_key_exists(
"keyword", $analysisArray)) {
120 $this->keyword = filter_var($analysisArray[
"keyword"],
121 FILTER_VALIDATE_BOOLEAN);
123 if (array_key_exists(
"mime", $analysisArray)) {
124 $this->mimetype = filter_var($analysisArray[
"mime"],
125 FILTER_VALIDATE_BOOLEAN);
127 if (array_key_exists(
"monk", $analysisArray)) {
128 $this->monk = filter_var($analysisArray[
"monk"], FILTER_VALIDATE_BOOLEAN);
130 if (array_key_exists(
"nomos", $analysisArray)) {
131 $this->nomos = filter_var($analysisArray[
"nomos"], FILTER_VALIDATE_BOOLEAN);
133 if (array_key_exists(
"ojo", $analysisArray)) {
134 $this->ojo = filter_var($analysisArray[
"ojo"], FILTER_VALIDATE_BOOLEAN);
136 if (array_key_exists(
"reso", $analysisArray)) {
137 $this->reso = filter_var($analysisArray[
"reso"], 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,
"reso")) {
180 if (stristr($analysisString,
"pkgagent")) {
181 $this->pkgagent =
true;
273 $this->bucket = filter_var(
$bucket, FILTER_VALIDATE_BOOLEAN);
281 $this->copyright = filter_var(
$copyright, FILTER_VALIDATE_BOOLEAN);
289 $this->ecc = filter_var(
$ecc, FILTER_VALIDATE_BOOLEAN);
297 $this->keyword = filter_var(
$keyword, FILTER_VALIDATE_BOOLEAN);
305 $this->mimetype = filter_var($mime, FILTER_VALIDATE_BOOLEAN);
313 $this->monk = filter_var(
$monk, FILTER_VALIDATE_BOOLEAN);
321 $this->nomos = filter_var(
$nomos, FILTER_VALIDATE_BOOLEAN);
329 $this->ojo = filter_var(
$ojo, FILTER_VALIDATE_BOOLEAN);
337 $this->reso = filter_var($reso, FILTER_VALIDATE_BOOLEAN);
345 $this->pkgagent = filter_var($package, FILTER_VALIDATE_BOOLEAN);
363 "reso" => $this->reso,
Model to hold analysis settings.
__construct($bucket=false, $copyright=false, $ecc=false, $keyword=false, $mimetype=false, $monk=false, $nomos=false, $ojo=false, $reso=false, $pkgagent=false)
setUsingArray($analysisArray)
setUsingString($analysisString)