Lines Matching defs:obj
229 $Parser->addMode($mode['mode'], $mode['obj']);
551 * @return array[] with for each plugin the array('sort' => sortnumber, 'mode' => mode string, 'obj' => plugin object)
577 /** @var SyntaxPlugin $obj */
578 $obj = plugin_load('syntax', $p);
579 if (!$obj instanceof PluginInterface) continue;
580 $PARSER_MODES[$obj->getType()][] = "plugin_$p"; //register mode type
583 'sort' => $obj->getSort(),
585 'obj' => $obj,
587 unset($obj); //remove the reference
603 $obj = new $class();
604 $modes[] = ['sort' => $obj->getSort(), 'mode' => $m, 'obj' => $obj];
612 $obj = new Formatting($m);
614 'sort' => $obj->getSort(),
616 'obj' => $obj
621 $obj = new Smiley(array_keys(getSmileys()));
622 $modes[] = ['sort' => $obj->getSort(), 'mode' => 'smiley', 'obj' => $obj];
623 $obj = new Acronym(array_keys(getAcronyms()));
624 $modes[] = ['sort' => $obj->getSort(), 'mode' => 'acronym', 'obj' => $obj];
625 $obj = new Entity(array_keys(getEntities()));
626 $modes[] = ['sort' => $obj->getSort(), 'mode' => 'entity', 'obj' => $obj];
630 $obj = new Camelcaselink();
631 $modes[] = ['sort' => $obj->getSort(), 'mode' => 'camelcaselink', 'obj' => $obj];