src/fieldwork/Form.php
public function getFields ($includeInactiveFields = false)
    {
        $fields = array();
        foreach ($this->getChildren(true, $includeInactiveFields) as $component)
            if ($component instanceof Field)
                array_push($fields, $component);
        return $fields;
    }
public function getFields ($includeInactiveFields = false)
    {
        $fields = array();
        foreach ($this->getChildren(true, $includeInactiveFields) as $component)
            if ($component instanceof Field)
                array_push($fields, $component);
        return $fields;
    }
public function getFields ( $ includeInactiveFields = false ) { $ fields = array ( ) ; foreach ( $ this -> getChildren ( true , $ includeInactiveFields ) as $ component ) if ( $ component instanceof Field ) array_push ( $ fields , $ component ) ; return $ fields ; }
Retrieves an array of this form's fields

@param boolean $includeInactiveFields whether to include inactive fields as well

@return Field[]
Retrieves an array of this form s fields