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 waContactCategoryModel

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

Create category

Create category

Parameters

$name
string
$name New category name

Returns

integer
new id
public array|null
# getById( integer|array $value )

Returns data from table record with specified value in id field ($this->id).

Returns data from table record with specified value in id field ($this->id).

Parameters

$value
integer|array
$value Field value or array of values

Returns

array|null

Overrides

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

Delete category by ID

Delete category by ID

Parameters

$id
integer
$id

Returns

boolean
public array
# getNames( )

Returns

array
id => name
public
# updateCount( integer $id, integer $count )

Update members count

Update members count

Parameters

$id
integer
$id
$count
integer
$count
public array
# getAll( null|string $key = null, boolean $normalize = false )

Parameters

$key
null|string
$key
$normalize
boolean
$normalize

Returns

array
id => array(id=>..,name=>..,cnt=>..)

Overrides

waModel::getAll()
public array
# getBySystemId( string $system_id, string $name = null )

Category row with given system id. Category is created with given name (matches $system_id if omitted) when it does not exist.

Category row with given system id. Category is created with given name (matches $system_id if omitted) when it does not exist.

Parameters

$system_id
string
$system_id
$name
string
$name

Returns

array
Methods inherited from waModel
__construct(), addCacheCleaner(), autocommit(), castValue(), commit(), countAll(), countByField(), createSchema(), database(), deleteByField(), deleteById(), describe(), escape(), escapeField(), exec(), fieldExists(), getByField(), 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_contact_category'
#

Name of the table

Name of the table

Properties inherited from waModel
$adapter, $fields, $id, $type, $writable
My fork of Webasyst Framework API documentation generated by ApiGen 2.8.0