9 protected static $pool = array();
20 public static function runActions($code, array $typeList = array())
23 $actionsList = static::getPoolByCode($code);
25 if (empty($actionsList))
32 $typeList = array_keys($actionsList);
40 foreach ($typeList as $type)
42 if (!isset($actionsList[$type]))
45 foreach ($actionsList[$type] as $actionParams)
48 $r = call_user_func_array($actionParams[
'METHOD'], $actionParams[
'PARAMS']);
52 $result->addErrors($r->getErrors());
55 if ($r->hasWarnings())
57 $result->addWarnings($r->getWarnings());
61 static::resetPool($code, $type);