main/core/Manager/FacetManager.php
public function addPanel(Facet $facet, $name, $collapse = false, $autoEditable = false)
    {
        $panelFacet = new PanelFacet();
        $panelFacet->setName($name);
        $panelFacet->setFacet($facet);
        $panelFacet->setIsDefaultCollapsed($collapse);
        $panelFacet->setIsEditable($autoEditable);
        $panelFacet->setPosition($this->om->count('Claroline\CoreBundle\Entity\Facet\PanelFacet'));
        $this->om->persist($panelFacet);
        $this->om->flush();

        return $panelFacet;
    }
public function addPanel(Facet $facet, $name, $collapse = false, $autoEditable = false)
    {
        $panelFacet = new PanelFacet();
        $panelFacet->setName($name);
        $panelFacet->setFacet($facet);
        $panelFacet->setIsDefaultCollapsed($collapse);
        $panelFacet->setIsEditable($autoEditable);
        $panelFacet->setPosition($this->om->count('Claroline\CoreBundle\Entity\Facet\PanelFacet'));
        $this->om->persist($panelFacet);
        $this->om->flush();

        return $panelFacet;
    }
public function addPanel ( Facet $ facet , $ name , $ collapse = false , $ autoEditable = false ) { $ panelFacet = new PanelFacet ( ) ; $ panelFacet -> setName ( $ name ) ; $ panelFacet -> setFacet ( $ facet ) ; $ panelFacet -> setIsDefaultCollapsed ( $ collapse ) ; $ panelFacet -> setIsEditable ( $ autoEditable ) ; $ panelFacet -> setPosition ( $ this -> om -> count ( 'Claroline\CoreBundle\Entity\Facet\PanelFacet' ) ) ; $ this -> om -> persist ( $ panelFacet ) ; $ this -> om -> flush ( ) ; return $ panelFacet ; }
Adds a panel in a facet.
Used by persister and Updater04000
Can be removed.

@param Facet  $facet
@param string $name

@return PanelFacet
Adds a panel in a facet . Used by persister and Updater04000 Can be removed .