PHP 클래스 Newscoop\NewscoopBundle\Services\SystemPreferencesService

파일 보기 프로젝트 열기: sourcefabric/newscoop 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$em Doctrine\ORM\EntityManager
$preferences

공개 메소드들

메소드 설명
__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

메소드 상세

__construct() 공개 메소드

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

__get() 공개 메소드

Magic function to get property value
public __get ( $property ) : string | null
$property Given property
리턴 string | null

__set() 공개 메소드

Magic function to set given value for given property
public __set ( $property, $value ) : void
$property Given property
$value Value for given property
리턴 void

delete() 공개 메소드

Delete system preference by varname
public delete ( string $varname ) : void
$varname string System preference varname
리턴 void

findOneBy() 공개 메소드

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

get() 공개 메소드

Get value for given property
public get ( $property, $default = null ) : string
$property Given property
리턴 string

getAllPreferences() 공개 메소드

Get all available preferences
public getAllPreferences ( ) : array
리턴 array

set() 공개 메소드

Set given value for given property
public set ( $property, $value ) : void
$property Given property
$value Value for given property
리턴 void

프로퍼티 상세

$em 보호되어 있는 프로퍼티

protected EntityManager,Doctrine\ORM $em
리턴 Doctrine\ORM\EntityManager

$preferences 보호되어 있는 프로퍼티

protected $preferences