public function nohooks__set_params($hook_object, $params) { if (!isset($params['gettoken'])) { $this->set_token($params, $this->backend->tokens->block_token()); } return parent::nohooks__set_params($hook_object, $params); }
public function nohooks__set_params($hook_object, $params) { if (!isset($params['user'])) { $this->log("Rollback requested without specifying the user - cannot go!", LL_ERROR); return false; } $this->set_token($params, $this->backend->tokens->rollback_token($params['title'], isset($params['user']) ? $params['user'] : NULL), $params['user']); return parent::nohooks__set_params($hook_object, $params); }
public function nohooks__set_params($hook_object, $params) { if (!isset($params['user'])) { $this->log("User rights change requested without specifying the user - cannot go!", LL_ERROR); return false; } $this->set_token($params, $this->backend->tokens->userrights_token($params['user']), $params['user']); return parent::nohooks__set_params($hook_object, $params); }
public function nohooks__set_params($hook_object, $params) { $extensions = array("_generator", "_property", "_list", "_meta", "_pageset"); foreach ($extensions as $extension) { if (isset($this->{$extension})) { $params[$extension] = $this->{$extension}; } } foreach ($params as $name => $sub) { if (substr($name, 0, 1) == "_" && isset($this->setnames[$name])) { if ($name == "_generator" || $name == "_pageset") { $params[$name] = $this->translate_params($sub, $this->setnames[$name]); } else { foreach ($params[$name] as $subname => $sub) { $params[$name][$subname] = $this->translate_params($sub, $this->setnames[$name][$subname]); } } } } return parent::nohooks__set_params($hook_object, $params); }
public function nohooks__set_params($hook_object, $params) { $this->set_token($params, $this->backend->tokens->upload_token()); return parent::nohooks__set_params($hook_object, $params); }
function __construct($backend, $params = NULL, $modulename = NULL) { $this->modulename = $modulename; parent::__construct($backend, $params); }