[ Index ]

PHP Cross Reference of Joomla 4.2.2 documentation

title

Body

[close]

/components/com_tags/src/Model/ -> TagModel.php (summary)

(no description)

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

Defines 1 class

TagModel:: (6 methods):
  __construct()
  getItems()
  getListQuery()
  populateState()
  getItem()
  hit()


Class: TagModel  - X-Ref

Tags Component Tag Model

__construct($config = array()   X-Ref
Constructor.

param: array                $config   An optional associative array of configuration settings.
param: MVCFactoryInterface  $factory  The factory.

getItems()   X-Ref
Method to get a list of items for a list of tags.

return: mixed  An array of objects on success, false on failure.

getListQuery()   X-Ref
Method to build an SQL query to load the list data of all items with a given tag.

return: string  An SQL query

populateState($ordering = 'c.core_title', $direction = 'ASC')   X-Ref
Method to auto-populate the model state.

Note. Calling getState in this method will result in recursion.

param: string  $ordering   An optional ordering field.
param: string  $direction  An optional direction (asc|desc).
return: void

getItem($pk = null)   X-Ref
Method to get tag data for the current tag or tags

param: integer  $pk  An optional ID
return: array

hit($pk = 0)   X-Ref
Increment the hit counter.

param: integer  $pk  Optional primary key of the article to increment.
return: boolean  True if successful; false otherwise and internal error set.



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