Lines Matching refs:flags
50 'params' => array('flags' => 'array'),
61 $flags = array();
62 $flags = $this->defaults;
66 $flags['footer'] = 1;
69 $flags['footer'] = 0;
73 $flags['firstsec'] = 1;
76 $flags['firstsec'] = 0;
79 $flags['noheader'] = 1;
83 $flags['editbtn'] = 1;
87 $flags['editbtn'] = 0;
90 $flags['permalink'] = 1;
93 $flags['permalink'] = 0;
96 $flags['redirect'] = 1;
99 $flags['redirect'] = 0;
102 $flags['link'] = 1;
105 $flags['link'] = 0;
108 $flags['user'] = 1;
111 $flags['user'] = 0;
114 $flags['comments'] = 1;
117 $flags['comments'] = 0;
120 $flags['linkbacks'] = 1;
123 $flags['linkbacks'] = 0;
126 $flags['tags'] = 1;
129 $flags['tags'] = 0;
132 $flags['date'] = 1;
135 $flags['date'] = 0;
138 $flags['indent'] = 1;
141 $flags['indent'] = 0;
145 return $flags;
164 $flags = array();
184 $flags = $ins[$i][1][1][3];
193 $this->_append_includeins($ins_inc, $page['id'], $flags);
211 $flags = $ins[$i][1][1][3];
219 $this->_append_includeins($ins_inc, $page['id'], $flags);
238 $flags = $ins[$i][1][1][3];
243 $flags = $this->get_flags($flags);
246 if ($flags['footer']) {
247 $ins[$i] = $this->_footer($page, $sect, '', $flags, 0);
252 $ins_inc = $this->_get_instructions($page, $sect, $mode, $lvl, $flags);
297 function _get_instructions($page, $sect, $mode, $lvl, $flags)
305 $this->_convert_instructions($ins, $lvl, $page, $sect, $flags);
323 function _convert_instructions(&$ins, $lvl, $page, $sect, $flags)
331 if ($flags['firstsec']) {
357 if ((!$no_header) && $flags['noheader']) {
419 if ($flags['indent']) {
425 if ($flags['link'] && !$has_permalink && ($idx == $first_header)) {
426 $this->_permalink($ins[$idx], $page, $sect, $flags);
432 if ($flags['indent']) {
440 if ($flags['indent']) {
447 if ($flags['indent']) {
457 if ($flags['editbtn'] && (auth_quickaclcheck($page) >= AUTH_EDIT)) {
462 if ($flags['footer']) {
463 $ins[] = $this->_footer($page, $sect, $sect_title, $flags, $footer_lvl);
482 function _append_includeins(&$ins, $id, $flags)
491 $ins_tmp[1][1][3] = $flags;
501 function _footer($page, $sect, $sect_title, $flags, $footer_lvl)
505 $footer[1] = array('mediasyntax_footer', array($page, $sect, $sect_title, $flags, $this->toplevel_id, $footer_lvl));
527 function _permalink(&$ins, $page, $sect, $flags)
530 $ins[1] = array('mediasyntax_header', array($ins[1][0], $ins[1][1], $page, $sect, $flags));