lib/components/types/ActiveRecordTrait.php
public function form($settings = [])
    {
        Yii::beginProfile(__CLASS__ . ':' . __FUNCTION__);
        $settings['class'] = $this->formSegmentClass;
        $settings['model'] = $this;
        if (!isset($settings['settings'])) {
            $settings['settings'] = [];
        }
        $form = Yii::createObject($settings);
        // $form = new FormSegment($this, $name, $settings);
        Yii::endProfile(__CLASS__ . ':' . __FUNCTION__);

        return $form;
    }
public function form($settings = [])
    {
        Yii::beginProfile(__CLASS__ . ':' . __FUNCTION__);
        $settings['class'] = $this->formSegmentClass;
        $settings['model'] = $this;
        if (!isset($settings['settings'])) {
            $settings['settings'] = [];
        }
        $form = Yii::createObject($settings);
        // $form = new FormSegment($this, $name, $settings);
        Yii::endProfile(__CLASS__ . ':' . __FUNCTION__);

        return $form;
    }
public function form ( $ settings = [ ] ) { Yii :: beginProfile ( __CLASS__ . ':' . __FUNCTION__ ) ; $ settings [ 'class' ] = $ this -> formSegmentClass ; $ settings [ 'model' ] = $ this ; if ( ! isset ( $ settings [ 'settings' ] ) ) { $ settings [ 'settings' ] = [ ] ; } $ form = Yii :: createObject ( $ settings ) ; // $form = new FormSegment($this, $name, $settings); Yii :: endProfile ( __CLASS__ . ':' . __FUNCTION__ ) ; return $ form ; }
@param unknown $name
@param unknown $settings (optional)

@return unknown
@param unknown $name @param unknown $settings ( optional )