[ Index ]

PHP Cross Reference of Joomla 4.2.2 documentation

title

Body

[close]

/libraries/src/Categories/ -> CategoryServiceTrait.php (summary)

Joomla! Content Management System

Copyright: (C) 2018 Open Source Matters, Inc.
License: GNU General Public License version 2 or later; see LICENSE
File Size: 127 lines (3 kb)
Included or required:0 times
Referenced: 2 times
Includes or requires: 0 files

Defines 6 functions

  getCategory()
  setCategoryFactory()
  countItems()
  prepareForm()
  getTableNameForSection()
  getStateColumnForSection()

Functions
Functions that are not part of a class:

getCategory(array $options = [], $section = '')   X-Ref
Returns the category service.

param: array   $options  The options
param: string  $section  The section
return: CategoryInterface

setCategoryFactory(CategoryFactoryInterface $categoryFactory)   X-Ref
Sets the internal category factory.

param: CategoryFactoryInterface  $categoryFactory  The categories factory
return: void

countItems(array $items, string $section)   X-Ref
Adds Count Items for Category Manager.

param: \stdClass[]  $items    The category objects
param: string       $section  The section
return: void

prepareForm(Form $form, $data)   X-Ref
Prepares the category form

param: Form          $form  The form to change
param: array|object  $data  The form data
return: void

getTableNameForSection(string $section = null)   X-Ref
Returns the table for the count items functions for the given section.

param: string  $section  The section
return: string|null

getStateColumnForSection(string $section = null)   X-Ref
Returns the state column for the count items functions for the given section.

param: string  $section  The section
return: string|null



Generated: Wed Sep 7 05:41:13 2022 Chilli.vc Blog - For Webmaster,Blog-Writer,System Admin and Domainer