====== UploadedFileDto ====== **Layer:** ''DTO'' · **Source:** ''lib/dto/UploadedFileDto.php:18'' (lines 18–94) ---- class UploadedFileDto Value object for a single uploaded file. Encapsulates $_FILES array entry with validation helpers. ======= Docblock Metadata ======= ^ Tag ^ Value ^ | ''@category'' | DTO | | ''@author'' | M.Noermoehammad | | ''@license'' | MIT | | ''@version'' | 1.0 | | ''@since'' | Since Release 1.0 | ======= Inheritance ======= //No parent, interface or trait. This is a root type.// ======= Constants (0) ======= //None.// ======= Properties (5) ======= ^ Visibility ^ Type ^ Name ^ Default ^ Line ^ | ''public'' | ''(untyped)'' | ''$tmpName'' | | 21 | | ''public'' | ''(untyped)'' | ''$type'' | | 24 | | ''public'' | ''(untyped)'' | ''$name'' | | 27 | | ''public'' | ''(untyped)'' | ''$size'' | | 30 | | ''public'' | ''(untyped)'' | ''$error'' | | 33 | ======= Methods (6) ======= ^ Visibility ^ Method ^ Summary ^ Line ^ | public | ''__construct()'' | (undocumented) | 35 | | public static | ''fromGlobals()'' | Factory method from $_FILES global. | 49 | | public | ''isValid()'' | Check whether the file was uploaded successfully. | 60 | | public | ''hasUploadError()'' | Check whether an upload error occurred. | 70 | | public | ''getExtension()'' | Return the file extension. | 80 | | public | ''getGeneratedFilename()'' | Generate safe filename array using existing utility. | 90 | ======== __construct() ======== public function __construct(array $file) //lines 35–42 (8)// ^ Parameter ^ Type ^ Default ^ Description ^ | ''$file'' | ''array'' | //required// | //none// | ======== fromGlobals() ======== public static function fromGlobals() //lines 49–53 (5)// Factory method from $_FILES global. //Takes no parameters.// **Returns:** ''(none declared)'' — self ======== isValid() ======== public function isValid() //lines 60–63 (4)// Check whether the file was uploaded successfully. //Takes no parameters.// **Returns:** ''(none declared)'' — bool ======== hasUploadError() ======== public function hasUploadError() //lines 70–73 (4)// Check whether an upload error occurred. //Takes no parameters.// **Returns:** ''(none declared)'' — bool ======== getExtension() ======== public function getExtension() //lines 80–83 (4)// Return the file extension. //Takes no parameters.// **Returns:** ''(none declared)'' — string ======== getGeneratedFilename() ======== public function getGeneratedFilename() //lines 90–93 (4)// Generate safe filename array using existing utility. //Takes no parameters.// **Returns:** ''(none declared)'' — array ---- //This page is generated from source by 'tools/gendoc'. Edits will be overwritten.//