Lines Matching refs:flags

21   protected $flags   = array();  variable in syntax_plugin_icons_icon
61 $flags = array();
104 list($match, $flags) = explode('?', trim($match), 2);
107 $flags .= "&$align_flag";
109 … return array($pack, $icon, explode('&', rtrim($flags, '&')), $title, $url, $match, $state, $pos);
127 list($pack, $icon, $flags, $title, $url) = $data;
128 $this->parseFlags($pack, $icon, $flags);
232 return (isset($this->flags[$name]) ? $this->flags[$name] : null);
236 return $this->flags;
239 protected function parseFlags($pack, $icon, $flags) { argument
241 $this->flags = array();
245 $this->flags['pack'] = $pack;
246 $this->flags['icon'] = $icon;
248 if ((int) $flags[0] > 0 && ! in_array($flags[0], array('2x', '3x', '4x', '5x'))) {
249 $flags[] = "size=" . $flags[0];
250 unset($flags[0]);
253 if ($left = array_search('left', $flags)) {
254 $flags[] = 'align=left';
255 unset($flags[$left]);
258 if ($right = array_search('right', $flags)) {
259 $flags[] = 'align=right';
260 unset($flags[$right]);
263 if ($center = array_search('center', $flags)) {
264 $flags[] = 'align=center';
265 unset($flags[$center]);
268 foreach ($flags as $flag) {
274 $this->flags[$flag] = $value;
280 $this->flags[$flag] = (int) $value;
289 $this->flags[$flag] = true;
297 $this->flags[$flag] = true;
299 if ($this->flags['pack'] == 'fa') {
377 $this->flags['size'] = true;
390 if (! isset($this->flags['size'])) {
392 $this->flags['size'] = (int) $this->getConf('defaultSize');
400 if ($this->flags['pack'] == 'icon') {
401 $this->flags['pack'] = $this->getConf('defaultPack');