parent
9bb3d9569c
commit
b1a83e156d
10
Update.md
10
Update.md
@ -6,10 +6,10 @@ We offered you 2 ways to `Update` items into the XMLDB:
|
|||||||
|
|
||||||
*Params:*
|
*Params:*
|
||||||
|
|
||||||
`$table` : String : name of the table
|
* `$table` : String : name of the table
|
||||||
`$oldAttribute` : Array : name of the actual attribute of the element (it will find the element thanks to it...)
|
* `$oldAttribute` : Array : name of the actual attribute of the element (it will find the element thanks to it...)
|
||||||
`$newAttribute` : Array : same but new
|
* `$newAttribute` : Array : same but new
|
||||||
`$forceInsert` : boolean : if the attribute doesn't exist do we create it ?
|
* `$forceInsert` : boolean : if the attribute doesn't exist do we create it ?
|
||||||
|
|
||||||
*Example:*
|
*Example:*
|
||||||
|
|
||||||
@ -29,4 +29,4 @@ $xmldb = new XMLDB('db.xml');
|
|||||||
$xmldb->updateNodeValue('table1', array('id', 'notes'), null, 'booga!');
|
$xmldb->updateNodeValue('table1', array('id', 'notes'), null, 'booga!');
|
||||||
```
|
```
|
||||||
|
|
||||||
Note : Like in the example, you can also change the item value *but it will erase all children in the process*
|
Note : Like in the example, you can also change the item value **but it will erase all children in the process**
|
Loading…
Reference in New Issue
Block a user