src/Helpers/WebIde/CreateFileHelper.php
public function GetFileType($dataPost) {
        $templateTypeKey = "templateType";
        if (!array_key_exists($templateTypeKey, $dataPost)) {
            throw new \Exception("The POST data doesn't contain the value $templateTypeKey. See dump" . var_dump($dataPost), 0, null);
        }

        $this->templateType = $dataPost[$templateTypeKey];
        return $this;
    }
public function GetFileType($dataPost) {
        $templateTypeKey = "templateType";
        if (!array_key_exists($templateTypeKey, $dataPost)) {
            throw new \Exception("The POST data doesn't contain the value $templateTypeKey. See dump" . var_dump($dataPost), 0, null);
        }

        $this->templateType = $dataPost[$templateTypeKey];
        return $this;
    }
public function GetFileType ( $ dataPost ) { $ templateTypeKey = "templateType" ; if ( ! array_key_exists ( $ templateTypeKey , $ dataPost ) ) { throw new \ Exception ( "The POST data doesn't contain the value $templateTypeKey. See dump" . var_dump ( $ dataPost ) , 0 , null ) ; } $ this -> templateType = $ dataPost [ $ templateTypeKey ] ; return $ this ; }
Get the file type in the POST request.

@param array $dataPost The POST data sent by the client.
@throws \Exception An exception is thrown when the POST data doesn't contain the key "templateType"
Get the file type in the POST request .