public function getForm($primaryModel = false, $settings = [])
    {
        if (!$primaryModel) {
            return false;
        }
        $formSegments = [$this->getFormSegment($primaryModel, $settings)];
        $config = ['class' => $this->formGeneratorClass, 'models' => $primaryModel->collectModels(), 'items' => $formSegments];

        return Yii::createObject($config);
    }
public function getForm($primaryModel = false, $settings = [])
    {
        if (!$primaryModel) {
            return false;
        }
        $formSegments = [$this->getFormSegment($primaryModel, $settings)];
        $config = ['class' => $this->formGeneratorClass, 'models' => $primaryModel->collectModels(), 'items' => $formSegments];

        return Yii::createObject($config);
    }
public function getForm ( $ primaryModel = false , $ settings = [ ] ) { if ( ! $ primaryModel ) { return false ; } $ formSegments = [ $ this -> getFormSegment ( $ primaryModel , $ settings ) ] ; $ config = [ 'class' => $ this -> formGeneratorClass , 'models' => $ primaryModel -> collectModels ( ) , 'items' => $ formSegments ] ; return Yii :: createObject ( $ config ) ; }
Get form.

@param boolean $primaryModel [[@doctodo param_description:primaryModel]] [optional]
@param array   $settings     [[@doctodo param_description:settings]] [optional]

@return unknown
Get form .