Skip to:
Content

bbPress.org


Ignore:
Timestamp:
08/27/2017 11:24:00 PM (8 years ago)
Author:
johnjamesjacoby
Message:

Converter: more OOP, specifically for the BBCode parser.

This change introduces a bbcode_parser_properties array to the base converter, allowing custom BBCode parser properties to be passed into the parent method via the child, minimizing the amount of code in each individual forum converter.

Trunk, for 2.6.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/includes/admin/converters/Drupal7.php

    r6573 r6670  
    2020     * Main Constructor
    2121     */
    22     function __construct() {
     22    public function __construct() {
    2323        parent::__construct();
    24         $this->setup_globals();
    2524    }
    2625
     
    591590
    592591    /**
    593      * Translate the post status from Drupal v7.x numeric's to WordPress's
     592     * Translate the post status from Drupal v7.x numerics to WordPress's
    594593     * strings.
    595594     *
     
    612611
    613612    /**
    614      * Translate the post status from Drupal v7.x numeric's to WordPress's strings.
     613     * Translate the post status from Drupal v7.x numerics to WordPress's strings.
    615614     *
    616615     * @param int $status Drupal v7.x numeric topic status
     
    632631
    633632    /**
    634      * Translate the topic sticky status type from Drupal v7.x numeric's to WordPress's strings.
     633     * Translate the topic sticky status type from Drupal v7.x numerics to WordPress's strings.
    635634     *
    636635     * @param int $status Drupal v7.x numeric forum type
Note: See TracChangeset for help on using the changeset viewer.