public function forClass($className) {
        $parents = $this->getParents($className);
        $finalConfig = array();
        foreach ($parents as $parent) { // child will overwrite parent config for selected options;
            if (isset($this->options[$parent]) && count($this->options[$parent])) {
                foreach ($this->options[$parent] as $name => $option)
                    $finalConfig[$name] = $option;
            }
        }
        return $finalConfig;
    }
public function forClass($className) {
        $parents = $this->getParents($className);
        $finalConfig = array();
        foreach ($parents as $parent) { // child will overwrite parent config for selected options;
            if (isset($this->options[$parent]) && count($this->options[$parent])) {
                foreach ($this->options[$parent] as $name => $option)
                    $finalConfig[$name] = $option;
            }
        }
        return $finalConfig;
    }
public function forClass ( $ className ) { $ parents = $ this -> getParents ( $ className ) ; $ finalConfig = array ( ) ; foreach ( $ parents as $ parent ) { // child will overwrite parent config for selected options; if ( isset ( $ this -> options [ $ parent ] ) && count ( $ this -> options [ $ parent ] ) ) { foreach ( $ this -> options [ $ parent ] as $ name => $ option ) $ finalConfig [ $ name ] = $ option ; } } return $ finalConfig ; }
Returns config for a specific class. It will also check class parents and
add extra config for each of them.
@param string $className
@return string[]
Returns config for a specific class . It will also check class parents and add extra config for each of them .