public function getFormConfiguration($objectName, $formName)
    {
        $modelConfiguration = $this->getModelConfiguration($objectName);
        if (isset($modelConfiguration['forms'][$formName])) {
            $formConfiguration = $modelConfiguration['forms'][$formName];
            foreach ($formConfiguration['fields'] as $i => $formField) {
                $fieldConfiguration = $this->getField($objectName, $formField['name'], false);
                if (isset($fieldConfiguration['form_defaults'])) {
                    $formConfiguration['fields'][$i] = array_replace_recursive($fieldConfiguration['form_defaults'], $formField);
                }
            }

            usort($formConfiguration['fields'], array($this, 'sortByLocation'));

            return $formConfiguration;
        }
    }
public function getFormConfiguration($objectName, $formName)
    {
        $modelConfiguration = $this->getModelConfiguration($objectName);
        if (isset($modelConfiguration['forms'][$formName])) {
            $formConfiguration = $modelConfiguration['forms'][$formName];
            foreach ($formConfiguration['fields'] as $i => $formField) {
                $fieldConfiguration = $this->getField($objectName, $formField['name'], false);
                if (isset($fieldConfiguration['form_defaults'])) {
                    $formConfiguration['fields'][$i] = array_replace_recursive($fieldConfiguration['form_defaults'], $formField);
                }
            }

            usort($formConfiguration['fields'], array($this, 'sortByLocation'));

            return $formConfiguration;
        }
    }
public function getFormConfiguration ( $ objectName , $ formName ) { $ modelConfiguration = $ this -> getModelConfiguration ( $ objectName ) ; if ( isset ( $ modelConfiguration [ 'forms' ] [ $ formName ] ) ) { $ formConfiguration = $ modelConfiguration [ 'forms' ] [ $ formName ] ; foreach ( $ formConfiguration [ 'fields' ] as $ i => $ formField ) { $ fieldConfiguration = $ this -> getField ( $ objectName , $ formField [ 'name' ] , false ) ; if ( isset ( $ fieldConfiguration [ 'form_defaults' ] ) ) { $ formConfiguration [ 'fields' ] [ $ i ] = array_replace_recursive ( $ fieldConfiguration [ 'form_defaults' ] , $ formField ) ; } } usort ( $ formConfiguration [ 'fields' ] , array ( $ this , 'sortByLocation' ) ) ; return $ formConfiguration ; } }
Returns field configuration of the specified form in the object.

@param string $objectName
@param string $formName

@return array
Returns field configuration of the specified form in the object .