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 All 38 Lines | |||||
/** | /** | ||||
* Table name used for inserting permissions | * Table name used for inserting permissions | ||||
* | * | ||||
* @var string | * @var string | ||||
*/ | */ | ||||
var $table = ''; | var $table = ''; | ||||
function clsCachedPermissions($CatId, $table_name) | /** | ||||
* Creates class instance. | |||||
* | |||||
* @param integer $cat_id Category ID. | |||||
* @param string $table_name Table name. | |||||
*/ | |||||
public function __construct($cat_id, $table_name) | |||||
{ | { | ||||
$this->CatId = $CatId; | $this->CatId = $cat_id; | ||||
$this->table = $table_name; | $this->table = $table_name; | ||||
} | } | ||||
function SetCatId($CatId) | function SetCatId($CatId) | ||||
{ | { | ||||
$this->CatId = $CatId; | $this->CatId = $CatId; | ||||
} | } | ||||
▲ Show 20 Lines • Show All 449 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 |