Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
finalize some functions of the overlay interface
  • Loading branch information
bernard357 committed Dec 9, 2011
1 parent 76bae14 commit fe7f356
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions overlays/overlay.php
Expand Up @@ -132,13 +132,18 @@ function allows($type, $action) {
* $overlay = Overlay::bind('day without_past_dates');
* [/php]
*
* This function calls the member function initialize() to allow for additional
* generic initialization steps, if required. Example: loading of an external configuration
* file.
*
* @see articles/edit.php
* @see overlays/day.php
* @see sections/edit.php
*
* @param string overlay type
* @return a brand new instance
*/
function bind($type) {
final public static function bind($type) {
global $context;

// sanity check
Expand Down Expand Up @@ -580,8 +585,8 @@ function &get_view_text($host=NULL, $options=NULL) {
* - read data from some sensor
* - build a cache of data useful to the overlay
*
* Warning: this is a low-level function that is called before the initialization of
* $this->anchor so you can't rely on this variable here.
* Warning: this is a low-level function that is called before the settings of
* $this->attributes and of $this->anchor so you can't rely on these variables here.
*
* To be overloaded into derived class
*
Expand Down Expand Up @@ -610,7 +615,7 @@ function initialize() {
* @param string reference of the containing page (e.g., 'article:123')
* @return a restored instance, or NULL
*/
public static function load($host, $reference) {
final public static function load($host, $reference) {
global $context;

// no overlay yet
Expand Down

0 comments on commit fe7f356

Please sign in to comment.