[ Index ]

PHP Cross Reference of Joomla 4.2.2 documentation

title

Body

[close]

/administrator/components/com_categories/src/Table/ -> CategoryTable.php (source)

   1  <?php
   2  
   3  /**
   4   * @package     Joomla.Administrator
   5   * @subpackage  com_categories
   6   *
   7   * @copyright   (C) 2008 Open Source Matters, Inc. <https://www.joomla.org>
   8   * @license     GNU General Public License version 2 or later; see LICENSE.txt
   9   */
  10  
  11  namespace Joomla\Component\Categories\Administrator\Table;
  12  
  13  // phpcs:disable PSR1.Files.SideEffects
  14  \defined('_JEXEC') or die;
  15  // phpcs:enable PSR1.Files.SideEffects
  16  
  17  /**
  18   * Category table
  19   *
  20   * @since  1.6
  21   */
  22  class CategoryTable extends \Joomla\CMS\Table\Category
  23  {
  24      /**
  25       * Method to delete a node and, optionally, its child nodes from the table.
  26       *
  27       * @param   integer|null  $pk        The primary key of the node to delete.
  28       * @param   boolean       $children  True to delete child nodes, false to move them up a level.
  29       *
  30       * @return  boolean  True on success.
  31       *
  32       * @since   2.5
  33       */
  34      public function delete($pk = null, $children = false)
  35      {
  36          return parent::delete($pk, $children);
  37      }
  38  }


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