src/Engine/CrudeSetupTrait/InputType.php
public function setTypesGroup($types, $attr = null)
    {
        if (! is_array($types))
            $types = [$types => $attr];

        foreach ($types as $type => $attrList) {
            if (! is_array($attrList))
                $attrList = [$attrList];

            foreach ($attrList as $attr)
                $this->inputType[$attr] = $type;
        }

        return $this;
    }
public function setTypesGroup($types, $attr = null)
    {
        if (! is_array($types))
            $types = [$types => $attr];

        foreach ($types as $type => $attrList) {
            if (! is_array($attrList))
                $attrList = [$attrList];

            foreach ($attrList as $attr)
                $this->inputType[$attr] = $type;
        }

        return $this;
    }
public function setTypesGroup ( $ types , $ attr = null ) { if ( ! is_array ( $ types ) ) $ types = [ $ types => $ attr ] ; foreach ( $ types as $ type => $ attrList ) { if ( ! is_array ( $ attrList ) ) $ attrList = [ $ attrList ] ; foreach ( $ attrList as $ attr ) $ this -> inputType [ $ attr ] = $ type ; } return $ this ; }
Set new or change input types

@param  string|array $types
@param  array $attr

@return self
Set new or change input types