Autodoc
  • Namespace
  • Class
  • Tree

Namespaces

  • BlueTihi
    • Context
  • Brickrouge
    • Element
      • Nodes
    • Renderer
    • Widget
  • ICanBoogie
    • ActiveRecord
    • AutoConfig
    • CLDR
    • Composer
    • Core
    • Event
    • Exception
    • HTTP
      • Dispatcher
      • Request
    • I18n
      • Translator
    • Mailer
    • Modules
      • Taxonomy
        • Support
      • Thumbnailer
        • Versions
    • Object
    • Operation
      • Dispatcher
    • Prototype
    • Routes
    • Routing
      • Dispatcher
    • Session
  • Icybee
    • ActiveRecord
      • Model
    • ConfigOperation
    • Document
    • EditBlock
    • Element
      • ActionbarContextual
      • ActionbarSearch
      • ActionbarToolbar
    • FormBlock
    • Installer
    • ManageBlock
    • Modules
      • Articles
      • Cache
        • Collection
        • ManageBlock
      • Comments
        • ManageBlock
      • Contents
        • ManageBlock
      • Dashboard
      • Editor
        • Collection
      • Files
        • File
        • ManageBlock
      • Forms
        • Form
        • ManageBlock
      • I18n
      • Images
        • ManageBlock
      • Members
      • Modules
        • ManageBlock
      • Nodes
        • ManageBlock
        • Module
      • Pages
        • BreadcrumbElement
        • LanguagesElement
        • ManageBlock
        • NavigationBranchElement
        • NavigationElement
        • Page
        • PageController
      • Registry
      • Search
      • Seo
      • Sites
        • ManageBlock
      • Taxonomy
        • Terms
          • ManageBlock
        • Vocabulary
          • ManageBlock
      • Users
        • ManageBlock
        • NonceLogin
        • Roles
      • Views
        • ActiveRecordProvider
        • Collection
        • View
    • Operation
      • ActiveRecord
      • Constructor
      • Module
      • Widget
    • Rendering
  • None
  • Patron
  • PHP

Classes

  • Comment
  • ConfigBlock
  • ConfigOperation
  • DeleteBlock
  • DeleteOperation
  • EditBlock
  • Hooks
  • ManageBlock
  • Model
  • Module
  • PatchOperation
  • PreviewOperation
  • SaveOperation
  • SubmitForm
  • Update20131208
  • ViewProvider

Class Model

Comments model.

ICanBoogie\Object implements ICanBoogie\ToArrayRecursive uses ICanBoogie\ToArrayRecursiveTrait, ICanBoogie\PrototypeTrait
Extended by ICanBoogie\ActiveRecord\Table
Extended by ICanBoogie\ActiveRecord\Model implements ArrayAccess
Extended by Icybee\Modules\Comments\Model
Namespace: Icybee\Modules\Comments
Located at vendor/icanboogie-modules/comments/lib/activerecord/comment.model.php

Methods summary

public
# save( array $properties, mixed $key = null, array $options = array() )

Adds the status and notify properties if they are not defined, they default to pending and no.

Adds the status and notify properties if they are not defined, they default to pending and no.

Throws

InvalidArgumentException
if the value of the notify property is not one of no, yes, author or done.

Overrides

ICanBoogie\ActiveRecord\Model::save
protected ICanBoogie\ActiveRecord\Query
# scope_approved( ICanBoogie\ActiveRecord\Query $query )

Adds a condition on the status field, which should equal Icybee\Modules\Comments\Comment::STATUS_APPROVED.

Adds a condition on the status field, which should equal Icybee\Modules\Comments\Comment::STATUS_APPROVED.

Parameters

$query
ICanBoogie\ActiveRecord\Query
$query

Returns

ICanBoogie\ActiveRecord\Query
protected ICanBoogie\ActiveRecord\Query
# scope_pending( ICanBoogie\ActiveRecord\Query $query )

Adds a condition on the status field, which should equal Icybee\Modules\Comments\Comment::STATUS_PENDING.

Adds a condition on the status field, which should equal Icybee\Modules\Comments\Comment::STATUS_PENDING.

Parameters

$query
ICanBoogie\ActiveRecord\Query
$query

Returns

ICanBoogie\ActiveRecord\Query
protected ICanBoogie\ActiveRecord\Query
# scope_spam( ICanBoogie\ActiveRecord\Query $query, mixed $approved = true )

Adds a condition on the status field, which should equal Icybee\Modules\Comments\Comment::STATUS_SPAM.

Adds a condition on the status field, which should equal Icybee\Modules\Comments\Comment::STATUS_SPAM.

Parameters

$query
ICanBoogie\ActiveRecord\Query
$query
$approved

Returns

ICanBoogie\ActiveRecord\Query
public array
# including_node( array $records )

Finds the nodes the records belong to.

Finds the nodes the records belong to.

The node property of the records is set to the node they belong to.

Parameters

$records
array
$records

Returns

array

Methods inherited from ICanBoogie\ActiveRecord\Model

__call(), __construct(), __get(), belongs_to(), delete(), eliminate(), find(), get_activerecord_class(), get_all(), get_count(), get_exists(), get_id(), get_one(), has_scope(), new_record(), offsetExists(), offsetGet(), offsetSet(), offsetUnset(), retrieve(), scope(), store()

Methods inherited from ICanBoogie\ActiveRecord\Table

__invoke(), drop(), execute(), filter_values(), get_alias(), get_connection(), get_name(), get_name_unprefixed(), get_parent(), get_primary(), get_schema(), insert(), install(), is_installed(), lazy_get_extended_schema(), prepare(), query(), quote(), resolve_statement(), save_callback(), truncate(), uninstall(), update()

Methods inherited from ICanBoogie\Object

from(), resolve_facade_properties(), resolve_private_properties(), to_array(), to_json()

Methods inherited from ICanBoogie\ToArrayRecursive

to_array_recursive()

Methods used from ICanBoogie\ToArrayRecursiveTrait

to_array_recursive()

Methods used from ICanBoogie\PrototypeTrait

__set(), __sleep(), __wakeup(), get_prototype(), has_method(), has_property(), last_chance_get(), last_chance_set()

Magic methods summary

Magic methods inherited from ICanBoogie\ActiveRecord\Model

all(), average(), count(), exists(), group(), joins(), limit(), maximum(), minimum(), offset(), one(), order(), select(), sum(), where()

Constants summary

Constants inherited from ICanBoogie\ActiveRecord\Model

ACTIVERECORD_CLASS, BELONGS_TO, CLASSNAME, ID, T_ACTIVERECORD_CLASS, T_CLASS, T_ID

Constants inherited from ICanBoogie\ActiveRecord\Table

ALIAS, CONNECTION, EXTENDING, IMPLEMENTING, NAME, SCHEMA, T_ALIAS, T_CONNECTION, T_EXTENDS, T_IMPLEMENTS, T_NAME, T_SCHEMA

Properties summary

Properties inherited from ICanBoogie\ActiveRecord\Model

$activerecord_class, $attributes

Properties inherited from ICanBoogie\ActiveRecord\Table

$alias, $connection, $implements, $name, $name_unprefixed, $parent, $primary, $schema, $select_join, $update_join

Magic properties inherited from ICanBoogie\ActiveRecord\Model

$activerecord_cache, $activerecord_class, $all, $count, $exists, $id

Magic properties inherited from ICanBoogie\ActiveRecord\Table

$alias, $connection, $extended_schema, $name_unprefixed, $parent, $primary, $schema

Magic properties inherited from ICanBoogie\Object

$prototype

Autodoc API documentation generated by ApiGen 2.8.0