public function getViewConfiguration($objectName, $viewName)
    {
        $modelConfiguration = $this->getModelConfiguration($objectName);
        if (isset($modelConfiguration['views'][$viewName])) {
            $viewConfiguration = $modelConfiguration['views'][$viewName];
            if (isset($viewConfiguration['fields']) === false) {
                $viewConfiguration['fields'] = array();
            }

            foreach ($viewConfiguration['fields'] as $i => $viewField) {
                $fieldConfiguration = $this->getField($objectName, $viewField['name'], false);
                if (is_array($fieldConfiguration)) {
                    $viewConfiguration['fields'][$i] = array_replace_recursive($fieldConfiguration, $viewField);
                }
            }
            usort($viewConfiguration['fields'], array($this, 'sortByLocation'));

            return $viewConfiguration;
        }
    }
public function getViewConfiguration($objectName, $viewName)
    {
        $modelConfiguration = $this->getModelConfiguration($objectName);
        if (isset($modelConfiguration['views'][$viewName])) {
            $viewConfiguration = $modelConfiguration['views'][$viewName];
            if (isset($viewConfiguration['fields']) === false) {
                $viewConfiguration['fields'] = array();
            }

            foreach ($viewConfiguration['fields'] as $i => $viewField) {
                $fieldConfiguration = $this->getField($objectName, $viewField['name'], false);
                if (is_array($fieldConfiguration)) {
                    $viewConfiguration['fields'][$i] = array_replace_recursive($fieldConfiguration, $viewField);
                }
            }
            usort($viewConfiguration['fields'], array($this, 'sortByLocation'));

            return $viewConfiguration;
        }
    }
public function getViewConfiguration ( $ objectName , $ viewName ) { $ modelConfiguration = $ this -> getModelConfiguration ( $ objectName ) ; if ( isset ( $ modelConfiguration [ 'views' ] [ $ viewName ] ) ) { $ viewConfiguration = $ modelConfiguration [ 'views' ] [ $ viewName ] ; if ( isset ( $ viewConfiguration [ 'fields' ] ) === false ) { $ viewConfiguration [ 'fields' ] = array ( ) ; } foreach ( $ viewConfiguration [ 'fields' ] as $ i => $ viewField ) { $ fieldConfiguration = $ this -> getField ( $ objectName , $ viewField [ 'name' ] , false ) ; if ( is_array ( $ fieldConfiguration ) ) { $ viewConfiguration [ 'fields' ] [ $ i ] = array_replace_recursive ( $ fieldConfiguration , $ viewField ) ; } } usort ( $ viewConfiguration [ 'fields' ] , array ( $ this , 'sortByLocation' ) ) ; return $ viewConfiguration ; } }
Returns field configuration of the specified view in the object.

@param string $objectName
@param string $viewName

@return array|null
Returns field configuration of the specified view in the object .