Esempio n. 1
0
 /**
  * Setter
  *
  * @param string $data
  * @return string
  */
 public static function set($data)
 {
     $idna = new NetworkWrapper_IdnaConvert();
     return $idna->encode_uri($data);
 }
Esempio n. 2
0
 /**
  * the constructor
  *
  * @param array $options
  * @return boolean
  * @since 0.5.2
  */
 public function __construct($options = false)
 {
     $this->slast = $this->_sbase + $this->_lcount * $this->_vcount * $this->_tcount;
     // If parameters are given, pass these to the respective method
     if (is_array($options)) {
         $this->set_parameter($options);
     }
     // populate mbstring overloading cache if not set
     if (self::$_mb_string_overload === null) {
         self::$_mb_string_overload = extension_loaded('mbstring') && (ini_get('mbstring.func_overload') & 0x2) === 0x2;
     }
 }