plugin/exo/Entity/Misc/Cell.php
public function getChoice($text)
    {
        $found = null;
        $text = trim($text);
        $iText = strtoupper(TextNormalizer::stripDiacritics($text));
        foreach ($this->choices as $choice) {
            /** @var CellChoice $choice */
            $tmpText = trim($choice->getText());
            if ($tmpText === $text
              || (
                  !$choice->isCaseSensitive() &&
                  strtoupper(TextNormalizer::stripDiacritics($tmpText)) === $iText)
          ) {
                $found = $choice;
                break;
            }
        }

        return $found;
    }
public function getChoice($text)
    {
        $found = null;
        $text = trim($text);
        $iText = strtoupper(TextNormalizer::stripDiacritics($text));
        foreach ($this->choices as $choice) {
            /** @var CellChoice $choice */
            $tmpText = trim($choice->getText());
            if ($tmpText === $text
              || (
                  !$choice->isCaseSensitive() &&
                  strtoupper(TextNormalizer::stripDiacritics($tmpText)) === $iText)
          ) {
                $found = $choice;
                break;
            }
        }

        return $found;
    }
public function getChoice ( $ text ) { $ found = null ; $ text = trim ( $ text ) ; $ iText = strtoupper ( TextNormalizer :: stripDiacritics ( $ text ) ) ; foreach ( $ this -> choices as $ choice ) { /** @var CellChoice $choice */ $ tmpText = trim ( $ choice -> getText ( ) ) ; if ( $ tmpText === $ text || ( ! $ choice -> isCaseSensitive ( ) && strtoupper ( TextNormalizer :: stripDiacritics ( $ tmpText ) ) === $ iText ) ) { $ found = $ choice ; break ; } } return $ found ; }
Get a cell choice by text.

@param string $text

@return Cell|null
Get a cell choice by text .