Fix Calc
This commit is contained in:
parent
9daf5e9e24
commit
a57786d835
File diff suppressed because one or more lines are too long
@ -107,6 +107,8 @@ class Select extends Base
|
|||||||
}
|
}
|
||||||
|
|
||||||
if($system) {
|
if($system) {
|
||||||
|
$this->element->setColorSystem($colorSystem);
|
||||||
|
|
||||||
foreach ($system->getAllColors() as $color) {
|
foreach ($system->getAllColors() as $color) {
|
||||||
$optColor = new \PSC\Library\Calc\Option\Type\Select\ColorOpt();
|
$optColor = new \PSC\Library\Calc\Option\Type\Select\ColorOpt();
|
||||||
$optColor->setId($color->getName());
|
$optColor->setId($color->getName());
|
||||||
|
|||||||
@ -7,6 +7,8 @@ use PSC\Library\Calc\Tests\Mock\Paper;
|
|||||||
|
|
||||||
class ColorDBSelect extends Select
|
class ColorDBSelect extends Select
|
||||||
{
|
{
|
||||||
|
private string $colorSystem = "";
|
||||||
|
|
||||||
public function getSelectedOption()
|
public function getSelectedOption()
|
||||||
{
|
{
|
||||||
/** @var Opt $opt */
|
/** @var Opt $opt */
|
||||||
@ -15,4 +17,14 @@ class ColorDBSelect extends Select
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function getColorSystem(): string
|
||||||
|
{
|
||||||
|
return $this->colorSystem;
|
||||||
|
}
|
||||||
|
|
||||||
|
public function setColorSystem(string $colorSystem): void
|
||||||
|
{
|
||||||
|
$this->colorSystem = $colorSystem;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -52,17 +52,11 @@ class Select extends Base
|
|||||||
return parent::getValue(); // TODO: Change the autogenerated stub
|
return parent::getValue(); // TODO: Change the autogenerated stub
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* @return String
|
|
||||||
*/
|
|
||||||
public function getMode()
|
public function getMode()
|
||||||
{
|
{
|
||||||
return $this->mode;
|
return $this->mode;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* @param String $mode
|
|
||||||
*/
|
|
||||||
public function setMode($mode)
|
public function setMode($mode)
|
||||||
{
|
{
|
||||||
$this->mode = $mode;
|
$this->mode = $mode;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user