From 1345403a7c593c9423d3fb2cb3d9611926dc0ace Mon Sep 17 00:00:00 2001 From: defacer Date: Tue, 25 Jan 2005 02:57:30 +0000 Subject: [PATCH] Renaming 4 internal-use-only class methods by prefixing an underscore. I want to make a point that people should NOT be calling them. --- blocks/HOWTO.html | 291 +++++++++++++++++++++++++++-------- blocks/moodleblock.class.php | 14 +- lib/blocklib.php | 8 +- 3 files changed, 238 insertions(+), 75 deletions(-) diff --git a/blocks/HOWTO.html b/blocks/HOWTO.html index c45b09274a..b6aca316d6 100644 --- a/blocks/HOWTO.html +++ b/blocks/HOWTO.html @@ -6,7 +6,7 @@ background-color: #ffeece; font-family: Verdana, Arial, serif; font-size: 90%; - padding: 10px 20px; + padding: 10px 30px; } h2 { border: 1px black solid; @@ -20,13 +20,20 @@ pre { font-family: Lucida Console, courier; } + .footer { + border: 1px black solid; + background-color: #FFD991; + padding: 5px; + margin: 4em; + -moz-border-radius: 25px; + } .header { border: 1px black solid; background-color: #fff; padding: 10px; -moz-border-radius: 25px; } - .header h1 { + .header h1, .footer h1 { text-align: center; font-size: 2em; } @@ -73,6 +80,7 @@ } a.function_title, a.variable_title, a.named_constant { cursor: help; + border: none !important; } a, a:visited, a:active { text-decoration: none; @@ -86,6 +94,23 @@ border: 1px #999 dotted; background-color: #FFD991; } + ul#methods_reference, ul#variables_reference, ul#constants_reference { + list-style-type: decimal; + } + ul#methods_reference ul, ul#variables_reference, ul#constants_reference { + border-left: 10px rgb(245, 180, 90) solid; + list-style-type: none; + margin: 0px; + margin-bottom: 3em; + padding: 0px 20px; + } + ul#methods_reference h3 { + margin-top: 2em; + } + ul#methods_reference ul li .function_title, ul#variables_reference .variable_title, ul#constants_reference .named_constant { + margin: 2em 0px 1em 0px; + border-bottom: 2px #666 dotted; + } @@ -175,7 +200,7 @@ -
  • +
  • Configure That Out

    @@ -329,7 +354,7 @@ function instance_allow_multiple() {
  • -
  • +
  • The Effects of Globalization

    @@ -542,13 +567,13 @@ function get_content() {

    Appendix A: Reference

    -

    This Appendix will discuss the base class block_base from which all other block classes derive, and present each and every method that can be overridden by block developers in detail. Methods that should NOT be overridden are explicitly referred to as such. After reading this Appendix, you will have a clear understanding of every method which you should or could override to implement functionality for your block.

    +

    This Appendix will discuss the base class block_base from which all other block classes derive, and present each and every method that can be overridden by block developers in detail. Methods that should not be overridden are explicitly referred to as such. After reading this Appendix, you will have a clear understanding of every method which you should or could override to implement functionality for your block.

    -

    The methods are divided into three categories: those you may use and override in your block, those that you may NOT override but might want to use, and those that should NEITHER be used NOR overridden. In each category, methods are presented in alphabetical order.

    +

    The methods are divided into three categories: those you may use and override in your block, those that you may not override but might want to use, and those internal methods that should neither be used nor overridden. In each category, methods are presented in alphabetical order.

    -