{"id":6617,"date":"2009-09-04T21:21:34","date_gmt":"2009-09-04T21:21:34","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/plugin-factory\/"},"modified":"2009-09-04T22:23:35","modified_gmt":"2009-09-04T22:23:35","slug":"plugin-factory","status":"closed","type":"plugin","link":"https:\/\/cn.wordpress.org\/plugins\/plugin-factory\/","author":4105144,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"0.1","stable_tag":"0.1","tested":"2.8.4","requires":"2.8.3","requires_php":"","requires_plugins":"","header_name":"Plugin Factory","header_author":"Frederic Vauchelles, Cathy Vauchelles","header_description":"","assets_banners_color":"","last_updated":"2009-09-04 22:23:35","external_support_url":"","external_repository_url":"","donate_link":"http:\/\/fredpointzero.com","header_plugin_uri":"http:\/\/fredpointzero.com\/plugin-factory\/","header_author_uri":"http:\/\/fredpointzero.com","rating":0,"author_block_rating":0,"active_installs":0,"downloads":1577,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":[],"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":0},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["0.1"],"block_files":[],"assets_screenshots":[],"screenshots":[]},"plugin_section":[],"plugin_tags":[3708,11059,129180],"plugin_category":[],"plugin_contributors":[],"plugin_business_model":[],"class_list":["post-6617","plugin","type-plugin","status-closed","hentry","plugin_tags-factory","plugin_tags-maker","plugin_tags-wordpress","plugin_committers-fredpointzero"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/plugin-factory.svg","icon_2x":false,"generated":true},"screenshots":[],"raw_content":"<!--section=description-->\n<p>Plugin Factory will generate some files for you. It can generate the basic skeleton of your plugin,\nwith the main class, a proper readme.txt and some other files.\nIt can also generate POT files for your plugins.\nFinally, the configuration of your plugin generation is stored into a file and can be shared !<\/p>\n\n<h3>Features<\/h3>\n\n<h4>Plugin generation<\/h4>\n\n<p>Plugin factory will generate a basic skeleton for your plugin :\n*   myplugin.php\n*   readme.txt\n* views\/\n*   views\/admin\/\n*   views\/std\/<\/p>\n\n<p>You can regenerate your plugin to update fields with a new configuration file.\nPlease, be sured to have edited the file in [EDIT-<em>-BEGIN] [EDIT-<\/em>-END] sections,\notherwise, your code wil be overrided with the new generation.<\/p>\n\n<h4>Plugin configuration<\/h4>\n\n<p>Plugin factory let you define some fields for your plugin :\n* name<br \/>\n* contributors<br \/>\n* link<br \/>\n* tags<br \/>\n* require<br \/>\n* tested<br \/>\n* stable<br \/>\n* shortDescription<br \/>\n* description<br \/>\n* FAQ<br \/>\n* features<br \/>\n* screenshots<br \/>\n* URI<br \/>\n* textDomain<br \/>\n* className<br \/>\n* changelog<br \/>\n* authorURI<br \/>\n* authorMail<br \/>\n* directory<\/p>\n\n<p>Then a configuration file is saved and you can store it for backup.<\/p>\n\n<h4>Locale file generation<\/h4>\n\n<p>Plugin Factory have some tools to help you to localize your plugins.\nIt can add the text domain in your files and generate POT files (for every plugin in your\nwp-content\/plugins directory under their own directory).<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Download the plugin<\/li>\n<li>Copy the directory under your wp-content\/plugins<\/li>\n<li>Enable the plugin in your admin pages<\/li>\n<\/ol>\n\n<p>That's all !<\/p>\n\n<!--section=faq-->\n<dl>\n<dt>Where can I find translation files ?<\/dt>\n<dd><p>All translation files can be found in the lang subdirectory. It contains pot, po and mo files.<\/p><\/dd>\n<dt>Where can I find a tutorial to use Plugin Factory ?<\/dt>\n<dd><p>I am making some tutorial on my website, so checkout : http:\/\/fredpointzero in \"Plugin Wordpress\" page.<\/p><\/dd>\n<dt>Why there is so many file generated for my plugin ?<\/dt>\n<dd><p>Well, Plugin Factory has short simplified MVC library to render your plugin, so it generates a \"views\" directory\nfor views and each subdirectory correspond to a \"controller\". In fact, there is no controller : methods\nof your plugin can render views and act as controller and action.\nIf you want to render the file located in \"views\/admin\/menu.php\", just call the method : render_admin_menu(), without defining it.\nIf you want to make some preprocessing before the rendering, define a function : public function pre_render_(controller)_(action)(){}\nIt will be called before the rendering<\/p><\/dd>\n<dt>How can I define Wordpress Options to be stored in the database ?<\/dt>\n<dd><p>Defining Wordpress Options is very simple, you have to define a public attribute in your plugin : $pluginOptions.\nDo not take time to create an option page, there is already one for you ! Just use the id \"options\" in the admin menu tree method.\nTo have more details, please checkout http:\/\/fredpointzero.com\/plugin-factory.<\/p><\/dd>\n<dt>How can I generate my admin pages ?<\/dt>\n<dd><p>This is very simple : you just have to define a method that will generate the admin menu tree.\nTo have more details, please checkout http:\/\/fredpointzero.com\/plugin-factory.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>0.1<\/h4>\n\n<ul>\n<li>Initial widget<\/li>\n<\/ul>","raw_excerpt":"Plugin Factory makes a lot easier Wordpress plugin creation.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/cn.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/6617","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cn.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/cn.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/cn.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=6617"}],"author":[{"embeddable":true,"href":"https:\/\/cn.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/fredpointzero"}],"wp:attachment":[{"href":"https:\/\/cn.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=6617"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/cn.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=6617"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/cn.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=6617"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/cn.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=6617"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/cn.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=6617"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/cn.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=6617"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}