getLang('e_missingargs'), hsc($args[0]), hsc($args[1])), -1); return; } // get standard arguments $this->opt = array_combine(array('cmd', 'page_tpl', 'page_tgt'), $args); } /** * Nothing displayed * * @params array $params Additional HTML specific parameters * @params Doku_Form $form The target Doku_Form object * @params int $formid unique identifier of the form which contains this field */ function renderfield($params, Doku_Form $form, $formid) { } /** * Handle a post to the field * * @param string $value null * @param helper_plugin_bureaucracyau_field[] $fields (reference) form fields (POST handled upto $this field) * @param int $index index number of field in form * @param int $formid unique identifier of the form which contains this field * @return bool Whether the passed value is valid */ function handle_post($value, &$fields, $index, $formid) { return true; } /** * Get an arbitrary parameter * * @param string $name * @return mixed|null */ function getParam($name) { return ($name === 'value' || (in_array($name, array('page_tpl', 'page_tgt')) && $this->hidden)) ? null : parent::getParam($name); } }