|
Moodle
2.2.1
http://www.collinsharper.com
|


Public Member Functions | |
| init () | |
| instance_allow_multiple () | |
| applicable_formats () | |
| instance_allow_config () | |
| instance_can_be_hidden () | |
| instance_can_be_docked () | |
| get_required_javascript () | |
| get_content () | |
| html_attributes () | |
| trim (navigation_node $node, $mode=1, $long=50, $short=25, $recurse=true, $textlib=null) | |
Data Fields | |
| $blockname = null | |
| const | TRIM_RIGHT = 1 |
| const | TRIM_LEFT = 2 |
| const | TRIM_CENTER = 3 |
Static Public Attributes | |
| static | $navcount |
Protected Member Functions | |
| trim_left ($textlib, $string, $length) | |
| trim_right ($textlib, $string, $length) | |
| trim_center ($textlib, $string, $length) | |
Protected Attributes | |
| $contentgenerated = false | |
| $docked = null | |
Definition at line 37 of file block_navigation.php.
Set the applicable formats for this block to all
Reimplemented from block_base.
Definition at line 76 of file block_navigation.php.
| get_content | ( | ) |
Gets the content for this block by grabbing it from $this->page
Reimplemented from block_base.
Definition at line 128 of file block_navigation.php.

Reimplemented from block_base.
Definition at line 102 of file block_navigation.php.

| html_attributes | ( | ) |
Returns the attributes to set for this block
This function returns an array of HTML attributes for this block including the defaults block_tree->html_attributes() is used to get the default arguments and then we check whether the user has enabled hover expansion and add the appropriate hover class if it has
Reimplemented from block_base.
Definition at line 218 of file block_navigation.php.
| init | ( | ) |
Set the initial properties for the block
Definition at line 58 of file block_navigation.php.
Allow the user to configure a block instance
Reimplemented from block_base.
Definition at line 84 of file block_navigation.php.
All multiple instances of this block
Reimplemented from block_base.
Definition at line 68 of file block_navigation.php.
Can be overridden by the block to prevent the block from being dockable.
Reimplemented from block_base.
Definition at line 98 of file block_navigation.php.
The navigation block cannot be hidden by default as it is integral to the navigation of Moodle.
Reimplemented from block_base.
Definition at line 94 of file block_navigation.php.
| trim | ( | navigation_node $ | node, |
| $ | mode = 1, |
||
| $ | long = 50, |
||
| $ | short = 25, |
||
| $ | recurse = true, |
||
| $ | textlib = null |
||
| ) |
Trims the text and shorttext properties of this node and optionally all of its children.
| int | $mode | One of navigation_node::TRIM_* |
| int | $long | The length to trim text to |
| int | $short | The length to trim shorttext to |
| bool | $recurse | Recurse all children |
| textlib | null | $textlib |
Definition at line 236 of file block_navigation.php.


| trim_center | ( | $ | textlib, |
| $ | string, | ||
| $ | length | ||
| ) | [protected] |
Truncate a string in the center
| textlib | $textlib | |
| string | $string | The string to truncate |
| int | $length | The length to truncate to |
Definition at line 305 of file block_navigation.php.

| trim_left | ( | $ | textlib, |
| $ | string, | ||
| $ | length | ||
| ) | [protected] |
Truncate a string from the left
| textlib | $textlib | |
| string | $string | The string to truncate |
| int | $length | The length to truncate to |
Definition at line 285 of file block_navigation.php.

| trim_right | ( | $ | textlib, |
| $ | string, | ||
| $ | length | ||
| ) | [protected] |
Truncate a string from the right
| textlib | $textlib | |
| string | $string | The string to truncate |
| int | $length | The length to truncate to |
Definition at line 295 of file block_navigation.php.

| $blockname = null |
Definition at line 42 of file block_navigation.php.
$contentgenerated = false [protected] |
Definition at line 44 of file block_navigation.php.
$docked = null [protected] |
Definition at line 46 of file block_navigation.php.
$navcount [static] |
Definition at line 40 of file block_navigation.php.
| const TRIM_CENTER = 3 |
Definition at line 53 of file block_navigation.php.
| const TRIM_LEFT = 2 |
Definition at line 51 of file block_navigation.php.
| const TRIM_RIGHT = 1 |
Definition at line 49 of file block_navigation.php.