concrete/src/File/Type/TypeList.php
public function define($extension, $name, $type, $customImporter = '', $inlineFileViewer = '', $editor = '', $pkgHandle = '')
    {
        $ext = explode(',', $extension);
        foreach ($ext as $e) {
            $this->types[strtolower($e)] = (new FileType())
                ->setName($name)
                ->setExtension($e)
                ->setCustomImporter($customImporter)
                ->setEditor($editor)
                ->setGenericType($type)
                ->setView($inlineFileViewer)
                ->setPackageHandle($pkgHandle);
        }
    }
public function define($extension, $name, $type, $customImporter = '', $inlineFileViewer = '', $editor = '', $pkgHandle = '')
    {
        $ext = explode(',', $extension);
        foreach ($ext as $e) {
            $this->types[strtolower($e)] = (new FileType())
                ->setName($name)
                ->setExtension($e)
                ->setCustomImporter($customImporter)
                ->setEditor($editor)
                ->setGenericType($type)
                ->setView($inlineFileViewer)
                ->setPackageHandle($pkgHandle);
        }
    }
public function define ( $ extension , $ name , $ type , $ customImporter = '' , $ inlineFileViewer = '' , $ editor = '' , $ pkgHandle = '' ) { $ ext = explode ( ',' , $ extension ) ; foreach ( $ ext as $ e ) { $ this -> types [ strtolower ( $ e ) ] = ( new FileType ( ) ) -> setName ( $ name ) -> setExtension ( $ e ) -> setCustomImporter ( $ customImporter ) -> setEditor ( $ editor ) -> setGenericType ( $ type ) -> setView ( $ inlineFileViewer ) -> setPackageHandle ( $ pkgHandle ) ; } }
Register a file type.

@param string $extension Comma-separated list of file extensions (lower case and without leading dots)
@param string $name File type name
@param int $type Generic file type (one of the \Concrete\Core\File\Type\Type\Type::T_... constants)
@param string $customImporter The handle of the custom importer
@param string $inlineFileViewer The handle of the inline viewer
@param string $editor The hHandle of the editor
@param string $pkgHandle The handle of the owner package
Register a file type .