Source of file ElementNavigationPortal.php

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

buildproject/core/module_navigation/portal/elements/ElementNavigationPortal.php

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
<?php
/*"******************************************************************************************************
*   (c) 2004-2006 by MulchProductions, www.mulchprod.de                                                 *
*   (c) 2007-2016 by Kajona, www.kajona.de                                                              *
*       Published under the GNU LGPL v2.1, see /system/licence_lgpl.txt                                 *
********************************************************************************************************/

namespace Kajona\Navigation\Portal\Elements;

use Kajona\Pages\Portal\ElementPortal;
use Kajona\Pages\Portal\PortalElementInterface;
use Kajona\System\System\SystemModule;

/**
 * Portal-class of the navigation element, loads the navigation-portal class
 *
 * @package module_navigation
 * @author sidler@mulchprod.de
 *
 * @targetTable element_navigation.content_id
 */
class ElementNavigationPortal extends ElementPortal implements PortalElementInterface {

    /**
     * Loads the navigation-class and passes control
     *
     * @return string
     */
    public function loadData() {
        $strReturn = "";

        $objNaviModule = SystemModule::getModuleByName("navigation");
        if($objNaviModule != null) {
            $objNavigation = $objNaviModule->getPortalInstanceOfConcreteModule($this->arrElementData);
            $strReturn = $objNavigation->action();
        }

        return $strReturn;
    }

    /**
     * no anchor here, plz
     *
     * @return string
     */
    protected function getAnchorTag() {
        return "";
    }

}