Overview

Namespaces

  • Charcoal
    • Object
    • User
      • Acl

Classes

  • Content
  • ObjectRevision
  • ObjectRoute
  • ObjectSchedule
  • UserData

Interfaces

  • ArchivableInterface
  • CategorizableInterface
  • CategorizableMultipleInterface
  • CategoryInterface
  • ContentInterface
  • HierarchicalInterface
  • ObjectRevisionInterface
  • ObjectRouteInterface
  • ObjectScheduleInterface
  • PublishableInterface
  • RevisionableInterface
  • RoutableInterface
  • UserDataInterface

Traits

  • ArchivableTrait
  • CategorizableMultipleTrait
  • CategorizableTrait
  • CategoryTrait
  • HierarchicalTrait
  • PublishableTrait
  • RevisionableTrait
  • RoutableTrait
  • Overview
  • Namespace
  • Class

Interface CategorizableMultipleInterface

Defines objects that can be associated to one or more categories.

Namespace: Charcoal\Object
See: \Charcoal\Object\CategorizableInterface For objects that can only belong to a single category.
Located at Charcoal/Object/CategorizableMultipleInterface.php
Methods summary
public Charcoal\Object\CategorizableMultipleInterface
# setCategoryType( string $type )

Set the type of category the object can belong to.

Set the type of category the object can belong to.

Parameters

$type
The category type.

Returns

Charcoal\Object\CategorizableMultipleInterface
Chainable
public string
# categoryType( )

Retrieve the type of category the object can belong to.

Retrieve the type of category the object can belong to.

Returns

string
public Charcoal\Object\CategorizableMultipleInterface
# setCategories( array|Traversable $categories )

Set the categories the object belongs to.

Set the categories the object belongs to.

Parameters

$categories
The object's categories.

Returns

Charcoal\Object\CategorizableMultipleInterface
Chainable
public array|Traversable
# categories( )

Retrieve the categories the object belongs to.

Retrieve the categories the object belongs to.

Returns

array|Traversable
API documentation generated by ApiGen