[ Index ] |
|
Code source de GeekLog 1.4.1 |
[Code source] [Imprimer] [Statistiques]
(pas de description)
Poids: | 859 lignes (32 kb) |
Inclus ou requis: | 0 fois |
Référencé: | 0 fois |
Nécessite: | 0 fichiers |
plugin_getmenuitems_staticpages() X-Ref |
Returns the items for this plugin that should appear on the main menu NOTE: this MUST return the url/value pairs in the following format $<arrayname>[<label>] = <url> |
plugin_commentsupport_staticpages() X-Ref |
Geeklog is checking to see if this plugin supports comments, tell it no. NOTE: to support comments you must used the same date/time based ID for your widget. In other words, to make primary keys for your plugin you should call makesid(). Comments are keyed off of that...it is a limitation on how Geeklog does comments. |
SP_countVisiblePages() X-Ref |
Helper function: Count static pages visible to the current user return: int number of pages |
plugin_showstats_staticpages($showsitestats) X-Ref |
Shows the statistics for the Static Pages plugin on stats.php. If $showsitestats is 1 then we are to only print the overall stats in the 'site statistics box' otherwise we show the detailed stats param: int showsitestate Flag to let us know which stats to get |
plugin_statssummary_staticpages() X-Ref |
New stats plugin API function for proper integration with the site stats return: array(item text, item count); |
plugin_searchtypes_staticpages() X-Ref |
Geeklog is asking us to provide any new items that show up in the type drop-down on search.php. Let's let users search static pages! |
plugin_dopluginsearch_staticpages($query, $datestart, $dateend, $topic, $type, $author, $keyType, $page, $perpage) X-Ref |
this searches for static pages matching the user query and returns an array of for the header and table rows back to search.php where it will be formated and printed param: string $query Keywords user is looking for param: date $datestart Start date to get results for param: date $dateend End date to get results for param: string $topic The topic they were searching in param: string $type Type of items they are searching, or 'all' param: int $author Get all results by this author param: string $keyType search key type: 'all', 'phrase', 'any' param: int $page page number of current search param: int $perpage number of results per page |
plugin_cclabel_staticpages() X-Ref |
This will put an option for static pages in the command and control block on moderation.php |
plugin_getadminoption_staticpages() X-Ref |
returns the administrative option for this plugin |
SP_getPerms($table = '', $access = '2', $u_id = '') X-Ref |
Return SQL where statement with appropriate permissions Takes User id and permission and returns SQL where clause which will return the appropriate objects. This assumes that the table has the following security structure: owner_id | mediumint(8) group_id | mediumint(8) perm_owner | tinyint(1) unsigned perm_group | tinyint(1) unsigned perm_members | tinyint(1) unsigned perm_anon | tinyint(1) unsigned This will work with the standard GL tables param: string $table Table name (used in joins) param: int $access Access if blank read access 2 = read 3 = read/edit param: int $u_id User ID if blank current user return: string Where clause of sql statement |
plugin_centerblock_staticpages($where = 1, $page = 1, $topic ='') X-Ref |
Display static pages in the center block. param: where int where the static page will be displayed (0..3) param: page int page number param: topic string topic ID return: string HTML for the static page (can be empty) |
plugin_user_delete_staticpages($uid) X-Ref |
A user is about to be deleted. Update ownership of any static pages owned by that user or delete them. param: uid int User id of deleted user |
plugin_chkVersion_staticpages() X-Ref |
Return the current version of code. Used in the Plugin Editor to show the registered version and code version |
plugin_autotags_staticpages($op, $content = '', $autotag = '') X-Ref |
Implements the [staticpage:] autotag. |
plugin_geticon_staticpages() X-Ref |
Returns the URL of the plugin's icon return: string URL of the icon |
plugin_upgrade_staticpages() X-Ref |
Update the Static Pages plugin return: int Number of message to display (true = generic success msg) |
plugin_uninstall_staticpages($steps = '') X-Ref |
Removes the data structures for this plugin from the Geeklog database This may get called by the install routine to undo anything done to this point. To do that, $steps will have a list of steps to undo |
staticpages_templatePath($path = '') X-Ref |
Get path for the template files. param: string $path subdirectory within the base template path return: string full path to template directory |
plugin_getListField_staticpages($fieldname, $fieldvalue, $A, $icon_arr) X-Ref |
Pas de description |
SP_render_content($sp_content, $sp_php) X-Ref |
Render the actual content of a static page (without any surrounding blocks) param: string $sp_content the content (HTML or PHP source) param: int $sp_php flag: 1 = content is PHP source, 0 = is HTML return: string rendered content (HTML) |
Généré le : Wed Nov 21 12:27:40 2007 | par Balluche grâce à PHPXref 0.7 |
![]() |