Joomla CMS  3.10.11 (avec JPlatform 13.1 inclus)
Documentation des API du CMS Joomla en version 3.10.11 et du framework Joomla Platform intégré
Tout Structures de données Espaces de nommage Fichiers Fonctions Variables Pages
Référence de la classe Asset
+ Graphe d'héritage de Asset:

Fonctions membres publiques

 __construct ($db)
 
 loadByName ($name)
 
 check ()
 
 rebuild ($parentId=null, $leftId=0, $level=0, $path=null)
 
- Fonctions membres publiques hérités de Nested
 debug ($level)
 
 getPath ($pk=null, $diagnostic=false)
 
 getTree ($pk=null, $diagnostic=false)
 
 isLeaf ($pk=null)
 
 setLocation ($referenceId, $position='after')
 
 move ($delta, $where='')
 
 moveByReference ($referenceId, $position='after', $pk=null, $recursiveUpdate=true)
 
 delete ($pk=null, $children=true)
 
 check ()
 
 store ($updateNulls=false)
 
 publish ($pks=null, $state=1, $userId=0)
 
 orderUp ($pk)
 
 orderDown ($pk)
 
 getRootId ()
 
 rebuild ($parentId=null, $leftId=0, $level=0, $path='')
 
 rebuildPath ($pk=null)
 
 reset ()
 
 saveorder ($idArray=null, $lftArray=null)
 
- Fonctions membres publiques hérités de Table
 __construct ($table, $key, $db)
 
 attachObserver (\JObserverInterface $observer)
 
 getObserverOfClass ($observerClass)
 
 getFields ($reload=false)
 
 appendPrimaryKeys ($query, $pk=null)
 
 getTableName ()
 
 getKeyName ($multiple=false)
 
 getDbo ()
 
 setDbo ($db)
 
 setRules ($input)
 
 getRules ()
 
 reset ()
 
 bind ($src, $ignore=array())
 
 load ($keys=null, $reset=true)
 
 check ()
 
 save ($src, $orderingFilter='', $ignore='')
 
 checkOut ($userId, $pk=null)
 
 checkIn ($pk=null)
 
 hasPrimaryKey ()
 
 hit ($pk=null)
 
 isCheckedOut ($with=0, $against=null)
 
 getNextOrder ($where='')
 
 getPrimaryKey (array $keys=array())
 
 reorder ($where='')
 
 move ($delta, $where='')
 
 publish ($pks=null, $state=1, $userId=0)
 
 getColumnAlias ($column)
 
 setColumnAlias ($column, $columnAlias)
 
 hasField ($key)
 
- Fonctions membres publiques hérités de JObservableInterface
 attachObserver (JObserverInterface $observer)
 

Champs de données

 $id = null
 
 $name = null
 
 $title = null
 
 $rules = null
 
- Champs de données hérités de Nested
 $parent_id
 
 $level
 
 $lft
 
 $rgt
 
 $alias
 

Membres hérités additionnels

- Fonctions membres publiques statiques hérités de Table
static getInstance ($type, $prefix='JTable', $config=array())
 
static addIncludePath ($path=null)
 
- Fonctions membres protégées hérités de Nested
 recursiveUpdatePublishedColumn ($pk, $newState=null)
 
 _getNode ($id, $key=null)
 
 _getTreeRepositionData ($referenceNode, $nodeWidth, $position='before')
 
 _logtable ($showData=true, $showQuery=true)
 
 _runQuery ($query, $errorMessage)
 
- Fonctions membres protégées hérités de Table
 _getAssetName ()
 
 _getAssetTitle ()
 
 _lock ()
 
 _unlock ()
 
- Attributs protégés hérités de Nested
 $_location
 
 $_location_id
 
 $_cache = array()
 
 $_debug = 0
 
- Attributs protégés hérités de Table
 $_tbl = ''
 
 $_tbl_key = ''
 
 $_tbl_keys = array()
 
 $_db
 
 $_trackAssets = false
 
 $_rules
 
 $_locked = false
 
 $_autoincrement = true
 
 $_observers
 
 $_columnAlias = array()
 
 $_jsonEncode = array()
 
 $_supportNullValue = false
 
- Attributs protégés statiques hérités de Nested
static $root_id = 0
 

Description détaillée

Table class supporting modified pre-order tree traversal behavior.

Depuis
1.7.0

Documentation des constructeurs et destructeur

◆ __construct()

__construct (   $db)

Constructor

Paramètres
\JDatabaseDriver$dbDatabase driver object.
Depuis
1.7.0

Références $db.

Documentation des fonctions membres

◆ check()

check ( )

Assert that the nested set data is valid.

Renvoie
boolean True if the instance is sane and able to be stored in the database.
Depuis
1.7.0

Références $query.

◆ loadByName()

loadByName (   $name)

Method to load an asset by its name.

Paramètres
string$nameThe name of the asset.
Renvoie
integer
Depuis
1.7.0

Références $name.

◆ rebuild()

rebuild (   $parentId = null,
  $leftId = 0,
  $level = 0,
  $path = null 
)

Method to recursively rebuild the whole nested set tree.

Paramètres
integer$parentIdThe root of the tree to rebuild.
integer$leftIdThe left id to start with in building the tree.
integer$levelThe level to assign to the current nodes.
string$pathThe path to the current nodes.
Renvoie
integer 1 + value of root rgt on success, false on failure
Depuis
3.5
Exceptions

Références $query, et null.

Documentation des champs

◆ $id

$id = null

◆ $name

$name = null

◆ $rules

$rules = null

◆ $title

$title = null

La documentation de cette classe a été générée à partir du fichier suivant :