URLArrayObject
class URLArrayObject extends ArrayObject (View source)
This is an helper object to StaticPagesQueue to hold an array of urls with priorites to be recached.
If the StaticPagesQueue::is_realtime is false this class will call StaticPagesQueue::push_urls_to_db when in __destructs.
Methods
Adds urls to the queue after injecting the objects' metadata.
When this class is getting garbage collected, trigger the insert of all urls into the database
This method will insert all URLs that exists in this object into the database by calling the StaticPagesQueue
Sorts the array on priority, from highest to lowest
Details
        
                            string
    addObject($url, DataObject $dataObject)
        
    
    Adds metadata into the URL.
        
                            array
    addObjects($urls, DataObject $dataObject)
        
    
    Adds metadata into all URLs in the array.
        
                            DataObject
    getObject($url)
        
    
    Extracts the metadata from the queued structure.
        
                            
    addUrlsOnBehalf(array $urls, DataObject $dataObject)
        
    
    Adds urls to the queue after injecting the objects' metadata.
        
                            
    addUrls(array $urls)
        
    
    The format of the urls should be array( 'URLSegment' => '50')
        
                    protected        
    excludeFromCache($url)
        
    
    No description
        
                            
    destructMethod()
        
    
    When this class is getting garbage collected, trigger the insert of all urls into the database
        
                            type
    insertIntoDB()
        
    
    This method will insert all URLs that exists in this object into the database by calling the StaticPagesQueue
        
                    protected        int
    sortOnPriority(array $a, array $b)
        
    
    Sorts the array on priority, from highest to lowest
        
                static            
    sanitize_url($url)
        
    
    No description