Znerol\Component\Stringprep\Profile::prohibit PHP Method

prohibit() protected method

Check for prohibited output (RFC 3454 section 5)
protected prohibit ( $codepoints )
    protected function prohibit($codepoints)
    {
        foreach ($this->prohibit as $prohibit) {
            array_walk($codepoints, 'static::validateCodepoint', 'Znerol\\Component\\Stringprep\\RFC3454\\' . $prohibit . '::filter');
        }
    }

Usage Example

Esempio n. 1
0
 /**
  * Prohibit invalid codepoints.
  */
 protected function prohibit($codepoints)
 {
     parent::prohibit($codepoints);
     array_walk($codepoints, 'static::validateCodepoint', 'static::iscisProhibitFilter');
 }