Merge pull request #3964 from totten/4.5-memlogtest
[civicrm-core.git] / CRM / Core / Region.php
index 5cde68767ef2bb9856f582ec6183c9f949ef5cbb..63953d104b95b1ce7b86f5f2e58c275475e1316d 100644 (file)
@@ -41,6 +41,9 @@ class CRM_Core_Region {
    */
   var $_isSorted;
 
+  /**
+   * @param $name
+   */
   public function __construct($name) {
     // Templates injected into regions should normally be file names, but sometimes inline notation is handy.
     require_once 'CRM/Core/Smarty/resources/String.php';
@@ -122,11 +125,20 @@ class CRM_Core_Region {
     return $snippet;
   }
 
+  /**
+   * @param $name
+   * @param $snippet
+   */
   public function update($name, $snippet) {
     $this->_snippets[$name] = array_merge($this->_snippets[$name], $snippet);
     $this->_isSorted = FALSE;
   }
 
+  /**
+   * @param $name
+   *
+   * @return mixed
+   */
   public function &get($name) {
     return @$this->_snippets[$name];
   }
@@ -203,6 +215,12 @@ class CRM_Core_Region {
     return $html;
   }
 
+  /**
+   * @param $a
+   * @param $b
+   *
+   * @return int
+   */
   static function _cmpSnippet($a, $b) {
     if ($a['weight'] < $b['weight']) return -1;
     if ($a['weight'] > $b['weight']) return 1;