Example #1
0
 public function setupParser(\Console_CommandLine $parser)
 {
     parent::setupParser($parser);
     $parser->addOption('wp_table_prefix', array('long_name' => '--wptableprefix', 'description' => "For the WordPress importer: specify the SQL table prefix (default: wp_).", 'help_name' => 'PREFIX'));
     $parser->addOption('default_post_layout', array('long_name' => '--postlayout', 'description' => "For the WordPress importer: specify the default layout for each post (default: none specified).", 'help_name' => 'LAYOUT'));
     $parser->addOption('default_page_layout', array('long_name' => '--pagelayout', 'description' => "For the WordPress importer: specify the default layout for each page (default: none specified).", 'help_name' => 'LAYOUT'));
     $parser->addOption('default_post_category', array('long_name' => '--default-post-category', 'description' => "For the WordPress importer: specify the default category for each post (default: none specified).", 'help_name' => 'CATEGORY'));
     $parser->addOption('default_page_category', array('long_name' => '--default-page-category', 'description' => "For the WordPress importer: specify the default category for each page (default: none specified).", 'help_name' => 'CATEGORY'));
 }
Example #2
0
 public function setupParser(\Console_CommandLine $parser)
 {
     parent::setupParser($parser);
     $parser->addOption('j_table_prefix', array('long_name' => '--jtableprefix', 'description' => 'For the Joomla importer: specify the SQL table prefix (default: jos_)', 'help_name' => 'PREFIX'));
     $parser->addOption('j_section_id', array('long_name' => '--jsectionid', 'description' => 'For the Joomla importer: sepcify the articles\' section ID (default: 0)', 'help_name' => 'SECTION'));
 }
Example #3
0
 public function __construct()
 {
     parent::__construct('jekyll', "Imports pages and posts from a Jekyll blog.", "The source must be a path to the root of a Jekyll website.");
     $this->pageExtensions = array('htm', 'html', 'textile', 'markdown');
 }
 public function setupParser(\Console_CommandLine $parser)
 {
     parent::setupParser($parser);
     $parser->addOption('wp_table_prefix', array('long_name' => '--wptableprefix', 'description' => "For the WordPress importer: specify the SQL table prefix (default: wp_).", 'help_name' => 'PREFIX'));
 }