$sql =
$this->
limit($sql,
(int) $count,
$offset);
} $stmt =
$this->
getConnection()->
prepare($sql);
$stmt->
execute($parameters);
$count = 0;
$this->
beginTransaction();
while ($category =
$stmt->
fetch(PDO::FETCH_ASSOC
)) { $count +=
$this->
rebuildPath($category['id'
],
$category['path'
]);
} $this->
commit();
return $count;
} /**
* Rebuilds the path for a single category
*
* @param int $categoryId
* @param string|null $categoryPath
*
* @return int
*/