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

  • blogBlogModel
  • blogCommentModel
  • blogItemModel
  • blogPageModel
  • blogPageParamsModel
  • blogPostModel
  • blogPostParamsModel
  • Overview
  • Package
  • Class
  • Tree
  • Deprecated
  • Todo

Class blogCommentModel

waModel
Extended by waNestedSetModel
Extended by blogCommentModel
Package: wa-apps\blog\model
Located at wa-apps/blog/lib/models/blogComment.model.php
Methods summary
public mixed
# get( mixed $id, array $fields = array(), array $options = array() )

Get post comments by post ID

Get post comments by post ID

Parameters

$id
mixed
$id
$fields
array
$fields
$options
array
$options

Returns

mixed
public
# getSubtree( mixed $post_id, mixed $parent_id = null )
public
# cutOffDeleted( mixed & $items )
public
# getList( mixed $search_options = array(), mixed $fields = array(), mixed $options = array() )
public
# prepareView( mixed $items, mixed $fields = array(), mixed $extend_options = array() )
public
# getCount( mixed $blog_id, mixed $post_id = null, mixed $datetime = null, mixed $expire = null, mixed $post_contact_id = null, mixed $status = blogCommentModel::STATUS_PUBLISHED )
public
# getDatetime( mixed $post_id = array() )
public boolean
# add( array $comment, integer $parent = null, integer|null $before_id = null )

Insert new item on some level (parent_id) before some item (before_id)

Insert new item on some level (parent_id) before some item (before_id)

Parameters

$comment
array
$data
$parent
integer
$parent_id If null than rool level
$before_id
integer|null
$before_id If null than place at the end of level

Returns

boolean

Overrides

waNestedSetModel::add()
public boolean
# deleteByField( mixed $field, mixed $value = null )

Delete records from table and fire evenets

Delete records from table and fire evenets

Parameters

$field
mixed
$field
$value
mixed
$value

Returns

boolean

Overrides

waModel::deleteByField()
public
# validate( mixed $comment )
public static
# extendRights( mixed $comments, mixed $posts = array() )
Methods inherited from waNestedSetModel
_add(), delete(), descendants(), getParent(), getPath(), getRoot(), getTableDepth(), getTableLeft(), getTableParent(), getTableRight(), getTree(), move(), moveUp(), repair(), repairSubtree()
Methods inherited from waModel
__construct(), addCacheCleaner(), autocommit(), castValue(), commit(), countAll(), countByField(), createSchema(), database(), deleteById(), describe(), escape(), escapeField(), exec(), fieldExists(), getAll(), getByField(), getById(), getEmptyRow(), getFieldValue(), getMetadata(), getQueryConstructor(), getTableId(), getTableName(), getWhereByField(), insert(), isAutoIncrement(), multiInsert(), multipleInsert(), order(), ping(), prepare(), query(), replace(), rollback(), select(), setCache(), updateByField(), updateById(), where()
Constants summary
string STATUS_DELETED 'deleted'
#
string STATUS_PUBLISHED 'approved'
#
string AUTH_USER 'user'
#
string AUTH_GUEST 'guest'
#
Properties summary
protected string $table 'blog_comment'
#

Name of the table

Name of the table

Properties inherited from waNestedSetModel
$depth, $left, $parent, $right, $root
Properties inherited from waModel
$adapter, $fields, $id, $type, $writable
My fork of Webasyst Framework API documentation generated by ApiGen 2.8.0