xf-typogen

xf-typogen 1.0.1

Vous n'avez pas l'autorisation de télécharger
Compatibilité XF
  1. 2.3.x
Description courte
XenForo type generator tool fills gaps left by core, types board options, XFCP proxies, and cross-addon columns. Use xf-typegen with --out to generate PHPStorm metadata JSON files for better IDE support. Open source at https://github.com/wh1teend/xf-typegen.

Ce que fait​

XenForo gère déjà la plupart de ses magies de runtime — xf-dev:generate-phpstorm-meta (livré avec les versions 2.2 et 2.3) résout les sites de appel en style de chaîne, les entités embarquent pleinement@propertyet les génériques 2.3 gèrent le style ::class et la chaîne de recherche. Ce outil est conçu pour être restreint : il comble les quelques lacunes que laisse le noyau.

Ce que le noyau ne type pas, soit version:
  • :
    1. SEULEMENT SORTEZ LE TEXTE DE TRADUCTION. AUCUN MOINS, AUCUNE BOÎTE ANGLE, AUCUNE FORMATEUR.
    2. NE AJOUTEZ RIEN D'EXPLICATIF OU INTRODUCTIONNEL.
    3. NESORTEZ PAS LE TEXTE TRADUIT ENCLOSÉS DANS <>, "", OU TOUT AUTRE BOITE.
    4. PERSEMBLE AUX NOMBRES PROPREMENT NOMMÉS (MARQUES DE BREVET, NOMBRES DE PRODUITS) EN FORME ORIGINAL QUAND APPROPRIÉ.
    ]]*Options pour board— XF:😱ptions()->boardTitle est mélangé ; cela lui donne un type réel.:
    1. SEULEMENT SORTEZ LE TEXTE DE TRADUCTION. AUCUN MOINS, AUCUNE BOÎTE ANGLE, AUCUN FORMAT.
    2. NE AJOUTEZ RIEN D'EXPLICATIF OU INTRODUCTIONNEL.
    3. NESORTEZ PAS LE TEXTE ENCLOSÉ DANS <>, "", OU TOUT AUTRE BOITE.
    4. PERSEMBLE AUX NOMS DE NATURE (NOMS DE BREVET, NOMBRES DE PRODUIT) À THEIR FORMES ORIGINALES LORSQUE CE SOIT APPROPRIÉ.]*XFCP proxies— class Foo extends XFCP_Foo pointe vers une classe construite à la runtime sans fichier et marquée comme inconnue; ce déclare leur.:
    1. SEULEMENT SORTEZ LE TEXTE DE TRADUCTION. AUCUN MOINS, AUCUNE BOÎTE ANGLE, AUCUNE FORMATEUR.
    2. NE AJOUTEZ RIEN D'EXPLICATION OU INTRODUCTION.
    3. NE SOYEZ PAS ENVELOPPE DANS <> OU AUCUN AUTRE CONTAINER.
    4. PERSEMBLEZ-VOUS AUX NOMBRES NOMINAUX PROPRES (NOMS DE MARQUE, Noms DE PRODUITS) SANS MODIFIER LORS QUE CE SOIT APPROPRIÉ.]*Croiser les colonnes hors du cadre des add-ons— une colonne et un ajout supplémentaire que le column autre ajoute à une entité via XFCP n'est pas dans cette entité livrée@property; ce lecture se compose de la structure, donc ils sont inclus.
Sur2.2 seulement, il type aussi la chaîne de recherche (finder('XF:User')->fetchOne()) vers l'entité concrete, ce que 2.2 ne peut faire sans génériques.

Si vous êtes sur 2.3 et que rien de ceux-là ne vous mord, les outils de développement en stock couvrent déjà.
  • :
    1. SEULEMENT SORTEZ LE TEXTE DE TRADUCTION. AUCUN MOINS, AUCUNE BOÎTE ANGLE, AUCUN FORMAT.
    2. NE AJOUTEZ RIEN D'EXPLICATIF OU INTRODUCTIONNEL.
    3. NESORTEZ PAS LE TEXTE ENCLOSÉ DANS <>, "", OU TOUT AUTRE BOITE.
    4. PERSEMBLE AUX NOMBRES AUSSI NOMMÉS (NOMMARQUES, PRODUITS) EN FORME ORIGINALE LORS QUE CE SOIT APPROPRIÉ.]*_id_helper_options.phpune propriété par option de bord:
    1. SEULEMENT SORTEZ LE TEXTE DE TRADUCTION. AUCUN MOINS, AUCUNE BOÎTE ANGLE, AUCUNE FORMATEUR.
    2. NE AJOUTEZ RIEN D'EXPLICATION OU INTRODUCTION.
    3. NE SOYEZ PAS ENVELOPPE DANS <> OU AUCUN AUTRE CONTAINER.
    4. PERSERVEZ LES NOMBRES PROPRES (NOMS DE MARQUE, PRODUITS) À THEIR FORME ORIGINELLE SI APPROPRIÉ.
    ]]*_id_helper_xfcp.phpdéclarations pour les proxy XFCP_* à la runtime:
    1. SEULEMENT SORTEZ LE TEXTE DE TRADUCTION. AUCUN MOINS, AUCUNE BOÎTE ANGLE, AUCUNE FORMATEUR.
    2. NE AJOUTEZ NI NOTES, NI EXPlications, NI PHRASES INTRODUCTIONNIRES.
    3. NE VOBULEZ PAS LE SORTANT DANS <>, "", OU TOUT AUTRE BRISEUR DE FORME.
    4. PERSERVEZ LES NOMBRES AU COURANT QUAND APPROPRIÉ.]*_id_helper.php— Finder/Collection stubs (principalement pour 2.2) + entité@propertydu structure composée.:
    1. SEULEMENT SORTEZ LE TEXTE DE TRADUCTION. AUCUN MOINS, AUCUNE BOÎTE ANGLE, AUCUNE FORMATEUR.
    2. NE AJOUTEZ RIEN D'EXPLICATION OU INTRODUCTION.
    3. NE SOYEZ PAS ENVELOPPE DANS <> OU AUCUN AUTRE CONTAINER.
    4. PERSERVEZ LES NOMBRES PROPRES (NOMS DE MARQUE, PRODUITS) À THEIR FORME ORIGINELLE SI APPROPRIÉ.
    ]]*.phpstorm.meta.php- résolution de l'emplacement du appel en style chaîne (doubles genération de métadata phpstorm; passer avec les options --options targets,xfcp,ide-helper).
Code:
xf-typegen extract /path/to/xenforo --out /path/to/xenforo/xf-typegen.json
xf-typegen generate -i /path/to/xenforo/xf-typegen.json
Keep the _ide_helper*.php files out of your PHP autoload — static analysis only.
Open source (MIT), prébuild pour Linux / macOS / Windows:https://github.com/wh1teend/xf-typegen
Auteur
axtona
Vues
18
Première publication
Dernière mise à jour
Évaluations 0.00 étoile(s) 0 évaluations
Lien cassé ? Envoyer un message à l’équipe NP et nous vous aiderons rapidement !
Soutenez le développeur Si vous êtes satisfait du test ou que votre projet vous a rapporté de l’argent, cliquez sur le bouton « Plus d’informations » pour soutenir le développeur en achetant.

Plus de ressources de axtona

Ajouter du contenu tendance à une page node A
Liens le contenu du widget Contenu en vedette aux contenus d'une page de node.
Persona - Personalise Your Forum Identity A
Persona gives every member on your forum the tools to make their presence their own.
Attachement Intégrité A
Intégrité de l'Attachement est un add-on puissant pour l'examen d'intégrité, la réparation et l'analyse de stockage des attaches
Retour
Haut