Drupal 8  8.0.2
LocaleProjectStorage Class Reference
Inheritance diagram for LocaleProjectStorage:

Public Member Functions

 __construct (KeyValueFactoryInterface $key_value_factory)
 
 get ($key, $default=NULL)
 
 getMultiple (array $keys)
 
 set ($key, $value)
 
 setMultiple (array $data)
 
 delete ($key)
 
 deleteMultiple (array $keys)
 
 resetCache ()
 
 deleteAll ()
 
 disableAll ()
 
 countProjects ()
 
 getAll ()
 

Protected Attributes

 $keyValueStore
 
 $cache = array()
 

Static Protected Attributes

static $all = FALSE
 

Detailed Description

Provides the locale project storage system using a key value store.

Constructor & Destructor Documentation

__construct ( KeyValueFactoryInterface  $key_value_factory)

Constructs a State object.

Parameters
\Drupal\Core\KeyValueStore\KeyValueFactoryInterface$key_value_factoryThe key value store to use.

References KeyValueFactoryInterface\get().

Here is the call graph for this function:

Member Function Documentation

countProjects ( )

{Returns the count of project records.

Returns
int The number of saved items.
}

Implements LocaleProjectStorageInterface.

References LocaleProjectStorage\getAll().

Here is the call graph for this function:

delete (   $key)

{Deletes project records for a given key.

Parameters
string$keyThe key of the data to delete.
}

Implements LocaleProjectStorageInterface.

References LocaleProjectStorage\deleteMultiple().

Here is the call graph for this function:

deleteAll ( )

{Deletes all projects records.

Returns
array An associative array of items successfully returned, indexed by key.
}

Implements LocaleProjectStorageInterface.

References LocaleProjectStorage\resetCache().

Here is the call graph for this function:

deleteMultiple ( array  $keys)

{Deletes multiple project records.

Parameters
array$keysA list of item names to delete.
}

Implements LocaleProjectStorageInterface.

References Drupal\cache().

Referenced by LocaleProjectStorage\delete().

Here is the call graph for this function:

Here is the caller graph for this function:

disableAll ( )

{Mark all projects as disabled.}

Implements LocaleProjectStorageInterface.

get (   $key,
  $default = NULL 
)

{Returns the stored value for a given key.

Parameters
string$keyThe key of the data to retrieve.
mixed$defaultThe default value to use if the key is not found.
Returns
mixed The stored value, or the default value if no value exists.
}

Implements LocaleProjectStorageInterface.

References LocaleProjectStorage\getMultiple().

Here is the call graph for this function:

getAll ( )

{Returns all the project records.

Returns
array An associative array of items successfully returned, indexed by key.
}

Implements LocaleProjectStorageInterface.

References Drupal\cache().

Referenced by LocaleProjectStorage\countProjects().

Here is the call graph for this function:

Here is the caller graph for this function:

getMultiple ( array  $keys)

{Returns a list of project records.

Parameters
array$keysA list of keys to retrieve.
Returns
array An associative array of items successfully returned, indexed by key.
}

Implements LocaleProjectStorageInterface.

References Drupal\cache().

Referenced by LocaleProjectStorage\get().

Here is the call graph for this function:

Here is the caller graph for this function:

resetCache ( )

{Resets the project storage cache.}

Implements LocaleProjectStorageInterface.

References Drupal\cache().

Referenced by LocaleProjectStorage\deleteAll().

Here is the call graph for this function:

Here is the caller graph for this function:

set (   $key,
  $value 
)

{Creates or updates the project record.

Parameters
string$keyThe key of the data to store.
mixed$valueThe data to store.
}

Implements LocaleProjectStorageInterface.

References LocaleProjectStorage\setMultiple().

Here is the call graph for this function:

setMultiple ( array  $data)

{Creates or updates multiple project records.

Parameters
array$dataAn associative array of key/value pairs.
}

Implements LocaleProjectStorageInterface.

References Drupal\cache().

Referenced by LocaleProjectStorage\set().

Here is the call graph for this function:

Here is the caller graph for this function:


The documentation for this class was generated from the following file: