Zend Framework

Add get() accessor to allow default values from a config node

Details

  • Type: Improvement Improvement
  • Status: Resolved Resolved
  • Priority: Minor Minor
  • Resolution: Fixed
  • Affects Version/s: 0.9.3
  • Fix Version/s: None
  • Component/s: Zend_Config
  • Labels:
    None

Description

public function get($name, $default = null)
    {
        $result = $this->__get($name);
        if ($result !== null) {
            return $result;
        }
        return $default;
    }

Activity

Hide
Bill Karwin added a comment -

Assigning to Darby.

Show
Bill Karwin added a comment - Assigning to Darby.
Hide
Rob Allen added a comment -

Fixed in svn 5063

Show
Rob Allen added a comment - Fixed in svn 5063

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: