public function gidRW($string, $request) { $id = AECToolbox::rewriteEngineRQ($string, $request); if (!is_numeric($id)) { $list = xJ::aclList(); foreach ($list as $li) { if ($li->name == $id) { return $li->group_id; } } return null; } return $id; }