public function setEntry($var = null, $val = null, $section = false)
    {
        if (!empty($var)) {
            if ($section) {
                if (!isset($this->registry[$section])) {
                    $this->registry[$section] = array();
                }
                $this->registry[$section][$var] = $val;
            } else {
                $this->registry[$var] = $val;
            }
        }
        return $this;
    }
public function setEntry($var = null, $val = null, $section = false)
    {
        if (!empty($var)) {
            if ($section) {
                if (!isset($this->registry[$section])) {
                    $this->registry[$section] = array();
                }
                $this->registry[$section][$var] = $val;
            } else {
                $this->registry[$var] = $val;
            }
        }
        return $this;
    }
public function setEntry ( $ var = null , $ val = null , $ section = false ) { if ( ! empty ( $ var ) ) { if ( $ section ) { if ( ! isset ( $ this -> registry [ $ section ] ) ) { $ this -> registry [ $ section ] = array ( ) ; } $ this -> registry [ $ section ] [ $ var ] = $ val ; } else { $ this -> registry [ $ var ] = $ val ; } } return $ this ; }
Set an entry in the instance registry

@param   null|string     $var        The variable name to set
@param   null|mixed      $val        The variable value to set
@param   false|string    $section    A section name in the registry (default is FALSE)
@return  self
Set an entry in the instance registry