Changeset View
Changeset View
Standalone View
Standalone View
core/units/categories/cache_updater.php
Show All 12 Lines | |||||
*/ | */ | ||||
defined('FULL_PATH') or die('restricted access!'); | defined('FULL_PATH') or die('restricted access!'); | ||||
class clsRecursionStack { | class clsRecursionStack { | ||||
var $Stack; | var $Stack; | ||||
function clsRecursionStack() | /** | ||||
* Creates instance of clsRecursionStack class. | |||||
*/ | |||||
public function __construct() | |||||
{ | { | ||||
$this->Stack = Array(); | $this->Stack = Array(); | ||||
} | } | ||||
function Push($values) | function Push($values) | ||||
{ | { | ||||
array_push($this->Stack, $values); | array_push($this->Stack, $values); | ||||
} | } | ||||
▲ Show 20 Lines • Show All 506 Lines • ▼ Show 20 Line(s) | |||||
while ($needs_more) { | while ($needs_more) { | ||||
// until proceeded in this step category count exceeds category per step limit | // until proceeded in this step category count exceeds category per step limit | ||||
$needs_more = $this->DoTheJob(); | $needs_more = $this->DoTheJob(); | ||||
} | } | ||||
$this->SaveData(); | $this->SaveData(); | ||||
} | } | ||||
} | } | ||||
No newline at end of file |