Source of file MediamanagerFileFormgenerator.php

Size: 1,204 Bytes - Last Modified: 2016-05-18T03:08:26+02:00

buildproject/core/module_mediamanager/admin/MediamanagerFileFormgenerator.php

123456789101112131415161718192021222324252627282930313233343536
<?php
/*"******************************************************************************************************
*   (c) 2007-2016 by Kajona, www.kajona.de                                                              *
*       Published under the GNU LGPL v2.1, see /system/licence_lgpl.txt                                 *
*-------------------------------------------------------------------------------------------------------*
*    $Id$                        *
********************************************************************************************************/

namespace Kajona\Mediamanager\Admin;

use Kajona\System\Admin\AdminFormgenerator;
use Kajona\System\Admin\Formentries\FormentryHeadline;
use Kajona\System\System\Carrier;


/**
 * The formgenerator for a mediamanager repo
 *
 * @package module_mediamanager
 * @author sidler@mulchprod.de
 * @since 4.8
 *
 */
class MediamanagerFileFormgenerator extends AdminFormgenerator {
    /**
     * @inheritDoc
     */
    public function generateFieldsFromObject() {
        parent::generateFieldsFromObject();

        $this->addField(new FormentryHeadline("", "source"))->setStrValue(Carrier::getInstance()->getParam("source"));
    }

}