Overview

Namespaces

  • Charcoal
    • Admin
      • Widget
        • Cms
    • Cms
      • Config
      • Mixin
        • Traits
      • Route
      • Section
      • Service
        • Loader
        • Manager
      • ServiceProvider
      • Support
        • Helpers
        • Interfaces
        • Traits
    • Property

Classes

  • HierarchicalSectionTableWidget
  • SectionTableWidget

Traits

  • SectionTableTrait
  • Overview
  • Namespace
  • Class

Trait SectionTableTrait

Direct Known Users

Charcoal\Admin\Widget\Cms\HierarchicalSectionTableWidget, Charcoal\Admin\Widget\Cms\SectionTableWidget
Namespace: Charcoal\Admin\Widget\Cms
Located at Charcoal/Admin/Widget/Cms/SectionTableTrait.php
Methods summary
protected Charcoal\Admin\Widget\Cms\SectionTableTrait
# setSectionFactory( Charcoal\Factory\FactoryInterface $factory )

Set an object model factory.

Set an object model factory.

Parameters

$factory
The model factory, to create objects.

Returns

Charcoal\Admin\Widget\Cms\SectionTableTrait
public Charcoal\Factory\FactoryInterface
# sectionFactory( )

Retrieve the object model factory.

Retrieve the object model factory.

Returns

Charcoal\Factory\FactoryInterface

Throws

RuntimeException
If the model factory was not previously set.
protected array
# parsePropertyCell( Charcoal\Model\ModelInterface $object, Charcoal\Property\PropertyInterface $property, string $propertyValue )

Filter the property before its assigned to the object row.

Filter the property before its assigned to the object row.

This method is useful for classes using this trait.

Parameters

$object
The current row's object.
$property
The current property.
$propertyValue
The property $key's display value.

Returns

array
API documentation generated by ApiGen