Lines Matching defs:flags

42  * @param array  $flags     Additional flags in a key value array.
43 * Available flags:
58 $flags = null,
67 // check for special flags as keys
68 if (!is_array($flags)) $flags = [];
69 $flagExternalEdit = isset($flags['ExternalEdit']);
108 * @param array $flags Additional flags in a key value array.
109 * Available flags:
119 $flags = null,
125 // check for special flags as keys
126 if (!is_array($flags)) $flags = [];
127 $flagExternalEdit = isset($flags['ExternalEdit']);
165 * @param int $flags see above
171 function getRecents($first, $num, $ns = '', $flags = 0)
182 if ($flags & RECENTS_MEDIA_CHANGES) {
194 if ($flags & RECENTS_MEDIA_PAGES_MIXED) {
205 while ($lines_position >= 0 || (($flags & RECENTS_MEDIA_PAGES_MIXED) && $media_lines_position >= 0)) {
207 $rec = _handleRecentLogLine(@$lines[$lines_position], $ns, $flags, $seen);
213 if (($flags & RECENTS_MEDIA_PAGES_MIXED) && empty($media_rec) && $media_lines_position >= 0) {
217 $flags | RECENTS_MEDIA_CHANGES,
225 if (($flags & RECENTS_MEDIA_PAGES_MIXED) && @$media_rec['date'] >= @$rec['date']) {
233 if ($flags & RECENTS_MEDIA_CHANGES) {
267 * @param int $flags see above (optional)
273 function getRecentsSince($from, $to = null, $ns = '', $flags = 0)
283 if ($flags & RECENTS_MEDIA_CHANGES) {
297 $rec = _handleRecentLogLine($line, $ns, $flags, $seen);
324 * @param int $flags flags to control which changes are included
328 function _handleRecentLogLine($line, $ns, $flags, &$seen)
340 if ($recent['type'] !== DOKU_CHANGE_TYPE_CREATE && ($flags & RECENTS_ONLY_CREATION)) return false;
343 if ($recent['type'] === DOKU_CHANGE_TYPE_MINOR_EDIT && ($flags & RECENTS_SKIP_MINORS)) return false;
355 if (($flags & RECENTS_SKIP_SUBSPACES) && (getNS($recent['id']) != $ns)) return false;
358 if ($flags & RECENTS_MEDIA_CHANGES) {
366 if ($flags & RECENTS_SKIP_DELETED) {
367 $fn = (($flags & RECENTS_MEDIA_CHANGES) ? mediaFN($recent['id']) : wikiFN($recent['id']));