public static function setOptions($arrOptions = array(), $_type = 1) { if (!empty($arrOptions)) { self::$arrOptions = $arrOptions; self::setReplace(); } self::$flgType = $_type; }