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

  • AdjustNode
  • ConfigOperation
  • DeleteBlock
  • DeleteOperation
  • EditBlock
  • ExportBlock
  • ExportOperation
  • Helpers
  • Hooks
  • ImportOperation
  • ManageBlock
  • Model
  • Module
  • Node
  • OfflineOperation
  • OnlineOperation
  • PopNode
  • QueryOperationOperation
  • SaveOperation
  • TitleSlugCombo
  • Update20131208
  • Update20140405
  • ViewProvider

Functions

  • slugize

Class Model

Nodes 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\ActiveRecord\Model\Constructor
Extended by Icybee\Modules\Nodes\Model

Direct known subclasses

Icybee\Modules\Contents\Model, Icybee\Modules\Files\Model, Icybee\Modules\Forms\Model, Icybee\Modules\Pages\Model

Indirect known subclasses

Icybee\Modules\Articles\Model, Icybee\Modules\Images\Model

Namespace: Icybee\Modules\Nodes
Located at vendor/icanboogie-modules/nodes/lib/activerecords/node.model.php

Methods summary

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

If the Node::$updated_at property is not defined it is set to the current datetime.

If the Node::$updated_at property is not defined it is set to the current datetime.

If the Icybee\Modules\Nodes\Node::$slug property is empty but the Icybee\Modules\Nodes\Node::$title property is defined its value is used.

The Node:$slug property is always slugized.

Overrides

Icybee\ActiveRecord\Model\Constructor::save
public boolean
# delete( mixed $key )

Makes sure the node to delete is not used as a native target by other nodes.

Makes sure the node to delete is not used as a native target by other nodes.

Parameters

$key
mixed
$key Identifier of the record.

Returns

boolean

Throws

ICanBoogie\Exception
if the node to delete is the native target of another node.

Overrides

ICanBoogie\ActiveRecord\Model::delete
protected ICanBoogie\ActiveRecord\Query
# scope_online( ICanBoogie\ActiveRecord\Query $query )

Alerts the query to match online records.

Alerts the query to match online records.

Parameters

$query
ICanBoogie\ActiveRecord\Query
$query

Returns

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

Alerts the query to match offline records.

Alerts the query to match offline records.

Parameters

$query
ICanBoogie\ActiveRecord\Query
$query

Returns

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

Alerts the query to match records visible on the current website.

Alerts the query to match records visible on the current website.

Parameters

$query
ICanBoogie\ActiveRecord\Query
$query

Returns

ICanBoogie\ActiveRecord\Query
protected ICanBoogie\ActiveRecord\Query
# scope_similar_site( ICanBoogie\ActiveRecord\Query $query, integer $siteid = null )

Alerts the query to match records of a similar site.

Alerts the query to match records of a similar site.

A record is considered of a similar website when it doesn't belong to a website (`siteid = 0') or it matches the specified website.

Parameters

$query
ICanBoogie\ActiveRecord\Query
$query
$siteid
integer
$siteid The identifier of the website to match. If the identifier is null the current website identifier is used instead.

Returns

ICanBoogie\ActiveRecord\Query
protected ICanBoogie\ActiveRecord\Query
# scope_similar_language( ICanBoogie\ActiveRecord\Query $query, string $language = null )

Alerts the query to match recors of a similar language.

Alerts the query to match recors of a similar language.

A record is considered of a similar language when it doesn't have a language defined (language = "") or it matches the specified language.

Parameters

$query
ICanBoogie\ActiveRecord\Query
$query
$language
string
$language The language to match. If the language is null the current language is used instead.

Returns

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

Finds the users the records belong to.

Finds the users the records belong to.

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

Parameters

$records
array
$records

Returns

array
public string
# obtain_uuid( )

Returns a UUID.

Returns a UUID.

Returns

string

Methods inherited from Icybee\ActiveRecord\Model\Constructor

__construct(), find(), find_using_constructor(), scope_own()

Methods inherited from ICanBoogie\ActiveRecord\Model

__call(), __get(), belongs_to(), eliminate(), 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 Icybee\ActiveRecord\Model\Constructor

T_CONSTRUCTOR

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 Icybee\ActiveRecord\Model\Constructor

$constructor

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