src/Form/Form/Element.php
public function addFile($name, $label = '', $is_mandatory = true)
    {
        $e = new \FrenchFrogs\Form\Element\File($name, $label);
        $this->addElement($e);

        if ($is_mandatory) {
            $e->addRule('required');
        } else {
            $e->addFilter('nullable');
        }

        return $e;
    }
public function addFile($name, $label = '', $is_mandatory = true)
    {
        $e = new \FrenchFrogs\Form\Element\File($name, $label);
        $this->addElement($e);

        if ($is_mandatory) {
            $e->addRule('required');
        } else {
            $e->addFilter('nullable');
        }

        return $e;
    }
public function addFile ( $ name , $ label = '' , $ is_mandatory = true ) { $ e = new \ FrenchFrogs \ Form \ Element \ File ( $ name , $ label ) ; $ this -> addElement ( $ e ) ; if ( $ is_mandatory ) { $ e -> addRule ( 'required' ) ; } else { $ e -> addFilter ( 'nullable' ) ; } return $ e ; }
Add file element

@param $name
@param string $label
@param array $attr
@return \FrenchFrogs\Form\Element\File
Add file element