src/ngrest/base/Plugin.php
public function createFormTag($name, $id, $ngModel, array $options = [])
    {
        $defaultOptions = [
            'fieldid' => $id,
            'model' => $ngModel,
            'label' => $this->alias,
            'fieldname' => $this->name,
            'i18n' => $this->i18n ? 1 : '',
        ];
        
        // if a condition is available, evalute from given context
        if ($this->condition) {
            $defaultOptions['ng-show'] = $this->getNgShowCondition($ngModel);
        }
        
        return $this->createTag($name, null, array_merge($options, $defaultOptions));
    }
public function createFormTag($name, $id, $ngModel, array $options = [])
    {
        $defaultOptions = [
            'fieldid' => $id,
            'model' => $ngModel,
            'label' => $this->alias,
            'fieldname' => $this->name,
            'i18n' => $this->i18n ? 1 : '',
        ];
        
        // if a condition is available, evalute from given context
        if ($this->condition) {
            $defaultOptions['ng-show'] = $this->getNgShowCondition($ngModel);
        }
        
        return $this->createTag($name, null, array_merge($options, $defaultOptions));
    }
public function createFormTag ( $ name , $ id , $ ngModel , array $ options = [ ] ) { $ defaultOptions = [ 'fieldid' => $ id , 'model' => $ ngModel , 'label' => $ this -> alias , 'fieldname' => $ this -> name , 'i18n' => $ this -> i18n ? 1 : '' , ] ; // if a condition is available, evalute from given context if ( $ this -> condition ) { $ defaultOptions [ 'ng-show' ] = $ this -> getNgShowCondition ( $ ngModel ) ; } return $ this -> createTag ( $ name , null , array_merge ( $ options , $ defaultOptions ) ) ; }
Helper method to create a form tag based on current object.

@param string $name Name of the form tag.
@param string $id The id tag of the tag.
@param string $ngModel The ngrest model name of the tag.
@param array $options Options to passes to the tag creator.
@return string The generated tag content.
Helper method to create a form tag based on current object .