extension/ezjscore/classes/ezjscserverfunctionsajaxuploader.php
static function uploadForm( $args )
    {
        $handler = self::getHandler( $args );
        if ( !$handler->canUpload() )
        {
            throw new RuntimeException(
                ezpI18n::tr(
                    'extension/ezjscore/ajaxuploader',
                    'You are not allowed to upload a file.'
                )
            );
        }
        $tpl = eZTemplate::factory();
        return array(
            'meta_data' => false,
            'html' => $tpl->fetch( 'design:ajaxuploader/upload.tpl' )
        );
    }
static function uploadForm( $args )
    {
        $handler = self::getHandler( $args );
        if ( !$handler->canUpload() )
        {
            throw new RuntimeException(
                ezpI18n::tr(
                    'extension/ezjscore/ajaxuploader',
                    'You are not allowed to upload a file.'
                )
            );
        }
        $tpl = eZTemplate::factory();
        return array(
            'meta_data' => false,
            'html' => $tpl->fetch( 'design:ajaxuploader/upload.tpl' )
        );
    }
static function uploadForm ( $ args ) { $ handler = self :: getHandler ( $ args ) ; if ( ! $ handler -> canUpload ( ) ) { throw new RuntimeException ( ezpI18n :: tr ( 'extension/ezjscore/ajaxuploader' , 'You are not allowed to upload a file.' ) ) ; } $ tpl = eZTemplate :: factory ( ) ; return array ( 'meta_data' => false , 'html' => $ tpl -> fetch ( 'design:ajaxuploader/upload.tpl' ) ) ; }
Returns the upload form

@param array $args ezjscore function arguments, the first element is the AJAX
upload handler identifier ({@link
ezjscServerFunctionsAjaxUploader::getHandler})
@return array( 'meta_data' => false, 'html' => string)

@throw RuntimeException if the user is not allowed to upload a file
Returns the upload form