<?php /** * the configuration file * * @see https://michelf.ca/projects/php-markdown/configuration/ */ return array('empty_element_suffix' => ' />', 'tab_width' => 4, 'no_markup' => false, 'no_entities' => false, 'predef_urls' => array('base_url' => \Phile\Core\Utility::getBaseUrl()), 'predef_titles' => array(), 'fn_id_prefix' => "", 'fn_link_title' => "", 'fn_backlink_title' => "", 'fn_link_class' => "footnote-ref", 'fn_backlink_class' => "footnote-backref", 'code_class_prefix' => "", 'code_attr_on_pre' => false, 'predef_abbr' => array());
/** * link the method name to the API or return the method name * @param $class * @param $method * * @return string */ protected function linkClassMethod($class, $method) { if (strpos($class, 'Phile\\') === 0) { $filename = 'docs/classes/' . str_replace('\\', '.', $class) . '.html'; if (file_exists(Utility::resolveFilePath($filename))) { $method = '<a href="' . Utility::getBaseUrl() . '/' . $filename . '#method_' . $method . '" target="_blank">' . $method . '</a>'; } } return $method; }