jPrefItem

author

Florian Lonqueu-Brochard

copyright

2012 Florian Lonqueu-Brochard

see
licence

http://www.gnu.org/licenses/lgpl.html GNU Lesser General Public Licence, see LICENCE file

package

Default

Methods

Compare 2 group.

compareGroup(\jPrefItemGroup $a, \jPrefItemGroup $b) 
static
deprecated 1.7.0

Arguments

$a

\jPrefItemGroup

the first group

$b

\jPrefItemGroup

the second group

Current user can read this pref.

isReadable() 

Current user can write this pref.

isWritable() 

Load the value of the pref via jPref.

loadValue() 

Initialise the pref with a node from an ini content.

setFromIniNode(string $node_key, array $node) 

Arguments

$node_key

string

the name of the section ("pref:something")

$node

array

list of key/value

Properties

the identifiant of the preference

id : string
var

the identifiant of the preference

Type(s)

string

the value type of the preference : 'integer', 'decimal', 'string', 'boolean'

type : string
var

the value type of the preference : 'integer', 'decimal', 'string', 'boolean'

Type(s)

string

the value

value : mixed
var

the value

Type(s)

mixed

the locale selector for its label, shown into a form to set or see the value (jpref_admin).

locale : 

Type(s)

name of the group it belongs to. It allows jpref_admin to groups preferences.

group : string
var

Type(s)

string

the jacl2 subject for the right to see the value of the preference in jpref_admin.

read_acl_subject : string

if empty: everybody can read the preference.

var

Type(s)

string

the jacl2 subject for the right to modify the value of the preference in jpref_admin.

write_acl_subject : string

if empty: everybody can modify the preference.

var

Type(s)

string

the default value of the preference

default_value : mixed
var

the default value of the preference

Type(s)

mixed

_writable

_writable : 

Type(s)

_readable

_readable : 

Type(s)

allowed_types

allowed_types : 
static

Type(s)