src/Charcoal/Cms/AbstractSection.php
public function loadChildren()
    {
        $loader = new CollectionLoader([
            'logger'  => $this->logger,
            'factory' => $this->modelFactory()
        ]);
        $loader->setModel($this);

        $loader->addFilter([
            'property' => 'master',
            'value'      => $this->id()
        ]);
        $loader->addFilter([
            'property' => 'active',
            'value'      => true
        ]);

        $loader->addOrder([
            'property' => 'position',
            'mode'     => 'asc'
        ]);

        return $loader->load();
    }
public function loadChildren()
    {
        $loader = new CollectionLoader([
            'logger'  => $this->logger,
            'factory' => $this->modelFactory()
        ]);
        $loader->setModel($this);

        $loader->addFilter([
            'property' => 'master',
            'value'      => $this->id()
        ]);
        $loader->addFilter([
            'property' => 'active',
            'value'      => true
        ]);

        $loader->addOrder([
            'property' => 'position',
            'mode'     => 'asc'
        ]);

        return $loader->load();
    }
public function loadChildren ( ) { $ loader = new CollectionLoader ( [ 'logger' => $ this -> logger , 'factory' => $ this -> modelFactory ( ) ] ) ; $ loader -> setModel ( $ this ) ; $ loader -> addFilter ( [ 'property' => 'master' , 'value' => $ this -> id ( ) ] ) ; $ loader -> addFilter ( [ 'property' => 'active' , 'value' => true ] ) ; $ loader -> addOrder ( [ 'property' => 'position' , 'mode' => 'asc' ] ) ; return $ loader -> load ( ) ; }
HierarchicalTrait > loadChildren

@return \ArrayAccess|\Traversable
HierarchicalTrait > loadChildren