Lines Matching full:template
45 // parameters. We want to extract the template parameter and treat
51 if(array_key_exists('template', $data['cols'])) {
52 unset($data['cols']['template']);
53 $data['template'] = $data['data']['template'];
54 unset($data['data']['template']);
56 if(array_key_exists('template', $data)) {
87 * Get template file name and check existance and access rights.
89 * @param string $template value of 'template' key in entry
95 function _getFile($template) { argument
97 $wikipage = preg_split('/\#/u', $template, 2);
119 if(!array_key_exists('template', $data)) {
120 // If keyword "template" not present, we can leave
129 $R->doc .= "Template {$data['template']} not found. ";
130 $R->internalLink($data['template'], '[Click here to create it]');
134 $R->doc .= '<div class="datatemplateentry"> No permissions to view the template </div>';
159 * Read and process template file and return wiki instructions.
161 * If no template was specified, return empty array.
165 * 0 if the template file does not exist
166 * -1 if no permission to read the template file
167 * otherwise the template page as list of instructions with replacements performed
171 $file = $this->_getFile($data['template']);
286 * the parsed template, such that page title and table of contents are
290 if(!array_key_exists('template', $data)) {
295 $file = $this->_getFile($data['template']);
298 // (Maybe for cache handling one should hand the template file name to the