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

  • DeleteBlock
  • DeleteOperation
  • EditBlock
  • Hooks
  • ManageBlock
  • Model
  • Module
  • SaveOperation
  • Term

Class Term

A term of a vocabulary.

ICanBoogie\Object implements ICanBoogie\ToArrayRecursive uses ICanBoogie\ToArrayRecursiveTrait, ICanBoogie\PrototypeTrait
Extended by ICanBoogie\ActiveRecord
Extended by Icybee\Modules\Taxonomy\Terms\Term implements IteratorAggregate, Brickrouge\CSSClassNames uses Brickrouge\CSSClassNamesProperty
Namespace: Icybee\Modules\Taxonomy\Terms
Located at vendor/icybee/icybee/modules/taxonomy.terms/lib/activerecords/term.php

Methods summary

public
# __construct( string $model = 'taxonomy.terms' )

The $model property defaults to "taxonomy.terms".

The $model property defaults to "taxonomy.terms".

Parameters

$model
string
$model

Throws

InvalidArgumentException
if $model is neither a model identifier nor a Icybee\Modules\Taxonomy\Terms\Model instance.

Overrides

ICanBoogie\ActiveRecord::__construct
public string
# __toString( )

Returns the Icybee\Modules\Taxonomy\Terms\Term::$term property.

Returns the Icybee\Modules\Taxonomy\Terms\Term::$term property.

Returns

string
public
# getIterator( )

Returns the iterator for the IteratorAggregate interface.

Returns the iterator for the IteratorAggregate interface.

Implementation of

IteratorAggregate::getIterator()
protected Icybee\Modules\Taxonomy\Vocabulary\Vocabulary
# lazy_get_vocabulary( )

Returns the vocabulary the term belongs to.

Returns the vocabulary the term belongs to.

Returns

Icybee\Modules\Taxonomy\Vocabulary\Vocabulary
protected array
# lazy_get_nodes_keys( )

Returns the nodes keys associated with the term.

Returns the nodes keys associated with the term.

Note: In order to reduce the number of database requests, the nodes keys of _all_ the terms in the same vocabulary are gathered.

Returns

array
protected array
# lazy_get_nodes( )

Returns the nodes associated with the term.

Returns the nodes associated with the term.

Returns

array
The nodes associated with the term, or an empty array if there is none.
protected array[string]mixed
# get_css_class_names( )

Returns the CSS class names of the term.

Returns the CSS class names of the term.

Returns

array[string]mixed

Methods inherited from ICanBoogie\ActiveRecord

__sleep(), alter_persistent_properties(), delete(), get_model(), get_model_id(), save()

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 inherited from Brickrouge\CSSClassNames

css_class()

Methods used from Brickrouge\CSSClassNamesProperty

__get(), css_class(), get_css_class()

Methods used from ICanBoogie\ToArrayRecursiveTrait

to_array_recursive()

Methods used from ICanBoogie\PrototypeTrait

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

Magic methods summary

Constants summary

string VTID 'vtid'
#
string VID 'vid'
#
string TERM 'term'
#
string TERMSLUG 'termslug'
#
string WEIGHT 'weight'
#

Properties summary

public integer $vtid
#

Identifier of the vocabulary term.

Identifier of the vocabulary term.

public integer $vid
#

Identifier of the vocabulary the term belongs to.

Identifier of the vocabulary the term belongs to.

public string $term
#

Name of the term.

Name of the term.

public string $termslug
#

Normalized name of the term.

Normalized name of the term.

public integer $weight
#

Weight of the term relative to other terms in the same vocabulary.

Weight of the term relative to other terms in the same vocabulary.

Properties inherited from ICanBoogie\ActiveRecord

$model_id

Magic properties

public read-only array $nodes_keys
#

Magic properties inherited from ICanBoogie\ActiveRecord

$model, $model_id

Magic properties inherited from ICanBoogie\Object

$prototype

Magic properties used from Brickrouge\CSSClassNamesProperty

$css_class

Autodoc API documentation generated by ApiGen 2.8.0