Back to Joomla project (class list)

Class Asset - list of methods

Table class supporting modified pre-order tree traversal behavior.

Extends

Package: Joomla\CMS\Table
Copyright: (C) 2008 Open Source Matters, Inc.
License: GNU General Public License version 2 or later; see LICENSE.txt
Located at: Joomla/Table/Asset.php
Project: Joomla

Method Summary

public
(\Joomla\Database\DatabaseDriver $db)

Constructor
Parameters
  • \Joomla\Database\DatabaseDriver $db Database driver object.
Since
  • 1.7.0
Show source code of this method: __construct Source Code

public int
(mixed $name)

Method to load an asset by its name.
Parameters
  • string $name The name of the asset.
Returns
  • int
Since
  • 1.7.0
Show source code of this method: loadByName Source Code

public bool
()

Assert that the nested set data is valid.
Returns
  • bool True if the instance is sane and able to be stored in the database.
Since
  • 1.7.0
Show source code of this method: check Source Code

public int
(mixed $parentId = null, mixed $leftId = 0, mixed $level = 0, mixed $path = null)

Method to recursively rebuild the whole nested set tree.
Parameters
  • int $parentId The root of the tree to rebuild.
  • int $leftId The left id to start with in building the tree.
  • int $level The level to assign to the current nodes.
  • string $path The path to the current nodes.
Returns
  • int 1 + value of root rgt on success, false on failure
Since
  • 3.5
-
  • \RuntimeException on database error.
Show source code of this method: rebuild Source Code

Properties Summary

public int
$id
The primary key of the asset.
Since
  • 1.7.0
public string
$name
The unique name of the asset.
Since
  • 1.7.0
public string
$title
The human readable title of the asset.
Since
  • 1.7.0
public string
$rules
The rules for the asset stored in a JSON string
Since
  • 1.7.0

Tags Summary

Since
1.7.0