/** * * Gets the option settings from the class hierarchy. * * @return array * */ protected function _fetchGetoptOptions() { // the options to be set $options = array(); // find the parents of this class, including this class $parents = Solar_Class::parents($this, true); array_shift($parents); // Solar_Base // get Info/options.php for each class in the stack foreach ($parents as $class) { $file = Solar_Class::file($class, 'Info/options.php'); if ($file) { $options = array_merge($options, (array) Solar_File::load($file)); } } return $options; }