[ Index ] |
|
Code source de CMS made simple 1.0.5 |
[Code source] [Imprimer] [Statistiques]
(pas de description)
Poids: | 1717 lignes (60 kb) |
Inclus ou requis: | 3 fois |
Référencé: | 0 fois |
Nécessite: | 1 fichier lib/classes/class.recentpage.inc.php |
AdminTheme:: (43 méthodes):
AdminTheme()
SetInitialValues()
SendHeaders()
MenuListSectionModules()
SetModuleAdminInterfaces()
SetAggregatePermissions()
HasPerm()
LoadRecentPages()
AddAsRecentPage()
DoBookmarks()
ShowShortcuts()
DisplayBookmarks()
StartRighthandColumn()
EndRighthandColumn()
DoRecentPages()
DisplayRecentPages()
OutputHeaderJavascript()
OutputFooterJavascript()
FixSpaces()
UnFixSpaces()
PopulateAdminNavigation()
BackUrl()
DoTopMenu()
DisplaySectionPages()
HasDisplayableChildren()
TopParent()
ListSectionPages()
DisplayAllSectionPages()
renderMenuSection()
DisplayTopMenu()
DisplayFooter()
DisplayDocType()
DisplayHTMLStartTag()
DisplayHTMLHeader()
DisplaySectionMenuDivStart()
DisplaySectionMenuDivEnd()
DisplayDashboardCallout()
DisplayImage()
ShowHeader()
_ArraySearchRecursive()
ShowErrors()
ShowMessage()
GetThemeObject()
Classe: AdminTheme - X-Ref
Class for Admin ThemeAdminTheme($cms, $userid, $themeName) X-Ref |
Generic constructor. Runs the SetInitialValues fuction. |
SetInitialValues($cms, $userid, $themeName) X-Ref |
Sets object to some sane initial values |
SendHeaders($alreadySentCharset, $encoding) X-Ref |
Send admin page HTTP headers. param: alreadySentCharset boolean have we already sent character encoding? param: encoding string what encoding should we set? |
MenuListSectionModules($section) X-Ref |
MenuListSectionModules This method reformats module information for display in menus. When passed the name of the admin section, it returns an array of associations: array['module-name']['url'] is the link to that module, and array['module-name']['description'] is the language-specific short description of the module. param: section - section to display |
SetModuleAdminInterfaces() X-Ref |
SetModuleAdminInterfaces This function sets up data structures to place modules in the proper Admin sections for display on section pages and menus. |
SetAggregatePermissions() X-Ref |
SetAggregatePermissions This function gathers disparate permissions to come up with the visibility of various admin sections, e.g., if there is any content-related operation for which a user has permissions, the aggregate content permission is granted, so that menu item is visible. |
HasPerm($permission) X-Ref |
HasPerm Check if the user has one of the aggregate permissions param: permission the permission to check. |
LoadRecentPages() X-Ref |
LoadRecentPages This method loads a list of recently-accessed pages from the database. This list is stored in this object's variable "recent" as an array of associations. See ../lib/classes/class.recentpage.inc.php for more information on the array's format. |
AddAsRecentPage() X-Ref |
AddAsRecentPage Adds this page to the list of recently-visited pages. It attempts to filter out top-level pages, and to avoid adding the same page multiple times. |
DoBookmarks() X-Ref |
DoBookmarks Setup method for displaying admin bookmarks. |
ShowShortcuts() X-Ref |
DoBookmarks Method for displaying admin bookmarks (shortcuts) & help links. |
DisplayBookmarks($marks) X-Ref |
DisplayBookmarks Output bookmark data. Over-ride this to alter display of Bookmark information. Bookmark objects contain two useful fields: title and url param: marks - this is an array of Bookmark Objects |
StartRighthandColumn() X-Ref |
StartRighthandColumn Override this for different behavior or special functionality for the righthand column. Usual use would be a div open tag. |
EndRighthandColumn() X-Ref |
EndRighthandColumn Override this for different behavior or special functionality for the righthand column. Usual use would be a div close tag. |
DoRecentPages() X-Ref |
DoRecentPages Setup method for displaying recent pages. |
DisplayRecentPages() X-Ref |
DisplayRecentPages Output Recent Page data. Over-ride this to alter display of Recent Pages information. Recent page information is available in $this->recent, which is an array of RecentPage objects. RecentPage objects contain two useful fields: title and url |
OutputHeaderJavascript() X-Ref |
OutputHeaderJavascript This method can be used to dump out any javascript you'd like into the Admin page header. In fact, it can be used to put just about anything into the page header. It's recommended that you leave or copy the javascript below into your own method if you override this -- it's used by the dropdown menu in IE. |
OutputFooterJavascript() X-Ref |
OutputFooterJavascript This method can be used to dump out any javascript you'd like into the Admin page footer. It's recommended that you leave or copy the javascript below into your own method if you override this -- it's used by bookmarks/recent pages tabs. |
FixSpaces($str) X-Ref |
FixSpaces This method converts spaces into a non-breaking space HTML entity. It's used for making menus that work nicely param: str string to have its spaces converted |
UnFixSpaces($str) X-Ref |
UnFixSpaces This method converts non-breaking space HTML entities into char(20)s. param: str string to have its spaces converted |
PopulateAdminNavigation($subtitle='') X-Ref |
PopulateAdminNavigation This method populates a big array containing the Navigation Taxonomy for the admin section. This array is then used to create menus and section main pages. It uses aggregate permissions to hide sections for which the user doesn't have permissions, and highlights the current section so menus can show the user where they are. param: subtitle any info to add to the page title |
BackUrl() X-Ref |
BackUrl "Back" Url - link to the next-to-last item in the breadcrumbs for the back button. |
DoTopMenu() X-Ref |
DoTopMenu Setup function for displaying the top menu. |
DisplaySectionPages($section) X-Ref |
DisplaySectionPages Shows admin section pages in the specified section, wrapped in a MainMenuItem div. This is used in the top-level section pages. You can override this if you want to change the way it is shown. param: section - section to display |
HasDisplayableChildren($section) X-Ref |
HasDisplayableChildren This method returns a boolean, based upon whether the section in question has displayable children. param: section - section to test |
TopParent($section) X-Ref |
TopParent This method returns the menu node that is the top-level parent of the node you pass to it. param: section - section (menu tag) to find top-level parent |
ListSectionPages($section) X-Ref |
ListSectionPages This method presents a nice, human-readable list of admin pages and modules that are in the specified admin section. param: section - section to display |
DisplayAllSectionPages() X-Ref |
DisplayAllSectionPages Shows all admin section pages and modules. This is used to display the admin "main" page. |
renderMenuSection($section, $depth, $maxdepth) X-Ref |
Pas de description |
DisplayTopMenu() X-Ref |
DisplayTopMenu Output Top Menu data. Over-ride this to alter display of the top menu. param: menuItems an array of associated items; each element has a section, title, |
DisplayFooter() X-Ref |
DisplayFooter Displays an end-of-page footer. |
DisplayDocType() X-Ref |
DisplayDocType If you rewrite the admin section to output pure, beautiful, unadulterated XHTML, you can change the body tag so that it proudly proclaims that there is none of the evil transitional cruft. |
DisplayHTMLStartTag() X-Ref |
DisplayHTMLStartTag Outputs the html open tag. Override at your own risk :) |
DisplayHTMLHeader($showielink = false, $addt = '') X-Ref |
DisplayHTMLHeader This method outputs the HEAD section of the html page in the admin section. |
DisplaySectionMenuDivStart() X-Ref |
DisplaySectionMenuDivStart Outputs the open div tag for the main section pages. |
DisplaySectionMenuDivEnd() X-Ref |
DisplaySectionMenuDivEnd Outputs the close div tag for the main section pages. |
DisplayDashboardCallout($file, $message = '') X-Ref |
DisplayDashboardCallout Outputs warning if the install directory is still there. param: file file or dir to check for param: message to display if it does exist |
DisplayImage($imageName, $alt='', $width='', $height='', $class='') X-Ref |
DisplayImage will display the themed version of an image (if it exists), or the version from the default theme otherwise. param: imageName - name of image param: alt - alt text param: width param: height |
ShowHeader($title_name, $extra_lang_param=array() X-Ref |
ShowHeader Outputs the page header title along with a help link to that section in the wiki. param: title_name - page heading title param: extra_lang_param - extra parameters to pass to lang() (I don't think this parm is needed) param: link_text - Override the text to use for the help link. param: module_help_type - FALSE if this is not a module, 'both' if link to |
_ArraySearchRecursive($needle, $haystack) X-Ref |
_ArraySearchRecursive recursively descend an arbitrarily deep multidimensional array, stopping at the first occurence of scalar $needle. return the path to $needle as an array (list) of keys if not found, return null. (will infinitely recurse on self-referential structures) From: http://us3.php.net/function.array-search |
ShowErrors($errors, $get_var = '') X-Ref |
ShowError Outputs supplied errors with a link to the wiki for troublshooting. param: errors - array or string of 1 or more errors to be shown param: get_var - Name of the _GET variable that contains the |
ShowMessage($message, $get_var = '') X-Ref |
ShowMessage Outputs a page status message param: message - Message to be shown param: get_var - Name of the _GET variable that contains the |
GetThemeObject() X-Ref |
Pas de description |
Généré le : Tue Apr 3 18:50:37 2007 | par Balluche grâce à PHPXref 0.7 |