PHP Class Newscoop\NewscoopBundle\Services\SystemPreferencesService

Afficher le fichier Open project: sourcefabric/newscoop Class Usage Examples

Protected Properties

Свойство Type Description
$em Doctrine\ORM\EntityManager
$preferences

Méthodes publiques

Méthode Description
__construct ( EntityManager $em )
__get ( $property ) : string | null Magic function to get property value
__set ( $property, $value ) : void Magic function to set given value for given property
delete ( string $varname ) : void Delete system preference by varname
findOneBy ( string $property ) : array Find one preference by matching criteria from object Works like caching
get ( $property, $default = null ) : string Get value for given property
getAllPreferences ( ) : array Get all available preferences
set ( $property, $value ) : void Set given value for given property

Method Details

__construct() public méthode

public __construct ( EntityManager $em )
$em Doctrine\ORM\EntityManager

__get() public méthode

Magic function to get property value
public __get ( $property ) : string | null
$property Given property
Résultat string | null

__set() public méthode

Magic function to set given value for given property
public __set ( $property, $value ) : void
$property Given property
$value Value for given property
Résultat void

delete() public méthode

Delete system preference by varname
public delete ( string $varname ) : void
$varname string System preference varname
Résultat void

findOneBy() public méthode

Find one preference by matching criteria from object Works like caching
public findOneBy ( string $property ) : array
$property string Property name
Résultat array

get() public méthode

Get value for given property
public get ( $property, $default = null ) : string
$property Given property
Résultat string

getAllPreferences() public méthode

Get all available preferences
public getAllPreferences ( ) : array
Résultat array

set() public méthode

Set given value for given property
public set ( $property, $value ) : void
$property Given property
$value Value for given property
Résultat void

Property Details

$em protected_oe property

protected EntityManager,Doctrine\ORM $em
Résultat Doctrine\ORM\EntityManager

$preferences protected_oe property

protected $preferences