public function __construct() { parent::__construct(); }
public function __construct($wanted_keys = array()) { // Setup the array of wanted keys - we're assuming that we'll only want // a subset in general so always do this rather than bother to test if // wanted_keys is empty as there is little overhead in the foreach loop // if it is foreach ($wanted_keys as $key) { $this->_wanted_keys[$key] = true; } $this->_want_all = empty($this->_wanted_keys) ? true : false; parent::__construct(); }