Method to add a branch to the taxonomy tree.
static integer
addBranch
(string $title, [integer $state = 1], [integer $access = 1])
-
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]
Method to add a map entry between a link and a taxonomy node.
static boolean
addMap
(integer $linkId, integer $nodeId)
-
integer
$linkId: The link to map to.
-
integer
$nodeId: The node to map to.
Method to add a node to the taxonomy tree.
static integer
addNode
(string $branch, string $title, [integer $state = 1], [integer $access = 1])
-
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]
Method to get the title of all taxonomy branches.
static array
getBranchTitles
()
Method to find a taxonomy node in a branch.
static mixed
getNodeByTitle
(string $branch, string $title)
-
string
$branch: The branch to search.
-
string
$title: The title of the node.
Method to remove map entries for a link.
static boolean
removeMaps
(integer $linkId)
-
integer
$linkId: The link to remove.
Method to remove orphaned taxonomy nodes and branches.
static integer
removeOrphanNodes
()
Method to store a node to the database. This method will accept either a branch or a node.
static boolean
storeNode
(object $item)
-
object
$item: The item to store.