|
static | addBranch ($title, $state=1, $access=1) |
|
static | addNode ($branch, $title, $state=1, $access=1, $language='') |
|
static | addNestedNode ($branch, NodeInterface $node, $state=1, $access=1, $language='', $branchId=null) |
|
static | addMap ($linkId, $nodeId) |
|
static | getBranchTitles () |
|
static | getNodeByTitle ($branch, $title) |
|
static | removeMaps ($linkId) |
|
static | removeOrphanMaps () |
|
static | removeOrphanNodes () |
|
static | getTaxonomy ($id=0) |
|
static | getBranch ($title='') |
|
Taxonomy base class for the Finder indexer package.
- Depuis
- 2.5
◆ addBranch()
static addBranch |
( |
|
$title, |
|
|
|
$state = 1 , |
|
|
|
$access = 1 |
|
) |
| |
|
static |
Method to add a branch to the taxonomy tree.
- Paramètres
-
string | $title | The title of the branch. |
integer | $state | The published state of the branch. [optional] |
integer | $access | The access state of the branch. [optional] |
- Renvoie
- integer The id of the branch.
- Depuis
- 2.5
- Exceptions
-
Références $state, et $title.
◆ addMap()
static addMap |
( |
|
$linkId, |
|
|
|
$nodeId |
|
) |
| |
|
static |
Method to add a map entry between a link and a taxonomy node.
- Paramètres
-
integer | $linkId | The link to map to. |
integer | $nodeId | The node to map to. |
- Renvoie
- boolean True on success.
- Depuis
- 2.5
- Exceptions
-
Références $db, $id, $query, et Factory\getDbo().
Référencé par Indexer\index().
◆ addNestedNode()
static addNestedNode |
( |
|
$branch, |
|
|
NodeInterface |
$node, |
|
|
|
$state = 1 , |
|
|
|
$access = 1 , |
|
|
|
$language = '' , |
|
|
|
$branchId = null |
|
) |
| |
|
static |
Method to add a nested node to the taxonomy tree.
- Paramètres
-
string | $branch | The title of the branch to store the node in. |
NodeInterface | $node | The source-node of the taxonomy node. |
integer | $state | The published state of the node. [optional] |
integer | $access | The access state of the node. [optional] |
string | $language | The language of the node. [optional] |
integer | $branchId | ID of a branch if known. [optional] |
- Renvoie
- integer The id of the node.
- Depuis
- 4.0.0
Références $language, $state, $temp, et ImmutableNodeInterface\getParent().
Référencé par Indexer\index().
◆ addNode()
static addNode |
( |
|
$branch, |
|
|
|
$title, |
|
|
|
$state = 1 , |
|
|
|
$access = 1 , |
|
|
|
$language = '' |
|
) |
| |
|
static |
Method to add a node to the taxonomy tree.
- Paramètres
-
string | $branch | The title of the branch to store the node in. |
string | $title | The title of the node. |
integer | $state | The published state of the node. [optional] |
integer | $access | The access state of the node. [optional] |
string | $language | The language of the node. [optional] |
- Renvoie
- integer The id of the node.
- Depuis
- 2.5
- Exceptions
-
Références $language, $state, et $title.
Référencé par Indexer\index().
◆ getBranch()
static getBranch |
( |
|
$title = '' | ) |
|
|
static |
Get a taxonomy branch object based on its title or all branches
- Paramètres
-
string | $title | Title of the branch |
- Renvoie
- object|array The object with the branch data or an array of all branches
- Depuis
- 4.0.0
Références $taxonomies, et $title.
◆ getBranchTitles()
static getBranchTitles |
( |
| ) |
|
|
static |
◆ getNodeByTitle()
static getNodeByTitle |
( |
|
$branch, |
|
|
|
$title |
|
) |
| |
|
static |
◆ getTaxonomy()
static getTaxonomy |
( |
|
$id = 0 | ) |
|
|
static |
◆ removeMaps()
static removeMaps |
( |
|
$linkId | ) |
|
|
static |
◆ removeOrphanMaps()
static removeOrphanMaps |
( |
| ) |
|
|
static |
◆ removeOrphanNodes()
static removeOrphanNodes |
( |
| ) |
|
|
static |
◆ storeNode()
static storeNode |
( |
|
$node, |
|
|
|
$parentId |
|
) |
| |
|
staticprotected |
A helper method to store a node in the taxonomy
- Paramètres
-
object | $node | The node data to include |
integer | $parentId | The parent id of the node to add. |
- Renvoie
- integer The id of the inserted node.
- Depuis
- 4.0.0
- Exceptions
-
Références $db, $query, $result, et Factory\getDbo().
◆ $branches
◆ $nodes
◆ $taxonomies
La documentation de cette classe a été générée à partir du fichier suivant :