|
| | __construct () |
| |
| | useCollection (DocumentList &$l) |
| |
| | addRevision ($revisionComment= '') |
| |
| | addHistoryComment ($historyComment= '') |
| |
| | useTransaction ($transaction=true) |
| |
| | setStatusFile ($statusFile) |
| |
| | useProfileUpdating ($profiling=true) |
| |
| | getError () |
| |
| | setValue ($attrid, $newValue) |
| |
| | replaceValue ($attrid, $oldValue, $newValue) |
| |
| | addValue ($attrid, $valueToAdd) |
| |
| | removeValue ($attrid, $valueToRemove) |
| |
| | logStatus ($s) |
| |
| | bgSetValue ($attrid, $newValue) |
| |
| | bgAddValue ($attrid, $valueToAdd) |
| |
| | bgRemoveValue ($attrid, $valueToRemove) |
| |
| | bgReplaceValue ($attrid, $oldValue, $newValue) |
| |
| | getResults () |
| |
Format document list to be easily used in
$s = new \SearchDoc(
'',
"MY_FAMILY");
$fc = new \UpdateAttribute();
Definition at line 24 of file Class.UpdateAttribute.php.
| addHistoryComment |
( |
|
$historyComment = '' | ) |
|
| addRevision |
( |
|
$revisionComment = '' | ) |
|
| addValue |
( |
|
$attrid, |
|
|
|
$valueToAdd |
|
) |
| |
replace value by another for an document list attribute
- Parameters
-
| string | $attrid | attribute id |
| string|\string[] | $valueToAdd |
- Exceptions
-
Definition at line 437 of file Class.UpdateAttribute.php.
| bgAddValue |
( |
|
$attrid, |
|
|
|
$valueToAdd |
|
) |
| |
| bgRemoveValue |
( |
|
$attrid, |
|
|
|
$valueToRemove |
|
) |
| |
| bgReplaceValue |
( |
|
$attrid, |
|
|
|
$oldValue, |
|
|
|
$newValue |
|
) |
| |
call ::replaceValue() in a background process the return filename can be use by UpdateAttributeStatus to see information trace from background process
- See Also
- UpdateAttributeStatus
- Parameters
-
| string | $attrid | attribute id |
| string | $oldValue | value to replace |
| string|string[] | $newValue new value to set for attribute |
- Returns
- string filename status
Definition at line 714 of file Class.UpdateAttribute.php.
| bgSetValue |
( |
|
$attrid, |
|
|
|
$newValue |
|
) |
| |
add history item for each document
- Parameters
-
| int[] | $ids document identicators to process |
- Returns
- void
Definition at line 192 of file Class.UpdateAttribute.php.
| executeProfiling |
( |
array |
$ids | ) |
|
|
protected |
| executeRevision |
( |
array |
$ids | ) |
|
|
protected |
| static getInitIdFromName |
( |
|
$name | ) |
|
|
static |
| removeValue |
( |
|
$attrid, |
|
|
|
$valueToRemove |
|
) |
| |
replace value by another for an document list attribute
- Parameters
-
| string | $attrid | attribute id |
| string|\string[] | $valueToRemove |
- Exceptions
-
Definition at line 525 of file Class.UpdateAttribute.php.
| replaceValue |
( |
|
$attrid, |
|
|
|
$oldValue, |
|
|
|
$newValue |
|
) |
| |
replace value by another for an document list attribute
- Parameters
-
| string | $attrid | attribute id |
| string | $oldValue | value to replace |
| string|string[] | $newValue new value to set for attribute |
- Exceptions
-
Definition at line 376 of file Class.UpdateAttribute.php.
| setStatusFile |
( |
|
$statusFile | ) |
|
| setValue |
( |
|
$attrid, |
|
|
|
$newValue |
|
) |
| |
change value of an attribute for docment list
- Parameters
-
| string | $attrid | attribute id |
| string|string[] | $newValue new value to set for attribute |
- Exceptions
-
Definition at line 330 of file Class.UpdateAttribute.php.
| useProfileUpdating |
( |
|
$profiling = true | ) |
|
| useTransaction |
( |
|
$transaction = true | ) |
|
all modification are done in a sql transaction if only one request failed, none documents are modified default no use transaction
- Parameters
-
- Returns
- UpdateAttribute
Definition at line 105 of file Class.UpdateAttribute.php.
The documentation for this class was generated from the following file: