src/SkeForm.php
public function inputs()
    {
        $aReturn = [];
        foreach ($this->getFieldDefinitions() as $strFieldName => $aField) {
            $skeFormInput = new SkeFormInput(
                $strFieldName,
                $aField['type'] ?? 'text',
                $aField['options'] ?? [],
                $aField['attribs'] ?? []
            );
            // Set value for existing event
            if ($this->skeVent) {
                $skeFormInput->setValue($this->skeVent->getProperty($strFieldName));
                if ($this->skeVent->hasError($strFieldName))
                    $skeFormInput->setError($this->skeVent->getError($strFieldName));
            }
            $aReturn[] = $skeFormInput;
        }
        return $aReturn;
    }
public function inputs()
    {
        $aReturn = [];
        foreach ($this->getFieldDefinitions() as $strFieldName => $aField) {
            $skeFormInput = new SkeFormInput(
                $strFieldName,
                $aField['type'] ?? 'text',
                $aField['options'] ?? [],
                $aField['attribs'] ?? []
            );
            // Set value for existing event
            if ($this->skeVent) {
                $skeFormInput->setValue($this->skeVent->getProperty($strFieldName));
                if ($this->skeVent->hasError($strFieldName))
                    $skeFormInput->setError($this->skeVent->getError($strFieldName));
            }
            $aReturn[] = $skeFormInput;
        }
        return $aReturn;
    }
public function inputs ( ) { $ aReturn = [ ] ; foreach ( $ this -> getFieldDefinitions ( ) as $ strFieldName => $ aField ) { $ skeFormInput = new SkeFormInput ( $ strFieldName , $ aField [ 'type' ] ?? 'text' , $ aField [ 'options' ] ?? [ ] , $ aField [ 'attribs' ] ?? [ ] ) ; // Set value for existing event if ( $ this -> skeVent ) { $ skeFormInput -> setValue ( $ this -> skeVent -> getProperty ( $ strFieldName ) ) ; if ( $ this -> skeVent -> hasError ( $ strFieldName ) ) $ skeFormInput -> setError ( $ this -> skeVent -> getError ( $ strFieldName ) ) ; } $ aReturn [ ] = $ skeFormInput ; } return $ aReturn ; }
Get inputs for SkeVent form.

@return array
Get inputs for SkeVent form .