Joomla Platform
13.1
Documentation des API du framework Joomla Platform
|
Fonctions membres publiques | |
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) | |
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) | |
saveorder ($idArray=null, $lft_array=null) | |
Fonctions membres publiques inherited from JTable | |
__construct ($table, $key, JDatabaseDriver $db) | |
attachObserver (JObserverInterface $observer) | |
getObserverOfClass ($observerClass) | |
getFields () | |
appendPrimaryKeys ($query, $pk=null) | |
getTableName () | |
getKeyName ($multiple=false) | |
getDbo () | |
setDBO (JDatabaseDriver $db) | |
setRules ($input) | |
getRules () | |
reset () | |
bind ($src, $ignore=array()) | |
load ($keys=null, $reset=true) | |
save ($src, $orderingFilter= '', $ignore= '') | |
delete ($pk=null) | |
checkOut ($userId, $pk=null) | |
checkIn ($pk=null) | |
hasPrimaryKey () | |
hit ($pk=null) | |
isCheckedOut ($with=0, $against=null) | |
getNextOrder ($where= '') | |
getPrimaryKey (array $keys=array()) | |
reorder ($where= '') | |
Fonctions membres publiques inherited from JObject | |
__construct ($properties=null) | |
__toString () | |
def ($property, $default=null) | |
get ($property, $default=null) | |
getProperties ($public=true) | |
getError ($i=null, $toString=true) | |
getErrors () | |
set ($property, $value=null) | |
setProperties ($properties) | |
setError ($error) |
Attributs publics | |
$parent_id | |
$level | |
$lft | |
$rgt | |
$alias |
Fonctions membres protégées | |
_getNode ($id, $key=null) | |
_getTreeRepositionData ($referenceNode, $nodeWidth, $position= 'before') | |
_logtable ($showData=true, $showQuery=true) | |
_runQuery ($query, $errorMessage) | |
Fonctions membres protégées inherited from JTable | |
_getAssetName () | |
_getAssetTitle () | |
_getAssetParentId (JTable $table=null, $id=null) | |
_lock () | |
_unlock () |
Attributs protégés | |
$_location | |
$_location_id | |
$_cache = array() | |
$_debug = 0 | |
Attributs protégés inherited from JTable | |
$_tbl = '' | |
$_tbl_key = '' | |
$_tbl_keys = array() | |
$_db | |
$_trackAssets = false | |
$_rules | |
$_locked = false | |
$_autoincrement = true | |
$_observers | |
Attributs protégés inherited from JObject | |
$_errors = array() |
Additional Inherited Members | |
Fonctions membres publiques statiques inherited from JTable | |
static | getInstance ($type, $prefix= 'JTable', $config=array()) |
static | addIncludePath ($path=null) |
Définition à la ligne 20 du fichier nested.php.
|
protected |
Method to get nested set properties for a node in the tree.
integer | $id | Value to look up the node by. |
string | $key | An optional key to look up the node by (parent | left | right). If omitted, the primary key of the table is used. |
RuntimeException | on database error. |
Définition à la ligne 1455 du fichier nested.php.
|
protected |
Method to get various data necessary to make room in the tree at a location for a node and its children. The returned data object includes conditions for SQL WHERE clauses for updating left and right id values to make room for the node as well as the new left and right ids for the node.
object | $referenceNode | A node object with at least a 'lft' and 'rgt' with which to make room in the tree around for a new node. |
integer | $nodeWidth | The width of the node for which to make room in the tree. |
string | $position | The position relative to the reference node where the room should be made. |
Définition à la ligne 1517 du fichier nested.php.
|
protected |
Method to create a log table in the buffer optionally showing the query and/or data.
boolean | $showData | True to show data |
boolean | $showQuery | True to show query |
Définition à la ligne 1602 du fichier nested.php.
|
protected |
Runs a query and unlocks the database on an error.
mixed | $query | A string or JDatabaseQuery object. |
string | $errorMessage | Unused. |
Exception | on database error. |
Définition à la ligne 1645 du fichier nested.php.
JTableNested::check | ( | ) |
Checks that the object is valid and able to be stored.
This method checks that the parent_id is non-zero and exists in the database. Note that the root node (parent_id = 0) cannot be manipulated with this class.
Exception | |
RuntimeException | on database error. |
UnexpectedValueException |
Réimplémentée à partir de JTable.
Réimplémentée dans JTableCategory, JTableAsset, et JTableMenu.
Définition à la ligne 663 du fichier nested.php.
JTableNested::debug | ( | $level | ) |
Sets the debug level on or off
integer | $level | 0 = off, 1 = on |
Définition à la ligne 110 du fichier nested.php.
JTableNested::delete | ( | $pk = null , |
|
$children = true |
|||
) |
Method to delete a node and, optionally, its child nodes from the table.
integer | $pk | The primary key of the node to delete. |
boolean | $children | True to delete child nodes, false to move them up a level. |
Définition à la ligne 516 du fichier nested.php.
Références JTable\getInstance().
JTableNested::getPath | ( | $pk = null , |
|
$diagnostic = false |
|||
) |
Method to get an array of nodes from a given node to its root.
integer | $pk | Primary key of the node for which to get the path. |
boolean | $diagnostic | Only select diagnostic data for the nested sets. |
RuntimeException | on database error |
Définition à la ligne 126 du fichier nested.php.
JTableNested::getRootId | ( | ) |
Gets the ID of the root item in the tree
Définition à la ligne 1186 du fichier nested.php.
JTableNested::getTree | ( | $pk = null , |
|
$diagnostic = false |
|||
) |
Method to get a node and all its child nodes.
integer | $pk | Primary key of the node for which to get the tree. |
boolean | $diagnostic | Only select diagnostic data for the nested sets. |
RuntimeException | on database error. |
Définition à la ligne 156 du fichier nested.php.
JTableNested::isLeaf | ( | $pk = null | ) |
Method to determine if a node is a leaf node in the tree (has no children).
integer | $pk | Primary key of the node to check. |
RuntimeException | on database error. |
Définition à la ligne 184 du fichier nested.php.
JTableNested::move | ( | $delta, | |
$where = '' |
|||
) |
Method to move a row in the ordering sequence of a group of rows defined by an SQL WHERE clause. Negative numbers move the row up in the sequence and positive numbers move it down.
integer | $delta | The direction and magnitude to move the row in the ordering sequence. |
string | $where | WHERE clause to use for limiting the selection of rows to compact the ordering values. |
Réimplémentée à partir de JTable.
Définition à la ligne 241 du fichier nested.php.
JTableNested::moveByReference | ( | $referenceId, | |
$position = 'after' , |
|||
$pk = null |
|||
) |
Method to move a node and its children to a new location in the tree.
integer | $referenceId | The primary key of the node to reference new location by. |
string | $position | Location type string. ['before', 'after', 'first-child', 'last-child'] |
integer | $pk | The primary key of the node to move. |
11.1 RuntimeException on database error.
Définition à la ligne 295 du fichier nested.php.
JTableNested::orderDown | ( | $pk | ) |
Method to move a node one position to the right in the same level.
integer | $pk | Primary key of the node to move. |
RuntimeException | on database error. |
Définition à la ligne 1103 du fichier nested.php.
JTableNested::orderUp | ( | $pk | ) |
Method to move a node one position to the left in the same level.
integer | $pk | Primary key of the node to move. |
RuntimeException | on database error. |
Définition à la ligne 1020 du fichier nested.php.
JTableNested::publish | ( | $pks = null , |
|
$state = 1 , |
|||
$userId = 0 |
|||
) |
Method to set the publishing state for a node or list of nodes in the database table. The method respects rows checked out by other users and will attempt to checkin rows that it can after adjustments are made. The method will not allow you to set a publishing state higher than any ancestor node and will not allow you to set a publishing state on a node with a checked out child.
mixed | $pks | An optional array of primary key values to update. If not set the instance property value is used. |
integer | $state | The publishing state. eg. [0 = unpublished, 1 = published] |
integer | $userId | The user id of the user performing the operation. |
Réimplémentée à partir de JTable.
Définition à la ligne 890 du fichier nested.php.
Références JArrayHelper\toInteger().
JTableNested::rebuild | ( | $parentId = null , |
|
$leftId = 0 , |
|||
$level = 0 , |
|||
$path = '' |
|||
) |
Method to recursively rebuild the whole nested set tree.
integer | $parentId | The root of the tree to rebuild. |
integer | $leftId | The left id to start with in building the tree. |
integer | $level | The level to assign to the current nodes. |
string | $path | The path to the current nodes. |
11.1 RuntimeException on database error.
Définition à la ligne 1255 du fichier nested.php.
JTableNested::rebuildPath | ( | $pk = null | ) |
Method to rebuild the node's path field from the alias values of the nodes from the current node to the root node of the tree.
integer | $pk | Primary key of the node for which to get the path. |
Définition à la ligne 1344 du fichier nested.php.
JTableNested::saveorder | ( | $idArray = null , |
|
$lft_array = null |
|||
) |
Method to update order of table rows
array | $idArray | id numbers of rows to be reordered. |
array | $lft_array | lft values of rows to be reordered. |
Exception | on database error. |
Définition à la ligne 1402 du fichier nested.php.
JTableNested::setLocation | ( | $referenceId, | |
$position = 'after' |
|||
) |
Method to set the location of a node in the tree object. This method does not save the new location to the database, but will set it in the object so that when the node is stored it will be stored in the new location.
integer | $referenceId | The primary key of the node to reference new location by. |
string | $position | Location type string. ['before', 'after', 'first-child', 'last-child'] |
InvalidArgumentException |
Définition à la ligne 215 du fichier nested.php.
JTableNested::store | ( | $updateNulls = false | ) |
Method to store a node in the database table.
boolean | $updateNulls | True to update null values as well. |
Réimplémentée à partir de JTable.
Réimplémentée dans JTableCategory, et JTableMenu.
Définition à la ligne 714 du fichier nested.php.
|
protected |
Définition à la ligne 91 du fichier nested.php.
|
protected |
Définition à la ligne 99 du fichier nested.php.
|
protected |
Définition à la ligne 73 du fichier nested.php.
|
protected |
Définition à la ligne 83 du fichier nested.php.
JTableNested::$alias |
Définition à la ligne 64 du fichier nested.php.
JTableNested::$level |
Définition à la ligne 37 du fichier nested.php.
JTableNested::$lft |
Définition à la ligne 46 du fichier nested.php.
JTableNested::$parent_id |
Définition à la ligne 29 du fichier nested.php.
JTableNested::$rgt |
Définition à la ligne 55 du fichier nested.php.