ワンクリックで
modernbill-plugin
modernbill-plugin には myadmin-plugins から収集した 4 個の skills があり、リポジトリ単位の職業カバレッジとサイト内 skill 詳細ページを表示します。
このリポジトリの skills
Writes ModernBill DB queries using get_module_db('mb'). Handles single-row lookup (num_rows check + next_record), multi-row fetch (while loop), real_escape for strings, and int-cast for IDs. Use when user says 'query modernbill', 'look up client', 'fetch invoices from DB', or adds functions to src/modernbill.functions.inc.php. Do NOT use for non-ModernBill modules or PDO.
Creates ACL-gated page handler functions matching the pattern in src/modernbill_client.php, src/modernbill_invoices.php, and src/modernbill_packages.php. Includes page_title, add_js('tablesorter'), has_acl('client_billing') guard, TFTable, TFSmarty with tablesorter/tablesorter.tpl, and Plugin.php registration. Use when user says 'add page', 'new view', 'create handler', or adds files to src/. Do NOT use for Plugin.php class methods or DB helper functions in modernbill.functions.inc.php.
Writes PHPUnit tests following patterns in tests/PluginTest.php, tests/ModernBillFunctionsTest.php, and tests/PageFilesTest.php. Covers file-existence assertions, function-declaration string checks, and ReflectionClass method inspection. Use when user says 'add test', 'write tests for', or adds files to tests/. Do NOT use for integration tests requiring a live DB or for testing runtime behavior that depends on global state ($GLOBALS['tf'], get_module_db).
Adds or modifies Symfony EventDispatcher hooks in src/Plugin.php. Covers getHooks() map entries, add_page_requirement and add_requirement calls with vendor paths, and static method signatures accepting GenericEvent. Use when user says 'add hook', 'register page', 'add requirement', or modifies Plugin.php. Do NOT use for non-plugin class files or page handler files in src/*.php.