searchFor() public method

The standard wildcards * (many characters) and ? (a single character) are supported.
public searchFor ( string $strPattern ) : string[] | null
$strPattern string The text to search for. This may contain wildcards.
return string[] | null The list of item ids of all items matching the condition or null if all match.
Beispiel #1
0
 /**
  * {@inheritdoc}
  */
 public function getMatchingIds()
 {
     if ($this->objAttribute instanceof ITranslated) {
         return $this->objAttribute->searchForInLanguages($this->strValue, $this->arrValidLanguages);
     }
     return $this->objAttribute->searchFor($this->strValue);
 }