Habari\Update::updates_available PHP Method

updates_available() public static method

Return all available updates, or the updates available for a single GUID.
public static updates_available ( string $guid = null ) : boolean
$guid string A GUID to return available updates for.
return boolean Array of all available updates if no GUID is specified.
    public static function updates_available($guid = null)
    {
        $updates = Options::get('updates_available', array());
        if ($guid == null) {
            return $updates;
        } else {
            if (isset($updates[$guid])) {
                return $updates[$guid];
            } else {
                return false;
            }
        }
    }