StorageLocationFactory
class StorageLocationFactory (View source)
Class StorageLocationFactory Get ahold of existing storage locations and create new ones
Properties
| protected EntityManagerInterface | $entityManager | 
Methods
                    create(ConfigurationInterface $configuration, $name)
        
                                            
                
            Create a new StorageLocation, pass this to StorageLocationFactory->persist() to store this location
                    null|StorageLocation
                
                
                    fetchByID(int $id)
        
                                            
                
            Fetch a storage location by its ID
                    null|StorageLocation
                
                
                    fetchByName(string $name)
        
                                            
                
            Fetch a storage location by its name
                    fetchList()
        
                                            
                
            Fetch a list of storage locations
                    fetchDefault()
        
                                            
                
            Fetch the default storage location
Details
        
                            
    __construct(DatabaseManagerORM $manager)
        
    
    No description
        
                            StorageLocation
    create(ConfigurationInterface $configuration, $name)
        
    
    Create a new StorageLocation, pass this to StorageLocationFactory->persist() to store this location
        
                            StorageLocation
    persist(StorageLocation $storageLocation)
        
    
    Store a created storage location to the database
        
                            null|StorageLocation
    fetchByID(int $id)
        
    
    Fetch a storage location by its ID
        
                            null|StorageLocation
    fetchByName(string $name)
        
    
    Fetch a storage location by its name
        
                            StorageLocation[]
    fetchList()
        
    
    Fetch a list of storage locations
        
                            StorageLocation
    fetchDefault()
        
    
    Fetch the default storage location