[ Index ]

PHP Cross Reference of Joomla 4.2.2 documentation

title

Body

[close]

/libraries/src/Table/ -> Asset.php (summary)

Joomla! Content Management System

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

Defines 1 class

Asset:: (4 methods):
  __construct()
  loadByName()
  check()
  rebuild()


Class: Asset  - X-Ref

Table class supporting modified pre-order tree traversal behavior.

__construct(DatabaseDriver $db)   X-Ref
Constructor

param: DatabaseDriver  $db  Database driver object.

loadByName($name)   X-Ref
Method to load an asset by its name.

param: string  $name  The name of the asset.
return: integer

check()   X-Ref
Assert that the nested set data is valid.

return: boolean  True if the instance is sane and able to be stored in the database.

rebuild($parentId = null, $leftId = 0, $level = 0, $path = null)   X-Ref
Method to recursively rebuild the whole nested set tree.

param: integer  $parentId  The root of the tree to rebuild.
param: integer  $leftId    The left id to start with in building the tree.
param: integer  $level     The level to assign to the current nodes.
param: string   $path      The path to the current nodes.
return: integer  1 + value of root rgt on success, false on failure



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