Informática Asociada ia doc & examples Index Examples List

ia\Lib\Synonyms

Synonims for import headers and or values
Case, accent, punctuantion, and snake_case/normal case insnesitive.
Levels parent_table has n parent_id has n originalNames each has n synonyms.

Documentation jit ia\Lib\Synonyms Documentation Usage sample Index Examples List

class ia\Lib\Synonyms


Index Documentation Usage sample Index Examples List

ia\Lib\Synonyms


Usage sample ia\Lib\Synonyms Documentation Usage sample Index Examples List

ia\Lib\Synonyms
Synonims for import headers and or values
Case, accent, punctuantion, and snake_case/normal case insnesitive.
Levels parent_table has n parent_id has n originalNames each has n synonyms.
  • Create: $syn = new Synonyms(true, 'heading', 'person');
  • Add manually: $syn->addSynonymsArray(['tax ID'=>'r.f.c.', 'clave'=>'RFC', 'Registro_federal_de_causantes'=>'rfc']);
  • Query it
    • echo $syn->get_originalName('Tax. ID'); = rfc
    • echo $syn->get_originalName('Tax_id'); = rfc
    • echo $syn->get_originalName('TaX id'); = rfc
    • echo $syn->get_originalName('Tax-id'); = rfc
    • echo $syn->get_originalName('RFC'); = rfc
    • echo $syn->get_originalName('r.F.c'); = rfc
    • echo $syn->get_originalName('claves.'); = rfc
//////////////////////////////////////

End: ia\Lib\Synonyms Documentation Usage sample Index Examples List