[ Index ]

PHP Cross Reference of Joomla 4.2.2 documentation

title

Body

[close]

/administrator/components/com_workflow/src/Model/ -> TransitionsModel.php (summary)

(no description)

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

Defines 1 class

TransitionsModel:: (7 methods):
  __construct()
  populateState()
  getTable()
  getReorderConditions()
  getListQuery()
  getFilterForm()
  getWorkflow()


Class: TransitionsModel  - X-Ref

Model class for transitions

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

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

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

This method should only be called once per instantiation and is designed
to be called on the first call to the getState() method unless the model
configuration flag to ignore the request is set.

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

getTable($type = 'Transition', $prefix = 'Administrator', $config = array()   X-Ref
Method to get a table object, load it if necessary.

param: string  $type    The table name. Optional.
param: string  $prefix  The class prefix. Optional.
param: array   $config  Configuration array for model. Optional.
return: \Joomla\CMS\Table\Table  A Table object

getReorderConditions($table)   X-Ref
A protected method to get a set of ordering conditions.

param: object  $table  A record object.
return: array  An array of conditions to add to ordering queries.

getListQuery()   X-Ref
Method to get the data that should be injected in the form.

return: string  The query to database.

getFilterForm($data = array()   X-Ref
Get the filter form

param: array    $data      data
param: boolean  $loadData  load current data
return: \Joomla\CMS\Form\Form|boolean The Form object or false on error

getWorkflow()   X-Ref
Returns a workflow object

return: object  The workflow



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