-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: file and class names corrected based on wordpress requirements (#53
) * fix: files name fixed based on wordpress reqs * fix: corrected classes and namespaces name * fix: change naming to commerce * fix: change form names * docs: add the naming ADR --------- Co-authored-by: Maria Fernanda Magallanes Zubillaga <[email protected]>
- Loading branch information
1 parent
3f8a41c
commit 79bdd6a
Showing
27 changed files
with
244 additions
and
201 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,15 +5,15 @@ | |
* | ||
* @category Admin | ||
* @package WordPress | ||
* @subpackage Openedx_Woocommerce_Plugin | ||
* @subpackage Openedx_Commerce | ||
* @since 1.0.0 | ||
*/ | ||
|
||
namespace App\admin; | ||
|
||
use App\model\Openedx_Woocommerce_Plugin_Enrollment; | ||
use App\model\Openedx_Woocommerce_Plugin_Post_Type; | ||
use App\admin\views\Openedx_Woocommerce_Plugin_Enrollment_Info_Form; | ||
use App\model\Openedx_Commerce_Enrollment; | ||
use App\model\Openedx_Commerce_Post_Type; | ||
use App\admin\views\Openedx_Commerce_Enrollment_Info_Form; | ||
use App\utils; | ||
|
||
/** | ||
|
@@ -22,8 +22,8 @@ | |
* @link https://edunext.co/ | ||
* @since 1.0.0 | ||
* | ||
* @package Openedx_Woocommerce_Plugin | ||
* @subpackage Openedx_Woocommerce_Plugin/admin | ||
* @package Openedx_Commerce | ||
* @subpackage Openedx_Commerce/admin | ||
*/ | ||
|
||
/** | ||
|
@@ -32,11 +32,11 @@ | |
* Defines the plugin name, version, and two examples hooks for how to | ||
* enqueue the admin-specific stylesheet and JavaScript. | ||
* | ||
* @package Openedx_Woocommerce_Plugin | ||
* @subpackage Openedx_Woocommerce_Plugin/admin | ||
* @package Openedx_Commerce | ||
* @subpackage Openedx_Commerce/admin | ||
* @author eduNEXT <[email protected]> | ||
*/ | ||
class Openedx_Woocommerce_Plugin_Admin { | ||
class Openedx_Commerce_Admin { | ||
|
||
/** | ||
* The ID of this plugin. | ||
|
@@ -84,14 +84,14 @@ public function __construct( $plugin_name, $version, $test = null ) { | |
} | ||
|
||
/** | ||
* Create an instance of the Openedx_Woocommerce_Plugin_Enrollment class. | ||
* Create an instance of the Openedx_Commerce_Enrollment class. | ||
* | ||
* @since 1.0.0 | ||
* | ||
* @return void | ||
*/ | ||
public function create_enrollment_class() { | ||
$this->openedx_enrollment = new Openedx_Woocommerce_Plugin_Enrollment( $this ); | ||
$this->openedx_enrollment = new Openedx_Commerce_Enrollment( $this ); | ||
} | ||
|
||
/** | ||
|
@@ -105,10 +105,10 @@ public function enqueue_styles() { | |
* This function is provided for demonstration purposes only. | ||
* | ||
* An instance of this class should be passed to the run() function | ||
* defined in Openedx_Woocommerce_Plugin_Loader as all of the hooks are defined | ||
* defined in Openedx_Commerce_Loader as all of the hooks are defined | ||
* in that particular class. | ||
* | ||
* The Openedx_Woocommerce_Plugin_Loader will then create the relationship | ||
* The Openedx_Commerce_Loader will then create the relationship | ||
* between the defined hooks and the functions defined in this | ||
* class. | ||
*/ | ||
|
@@ -127,10 +127,10 @@ public function enqueue_scripts() { | |
* This function is provided for demonstration purposes only. | ||
* | ||
* An instance of this class should be passed to the run() function | ||
* defined in Openedx_Woocommerce_Plugin_Loader as | ||
* defined in Openedx_Commerce_Loader as | ||
* all of the hooks are defined in that particular class. | ||
* | ||
* The Openedx_Woocommerce_Plugin_Loader will then create the relationship | ||
* The Openedx_Commerce_Loader will then create the relationship | ||
* between the defined hooks and the functions defined in this | ||
* class. | ||
*/ | ||
|
@@ -152,7 +152,7 @@ public function register_enrollment_custom_post_type() { | |
* @since 1.0.0 | ||
*/ | ||
public function render_enrollment_info_form( $post ) { | ||
$this->openedx_enrollment_info_form = new Openedx_Woocommerce_Plugin_Enrollment_Info_Form( $post ); | ||
$this->openedx_enrollment_info_form = new Openedx_Commerce_Enrollment_Info_Form( $post ); | ||
} | ||
|
||
/** | ||
|
@@ -178,7 +178,7 @@ public function register_post_type( $post_type = '', $plural = '', $single = '', | |
} | ||
|
||
/** | ||
* Create a new instance of the Openedx_Woocommerce_Plugin_Post_Type class and register a new post type. | ||
* Create a new instance of the Openedx_Commerce_Post_Type class and register a new post type. | ||
* | ||
* @param string $post_type Post type name. | ||
* @param string $plural Post type item plural name. | ||
|
@@ -194,7 +194,7 @@ public function create_post_type( | |
$description = '', | ||
array $options | ||
) { | ||
return new Openedx_Woocommerce_Plugin_Post_Type( $post_type, $plural, $single, $description, $options ); | ||
return new Openedx_Commerce_Post_Type( $post_type, $plural, $single, $description, $options ); | ||
} | ||
|
||
/** | ||
|
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.