Markdown::__construct PHP Méthode

__construct() public méthode

public __construct ( )
    public function __construct()
    {
        if (!isset($this->CI)) {
            $this->CI =& get_instance();
        }
        $this->CI->load->helper('file');
        $this->CI->load->helper('url');
        $this->CI->load->driver('cache');
    }

Usage Example

	public function __construct() {
	#
	# Constructor function. Initialize the parser object.
	#
		# Add extra escapable characters before parent constructor 
		# initialize the table.
		$this->escape_chars .= ':|';
		
		# Insert extra document, block, and span transformations. 
		# Parent constructor will do the sorting.
		$this->document_gamut += array(
			"doFencedCodeBlocks" => 5,
			"stripFootnotes"     => 15,
			"stripAbbreviations" => 25,
			"appendFootnotes"    => 50,
			);
		$this->block_gamut += array(
			"doFencedCodeBlocks" => 5,
			"doTables"           => 15,
			"doDefLists"         => 45,
			);
		$this->span_gamut += array(
			"doFootnotes"        => 5,
			"doAbbreviations"    => 70,
			);
		
		$this->enhanced_ordered_list = true;
		parent::__construct();
	}