code: public function setRegistry($var = null, $val = null, $section = false)
      {
          if (is_null($var)) {
              return;
          }
          if ($section) {
              if (!isset($this->registry[$section])) {
                  $this->registry[$section] = array();
              }
              $this->registry[$section][$var] = $val;
          } else {
              $this->registry[$var] = $val;
          }
          return $this;
      }
docs: Set a registry entry
  
  @param   string  $var The entry name
  @param   mixed   $val The entry value
  @param   string  $section A sub-section to search the entry
  @return void