| [ Index ] |
|
Code source de Serendipity 1.2 |
[Code source] [Imprimer] [Statistiques]
(pas de description)
| Poids: | 775 lignes (27 kb) |
| Inclus ou requis: | 2 fois |
| Référencé: | 0 fois |
| Nécessite: | 0 fichiers |
| serendipity_makeFilename($str, $stripDots = false) X-Ref |
| Converts a string into a filename that can be used safely in HTTP URLs param: string input string param: boolean Shall dots in the filename be removed? (Required for certain regex rules) return: string output string |
| serendipity_initPermalinks() X-Ref |
| Initialize permalinks, if the user did not specify those yet return: null |
| serendipity_permalinkPatterns($return = false) X-Ref |
| Build an array containing all regular expression permalinks param: boolean If set to true, the list of permalinks will be returned. If false, all permalinks will be applied as Constants return: array (conditional on $return) List of permalinks |
| serendipity_searchPermalink($struct, $url, $default, $type = 'entry') X-Ref |
| Search the reference to a specific permalink This query will show the Entry/Category/Author-ID to a permalink, if that permalink does not contain %id%. param: string The permalink configuration string param: string The URL to check param: string A default return value if no permalink is found param: string The type of a permalink (entry|category|author) return: string The ID of the permalink type |
| serendipity_getPermalink(&$data, $type = 'entry') X-Ref |
| Create a permalink for the given input data You can pass an entry array, or an author array to this function and then get a permalink valid for that array param: array The input data used for building the permalink param: string The type of the permalink (entry|category|author) return: string The permalink |
| serendipity_updatePermalink(&$data, $type = 'entry') X-Ref |
| Update a permalink with new data param: array The input data used for building the permalink param: string The type of the permalink (entry|category|author) return: string The database result |
| serendipity_insertPermalink(&$data, $type = 'entry') X-Ref |
| Insert a new Permalink into the database for latter retrieval This function is basically only used if you have no '%id%' value in your permalink config. param: array The input data used for building the permalink param: string The type of the permalink (entry|category|author) return: string The permalink |
| serendipity_buildPermalinks() X-Ref |
| Build all permalinks for all current entries, authors and categories return: null |
| serendipity_rewriteURL($path, $key='baseURL', $forceNone = false) X-Ref |
| Uses logic to figure out how the URI should look, based on current rewrite rule param: string The URL part that you want to format to "pretty urls" param: string The path/URL you want as a prefix for your pretty URL param: boolean If set to TRUE this will bypass all pretty URLs and format the link so that it works everywhere return: string The rewritten URL |
| serendipity_makePermalink($format, $data, $type = 'entry') X-Ref |
| Format a permalink according to the configured format param: string The URL format to use param: array The input data to format a permalink param: string The type of the permalink (entry|category|author) return: string The formatted permalink |
| serendipity_makePermalinkRegex($format, $type = 'entry') X-Ref |
| Convert a permalink configuration into a regular expression for use in rewrite rules param: string The URL format to use param: string The type of the permalink (entry|category|author) return: string The regular expression to a permalink URL |
| serendipity_archiveURL($id, $title, $key = 'baseURL', $checkrewrite = true, $entryData = null) X-Ref |
| Create a permalink for an entry permalink param: int The entry ID param: string The entry title param: string The base URL/path key param: boolean Shall the link be rewritten to a pretty URL? param: array Additional entry data return: string The permalink |
| serendipity_authorURL(&$data, $key = 'baseURL', $checkrewrite = true) X-Ref |
| Create a permalink for an authors permalink param: array The author data param: string The base URL/path key param: boolean Shall the link be rewritten to a pretty URL? return: string The permalink |
| serendipity_categoryURL(&$data, $key = 'baseURL', $checkrewrite = true) X-Ref |
| Create a permalink for an category permalink param: array The category data param: string The base URL/path key param: boolean Shall the link be rewritten to a pretty URL? return: string The permalink |
| serendipity_feedCategoryURL(&$data, $key = 'baseURL', $checkrewrite = true) X-Ref |
| Create a permalink for an RSS feed permalink param: array The entry data param: string The base URL/path key param: boolean Shall the link be rewritten to a pretty URL? return: string The permalink |
| serendipity_feedAuthorURL(&$data, $key = 'baseURL', $checkrewrite = true) X-Ref |
| Create a permalink for an RSS authors' feed permalink param: array The entry data param: string The base URL/path key param: boolean Shall the link be rewritten to a pretty URL? return: string The permalink |
| serendipity_archiveDateUrl($range, $summary=false, $key='baseURL') X-Ref |
| Create a permalink for an archive date param: string The archive's date param: boolean If true, only summary archive param: string The base URL/path key return: string The permalink |
| serendipity_currentURL($strict = false) X-Ref |
| Returns the URL to the current page that is being viewed return: string the current URL |
| serendipity_getUriArguments($uri, $wildcard = false) X-Ref |
| Get the URI Arguments for the current HTTP Request param: string The URI made for this request param: boolean If enabled, then no Dots are allowed in the URL for permalinks return: |
| Généré le : Sat Nov 24 09:00:37 2007 | par Balluche grâce à PHPXref 0.7 |
|