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

  • siteBlockModel
  • siteDomainModel
  • siteForgotpasswordAction
  • siteFrontend
  • siteHelper
  • siteLoginAction
  • siteOAuthController
  • sitePageModel
  • sitePageParamsModel
  • siteRobots
  • siteSignupAction
  • siteViewHelper
  • Overview
  • Package
  • Class
  • Tree
  • Deprecated
  • Todo

Class siteBlockModel

waModel
Extended by siteBlockModel
Package: wa-apps\site
Located at wa-apps/site/lib/models/siteBlock.model.php
Methods summary
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
# deleteById( integer|array $value )

Parameters

$value
integer|array
$value

Returns

boolean

Overrides

waModel::deleteById()
public boolean|null|waDbResultUpdate
# updateById( string $id, array $data, string $options = null, boolean $return_object = false )

Updates table record with specified value of model's id field value.

Updates table record with specified value of model's id field value.

Parameters

$id
string
$id The value of model's id field, which is searched for across all table records to replace values of fields specified in $data parameter in the found record.
$data
array
$data Associative array of new values for specified fields of the found record.
$options
string
$options Optional key words for SQL query UPDATE: LOW_PRIORITY or IGNORE.
$return_object
boolean
$return_object Flag requiring to return an instance of class waDbResultUpdate to enable you to call its public methods to access response received from database server. By default (false) method returns a Boolean value identifying the successful query result, or null if incorrect parameters have been passed.

Returns

boolean|null|waDbResultUpdate
Result of query execution

Overrides

waModel::updateById()
public boolean|integer
# add( array $data )

Parameters

$data
array
$data

Returns

boolean|integer
public boolean
# move( integer $id, integer $sort )

Parameters

$id
integer
$id
$sort
integer
$sort

Returns

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

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