Lines Matching refs:match

47 	function _checkOption(&$match, $option, &$varAffected, $valIfFound){
48 if (preg_match('/-'.$option.' /i', $match, $found)) {
50 $match = str_replace($found[0], '', $match);
53 function _checkOptionParam(&$match, $option, &$varAffected, $varAssoc){
54 if (preg_match('/-'.$option.':('.implode('|',array_keys($varAssoc)).') /i', $match, $found)) {
56 $match = str_replace($found[0], '', $match);
60 function handle ($match, $state, $pos, Doku_Handler $handler) {
96 $match = PhpString::substr($match, 9, -1) . ' ';
99 $this->_checkOption($match, "displayList", $data['displayType'], CATLIST_DISPLAY_LIST);
100 $this->_checkOption($match, "displayLine", $data['displayType'], CATLIST_DISPLAY_LINE);
101 $this->_checkOption($match, "noNSInBold", $data['nsInBold'], false);
102 if (preg_match("/-expandButton:([0-9]+)/i", $match, $found)) {
104 $match = str_replace($found[0], '', $match);
106 $this->_checkOption($match, "noHeadTitle", $data['useheading'], false);
107 $this->_checkOption($match, "forceHeadTitle", $data['useheading'], true);
109 $this->_checkOption($match, "noNSHeadTitle", $data['nsuseheading'], false);
110 $this->_checkOption($match, "hideNotFoundMsg", $data['show_notfound_error'], false);
113 $this->_checkOption($match, "forceLinks", $data['nsLinks'], CATLIST_NSLINK_FORCE); // /!\ Deprecated
114 $this->_checkOptionParam($match, "nsLinks", $data['nsLinks'], array( "none" => CATLIST_NSLINK_NONE,
119 for ($found; preg_match("/-(exclu(page|ns|nsall|nspages|nsns)!?):\"([^\\/\"]+)\" /i", $match, $found); ) {
127 $match = str_replace($found[0], '', $match);
129 for ($found; preg_match("/-(exclu(page|ns|nsall|nspages|nsns)) /i", $match, $found); ) {
131 $match = str_replace($found[0], '', $match);
134 $this->_checkOption($match, "excludeOnID", $data['exclutype'], 'id');
135 $this->_checkOption($match, "excludeOnName", $data['exclutype'], 'name');
136 $this->_checkOption($match, "excludeOnTitle", $data['exclutype'], 'title');
139 for ($found; preg_match("/-exclude:\\{([^\\}]*)\\} /", $match, $found); ) {
142 $match = str_replace($found[0], '', $match);
146 if (preg_match("/-maxDepth:([0-9]+)/i", $match, $found)) {
148 $match = str_replace($found[0], '', $match);
152 if (preg_match("/-columns:([0-9]+)/i", $match, $found)) {
154 $match = str_replace($found[0], '', $match);
158 $this->_checkOption($match, "noHead", $data['head'], false);
159 $this->_checkOption($match, "showHead", $data['head'], true);
160 $this->_checkOption($match, "smallHead", $data['smallHead'], true);
161 $this->_checkOption($match, "noLinkStartHead", $data['linkStartHead'], false);
162 if (preg_match("/-(h[1-5])/i", $match, $found)) {
164 $match = str_replace($found[0], '', $match);
166 if (preg_match("/-titleHead:\"([^\"]*)\"/i", $match, $found)) {
168 $match = str_replace($found[0], '', $match);
172 $this->_checkOption($match, "noAddPageButton", $data['createPageButtonNs'], false);
173 $this->_checkOption($match, "addPageButtonEach", $data['createPageButtonSubs'], true);
176 $this->_checkOption($match, "sortAscending", $data['sort_order'], CATLIST_SORT_ASCENDING);
177 $this->_checkOption($match, "sortDescending", $data['sort_order'], CATLIST_SORT_DESCENDING);
178 $this->_checkOption($match, "sortByTitle", $data['sort_by_title'], true);
179 $this->_checkOption($match, "sortByType", $data['sort_by_type'], true);
180 $this->_checkOption($match, "sortByCreationDate", $data['sort_by_date'], 'created');
181 $this->_checkOption($match, "sortByModifDate", $data['sort_by_date'], 'modified');
184 $this->_checkOption($match, "ACLshowPage", $data['show_pgnoread'], true);
185 $this->_checkOption($match, "ACLhideNs", $data['hide_nsnotr'], true);
188 for ($found; preg_match("/ (-.*)/", $match, $found); ) {
190 $match = str_replace($found[0], '', $match);
193 // Looking for the wanted namespace. Now, only the wanted namespace remains in $match. Then clean the namespace id
194 $ns = trim($match);
239 $match = preg_match('/'.$regex['regex'].(($exclutype=='title')?'/':'/i'), $item[$exclutype]);
241 if ($match === 0)
244 if ($match === 1)