Overview

Packages

  • akismet
  • None
  • PHP
  • Smarty
    • Cacher
    • Compiler
    • Config
    • Debug
    • plugins
    • PluginsBlock
    • PluginsFilter
    • PluginsFunction
    • PluginsInternal
    • PluginsModifier
    • PluginsModifierCompiler
    • PluginsShared
    • Security
    • Template
    • TemplateResources
  • Swift
    • ByteStream
    • CharacterStream
    • Encoder
    • Events
    • KeyCache
    • Mailer
    • Mime
    • Plugins
    • Signatures
    • Signed
    • Transport
  • wa-apps
    • blog
      • actions
        • backend
        • blog
        • comment
        • cron
        • design
        • frontend
        • page
        • plugin
        • post
      • api
        • v1
      • cli
      • layout
      • model
      • plugin
        • aksimet
        • category
        • emailsubscription
        • favorite
        • gravatar
        • import
        • markdown
        • myposts
        • tag
        • troll
      • settings
    • checklists
      • backend
      • json
    • contacts
      • backend
    • developer
    • dummy
    • guestbook
    • guestbook2
    • photos
      • album
      • api
        • v1
      • backend
      • design
      • dialog
      • frontend
      • page
      • photo
      • plugin
        • comment
        • imageeffects
        • import
        • publicgallery
        • watermark
      • search
      • settings
      • stack
      • tag
      • upload
    • site
      • backend
      • blocks
      • config
      • design
      • domains
      • files
      • frontend
      • helper
      • layout
      • pages
      • routing
      • setting
    • stickies
      • api
        • v1
      • sheet
      • stiky
  • wa-plugin
    • payment
    • shipping
    • sms
  • wa-plugins
    • shipping
      • usps
  • wa-system
    • API
    • Auth
      • Adapters
    • Autoload
    • Cache
      • Adapter
    • Captcha
    • Config
    • Contact
    • controller
    • currency
    • database
    • datetime
    • design
    • event
    • exception
    • files
    • image
    • layout
    • locale
    • log
    • mail
    • page
      • action
      • model
    • payment
    • plugin
    • request
    • response
    • routing
    • shipping
    • sms
    • storage
    • user
    • util
    • validator
    • view
    • webasyst
      • api
      • backend
      • cli
      • config
      • layout
      • login
      • model
      • password
      • payment
      • profile
      • settings
      • shipment
    • widget
    • workflow
  • waPlugins
    • Payment
  • webasyst
    • wa-system
      • helper

Classes

  • waAnnouncementModel
  • waApiAuthCodesModel
  • waApiTokensModel
  • waAppSettingsModel
  • waContactCategoriesModel
  • waContactCategoryModel
  • waContactDataModel
  • waContactDataTextModel
  • waContactEmailsModel
  • waContactFieldValuesModel
  • waContactModel
  • waContactRightsModel
  • waContactSettingsModel
  • waCountryModel
  • waGroupModel
  • waLoginLogModel
  • waLogModel
  • waRegionModel
  • waTransactionDataModel
  • waTransactionModel
  • waUserGroupsModel
  • waUserModel
  • waWidgetModel
  • Overview
  • Package
  • Class
  • Tree
  • Deprecated
  • Todo

Class waGroupModel

waModel
Extended by waGroupModel
Package: wa-system\webasyst\model
Located at wa-system/webasyst/lib/models/waGroup.model.php
Methods summary
public static
# getIcons( )
public integer
# add( string $name )

Creates a group with the speciafied name

Creates a group with the speciafied name

Parameters

$name
string
$name

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

waModel::getAll()
public boolean
# delete( integer $id )

Delete group

Delete group

Parameters

$id
integer
$id

Returns

boolean
public
# updateCount( mixed $id, mixed $count )

Update members 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

waModel::getByField()
Methods inherited from waModel
__construct(), addCacheCleaner(), autocommit(), castValue(), commit(), countAll(), countByField(), createSchema(), database(), deleteByField(), deleteById(), describe(), escape(), escapeField(), exec(), fieldExists(), getById(), getEmptyRow(), getFieldValue(), getMetadata(), getQueryConstructor(), getTableId(), getTableName(), getWhereByField(), insert(), isAutoIncrement(), multiInsert(), multipleInsert(), order(), ping(), prepare(), query(), replace(), rollback(), select(), setCache(), updateByField(), updateById(), where()
Properties summary
protected string $table 'wa_group'
#

Name of the table

Name of the table

protected static mixed $icons null
#
Properties inherited from waModel
$adapter, $fields, $id, $type, $writable
My fork of Webasyst Framework API documentation generated by ApiGen 2.8.0