Lines Matching refs:data
17 static $regexSubs = []; // flat array of data
18 static $simpleSubs = []; // 2d map of [namespace][string match]=>data
66 // Convert the config into usable data.
74 $data = array_pad(str_getcsv($line), self::$MAX_VAL, '');
75 if (!strlen($data[self::$ORIG]) || !strlen($data[self::$TO])) {
79 $orig = trim($data[self::$ORIG]);
81 $ns = isset($data[self::$IN]) ? trim($data[self::$IN]) : null;
88 $s[self::$TO] = trim($data[self::$TO]);
90 $s[self::$FLAGS] = isset($data[self::$FLAGS]) ? trim($data[self::$FLAGS]) : null;
91 $s[self::$TOOLTIP] = isset($data[self::$FLAGS]) ? strstr($data[self::$FLAGS], 'tt') !== FALSE : false;
92 $s[self::$ONCE] = isset($data[self::$FLAGS]) ? strstr($data[self::$FLAGS], 'once') !== FALSE : false;
93 $s[self::$INWORD] = isset($data[self::$FLAGS]) ? strstr($data[self::$FLAGS], 'inword') !== FALSE : false;
153 public function cacheMatch($match, $data) {
155 $data[self::$TEXT] = $match;
156 self::$simpleSubs[$match] = $data;
157 return $data;