src/Charcoal/Source/DatabaseSource.php
public function loadItems(StorableInterface $item = null)
    {
        if ($item !== null) {
            $this->setModel($item);
        }

        $query = $this->sqlLoad();
        return $this->loadItemsFromQuery($query, [], $item);
    }
public function loadItems(StorableInterface $item = null)
    {
        if ($item !== null) {
            $this->setModel($item);
        }

        $query = $this->sqlLoad();
        return $this->loadItemsFromQuery($query, [], $item);
    }
public function loadItems ( StorableInterface $ item = null ) { if ( $ item !== null ) { $ this -> setModel ( $ item ) ; } $ query = $ this -> sqlLoad ( ) ; return $ this -> loadItemsFromQuery ( $ query , [ ] , $ item ) ; }
Load items for the given model.

@param  StorableInterface|null $item Optional model.
@return StorableInterface[]
Load items for the given model .