private static function __verifyPlaces($places) { if ($places == 'ALL') { if (HTTPRequest::__isCLI()) { if (!is_associative($_SERVER['argv'])) { $aux = $_SERVER['argv']; $_SERVER['argv'] = array(); for ($i = 1; $i < $_SERVER['argc']; $i++) { if (($pos = strpos($aux[$i], "=")) === false) { $_SERVER['argv'][$aux[$i]] = true; continue; } $param = explode('=', trim($aux[$i])); $_SERVER['argv'][trim($param[0])] = $param[1]; } } $places = array('SERVER[\'argv\']'); } else { $places = array('GET', 'POST', 'COOKIE'); } } else { if (is_string($places)) { $places = explode(',', $places); } } return $places; }