Methods summary
public static
|
|
public
integer
|
#
add( string $name )
Creates a group with the speciafied name
Creates a group with the speciafied name
Parameters
Returns
integer - id of the new group
|
public
array
|
#
getNames( )
Returns associative array of group names with key group id sorted by name
Returns associative array of group names with key group id sorted by name
Returns
array
|
public
string|array
|
#
getName( integer|array $id )
Parameters
- $id
integer|array $id group id or list of ids
Returns
string|array group name or array(id => name) when $id is an array
|
public
array
|
#
getAll( null $key = null, boolean $normalize = false )
Parameters
- $key
null $key
- $normalize
boolean $normalize
Returns
array array(id => array(id=>..,name=>..,cnt=>..) )
Overrides
|
public
boolean
|
#
delete( integer $id )
Delete group
Parameters
Returns
boolean
|
public
|
#
updateCount( mixed $id, mixed $count )
Update members count
Parameters
- $id
mixed $id
- $count
mixed $count
|
public
array|null
|
#
getByField( string|array $field, mixed|array|boolean $value = null, boolean $all = false, integer|boolean $limit = false )
Returns data from table records containing specified values of specified
fields. Method accepts 2 modes of passing parameters: for one value and for
multiple values.
Returns data from table records containing specified values of specified
fields. Method accepts 2 modes of passing parameters: for one value and for
multiple values.
Parameters
- $field
string|array $field (one field) Field name (multiple fields) or associative array with field
names as keys
- $value
mixed|array|boolean $value (one field) Field value or array of values (multiple fields) or Boolean
flag requiring to return data from all found records. By default (false), only
first found record is returned.
- $all
boolean $all (one field) Boolean flag requiring to return data of all found records.
- $limit
integer|boolean $limit (one field) Number of records to be returned. By default (false) this
limitation is disabled.
Returns
array|null
Overrides
|