/** * Setup. */ public function __construct() { self::$mb = function_exists('mb_detect_encoding'); // Set the search and replace to escape strings. self::$escapeSearch = array(self::ESCAPE, self::DELIM, self::NEWLINE, self::QUOTE); // escape must go first self::$escapeReplace = array(self::ESCAPE . self::ESCAPE, self::ESCAPE . self::DELIM, self::ESCAPE . self::NEWLINE, self::ESCAPE . self::QUOTE); // Load structure. $this->_structures = vanillaStructure(); }