ArticleGalleyGridHandler::addGalley PHP Method

addGalley() public method

Add a galley
public addGalley ( $args, $request ) : JSONMessage
$args array
$request PKPRequest
return JSONMessage JSON object
    function addGalley($args, $request)
    {
        import('controllers.grid.articleGalleys.form.ArticleGalleyForm');
        $galleyForm = new ArticleGalleyForm($request, $this->getSubmission());
        $galleyForm->initData();
        return new JSONMessage(true, $galleyForm->fetch($request, $this->getRequestArgs()));
    }