public function getFieldsByView($objectName, $viewName)
    {
        $fieldConfigurations = array();

        $viewConfiguration = $this->getViewConfiguration($objectName, $viewName);
        if (is_array($viewConfiguration)) {
            $fieldConfigurations = $viewConfiguration["fields"];
            foreach ($fieldConfigurations as $i => $fieldConfiguration) {
                $fieldConfigurations[$i] = array_replace_recursive($this->defaultFieldConfiguration, $fieldConfiguration);
            }
        }
        usort($fieldConfigurations, array($this, 'sortByLocation'));

        return $fieldConfigurations;
    }
public function getFieldsByView($objectName, $viewName)
    {
        $fieldConfigurations = array();

        $viewConfiguration = $this->getViewConfiguration($objectName, $viewName);
        if (is_array($viewConfiguration)) {
            $fieldConfigurations = $viewConfiguration["fields"];
            foreach ($fieldConfigurations as $i => $fieldConfiguration) {
                $fieldConfigurations[$i] = array_replace_recursive($this->defaultFieldConfiguration, $fieldConfiguration);
            }
        }
        usort($fieldConfigurations, array($this, 'sortByLocation'));

        return $fieldConfigurations;
    }
public function getFieldsByView ( $ objectName , $ viewName ) { $ fieldConfigurations = array ( ) ; $ viewConfiguration = $ this -> getViewConfiguration ( $ objectName , $ viewName ) ; if ( is_array ( $ viewConfiguration ) ) { $ fieldConfigurations = $ viewConfiguration [ "fields" ] ; foreach ( $ fieldConfigurations as $ i => $ fieldConfiguration ) { $ fieldConfigurations [ $ i ] = array_replace_recursive ( $ this -> defaultFieldConfiguration , $ fieldConfiguration ) ; } } usort ( $ fieldConfigurations , array ( $ this , 'sortByLocation' ) ) ; return $ fieldConfigurations ; }
Returns the fields in the object view.

@param string $objectName
@param string $viewName

@return array
Returns the fields in the object view .