static private $_instances = NULL;
/**
- * Obtain the content for a given region
+ * Obtain the content for a given region.
*
* @param string $name
* @param bool $autocreate
}
/**
- * Add a snippet of content to a region
+ * Add a snippet of content to a region.
*
* @code
* CRM_Core_Region::instance('page-header')->add(array(
}
/**
- * Render all the snippets in a region
+ * Render all the snippets in a region.
*
* @param string $default
* HTML, the initial content of the region.
case 'jquery':
$snippet['script'] = sprintf("CRM.\$(function(\$) {\n%s\n});", $snippet['jquery']);
- // no break - continue processing as script
+ // no break - continue processing as script
case 'script':
if (!$allowCmsOverride || !$cms->addScript($snippet['script'], $this->_name)) {
$html .= sprintf("<script type=\"text/javascript\">\n%s\n</script>\n", $snippet['script']);
}
/**
- * Add block of static HTML to a region
+ * Add block of static HTML to a region.
*
* @param string $markup
* HTML.
* }
*
* /**
- * Add a Smarty template file to a region
+ * Add a Smarty template file to a region.
*
* Note: File is not evaluated until the page is rendered
*
* }
*
* /**
- * Use a callback function to extend a region
+ * Use a callback function to extend a region.
*
* @param mixed $callback
* @param array $arguments
* ));
* }
*/
+
}