Added default parameter $reset to allow for incremental rescan.
This commit is contained in:
parent
6d123e90f3
commit
6116dc6b65
|
@ -131,8 +131,10 @@ class OC_VCategories {
|
||||||
* }
|
* }
|
||||||
* $categories->rescan($objects);
|
* $categories->rescan($objects);
|
||||||
*/
|
*/
|
||||||
public function rescan($objects, $sync=true) {
|
public function rescan($objects, $sync=true, $reset=true) {
|
||||||
$this->categories = array();
|
if($reset === true) {
|
||||||
|
$this->categories = array();
|
||||||
|
}
|
||||||
foreach($objects as $object) {
|
foreach($objects as $object) {
|
||||||
//OC_Log::write('core','OC_VCategories::rescan: '.substr($object, 0, 100).'(...)', OC_Log::DEBUG);
|
//OC_Log::write('core','OC_VCategories::rescan: '.substr($object, 0, 100).'(...)', OC_Log::DEBUG);
|
||||||
$vobject = OC_VObject::parse($object);
|
$vobject = OC_VObject::parse($object);
|
||||||
|
|
Loading…
Reference in New Issue