Lines Matching refs:entry

174     foreach ( $parsed as &$entry ) {
175 $result[$entry['entrykey']] = $entry;
246 foreach ( $data as $entry ) {
248 if ( empty($this->options['lang']['entrytypes'][$entry['entrytype']]) ) {
249 $entry['entrytype'] = $this->options['lang']['entrytypes']['unknown'];
255 if ( !empty($entry[$field]) ) {
257 ? $entry['niceauthor']
258 : $entry[$field];
270 if ( !empty($replacementKeys[$entry['entrykey']]) ) {
271 $entry['entrykey'] = $replacementKeys[$entry['entrykey']];
274 $result[] = $entry;
293 foreach ( $data as $entry ) {
294 … if ( !empty($entry[$this->options['group']]) || $this->options['group'] === 'firstauthor' ) {
296 $target = $entry['author'][0]['nice'];
299 $target = $entry['niceauthor'];
302 $target = $entry[$this->options['group']];
313 $result[$target][] = $entry;
424 foreach ( $data as $entry ) {
425 $entries .= $this->translate_entry($entry, $entry_tpl[1]);
443 private function translate_entry(&$entry, $template) { argument
447 $result = $this->resolve_conditions($entry, $result);
453 foreach ( $entry as $key => $value ) {
455 $value = $entry['niceauthor'];
480 private function resolve_conditions(&$entry, &$string) { argument
503 $evalcond = !empty($entry[$match[1]]);
509 $evalcond = $entry[$match[1]] === $match[3];
512 $evalcond = $entry[$match[1]] !== $match[3];
515 $evalcond = is_numeric($entry[$match[1]])
517 && (int)$entry[$match[1]] <= (int)$match[3];
520 $evalcond = is_numeric($entry[$match[1]])
522 && (int)$entry[$match[1]] >= (int)$match[3];
525 $evalcond = preg_match('/'.$match[3].'/', $entry[$match[1]]) > 0;
539 $resolved = $this->resolve_conditions($entry, $resolved);