Changeset 3354757
- Timestamp:
- 09/02/2025 01:41:20 PM (7 months ago)
- Location:
- sendpulse-email-marketing-newsletter
- Files:
-
- 2 deleted
- 2 edited
-
tags/2.2.1/inc/class-sendpulse-newsletter-api.php (modified) (1 diff)
-
trunk/inc/class-sendpulse-newsletter-api.php (modified) (1 diff)
-
trunk/vendor/sendpulse/sendpulse-rest-api-php (deleted)
-
trunk/vendor/tareq1988 (deleted)
Legend:
- Unmodified
- Added
- Removed
-
sendpulse-email-marketing-newsletter/tags/2.2.1/inc/class-sendpulse-newsletter-api.php
r3354585 r3354757 22 22 protected $requirement; 23 23 24 // public function __construct($apiClient = null)25 // {26 // $user_id = $this->get_option('client_id');27 // $secret = $this->get_option('client_secret');28 //29 // $this->requirement = new Send_Pulse_Newsletter_Requirement();30 //31 // if (!$apiClient) {32 // $storage = null;33 // $notice_action = '';34 //35 // if ( $this->requirement->is_folder_writable( SP_EMAIL_MARKETING_PLUGIN_STORAGE_DIR ) !== true ) {36 // $storage = new SessionStorage();37 // $notice_action = 'sp_emp_admin_activated_session_storage_notice';38 // } else {39 // $storage = new FileStorage( SP_EMAIL_MARKETING_PLUGIN_STORAGE_DIR );40 // $notice_action = 'sp_emp_admin_activated_file_storage_notice';41 // }42 //43 // $this->api = new ApiClient( $user_id, $secret, $storage );44 //45 // add_action( 'admin_notices', array( $this, $notice_action ) );46 // }47 //48 // $this->api = $apiClient;49 // $this->default_book = $this->get_option('default_book');50 // }51 24 public function __construct($apiClient = null) 52 25 { -
sendpulse-email-marketing-newsletter/trunk/inc/class-sendpulse-newsletter-api.php
r3354585 r3354757 22 22 protected $requirement; 23 23 24 // public function __construct($apiClient = null)25 // {26 // $user_id = $this->get_option('client_id');27 // $secret = $this->get_option('client_secret');28 //29 // $this->requirement = new Send_Pulse_Newsletter_Requirement();30 //31 // if (!$apiClient) {32 // $storage = null;33 // $notice_action = '';34 //35 // if ( $this->requirement->is_folder_writable( SP_EMAIL_MARKETING_PLUGIN_STORAGE_DIR ) !== true ) {36 // $storage = new SessionStorage();37 // $notice_action = 'sp_emp_admin_activated_session_storage_notice';38 // } else {39 // $storage = new FileStorage( SP_EMAIL_MARKETING_PLUGIN_STORAGE_DIR );40 // $notice_action = 'sp_emp_admin_activated_file_storage_notice';41 // }42 //43 // $this->api = new ApiClient( $user_id, $secret, $storage );44 //45 // add_action( 'admin_notices', array( $this, $notice_action ) );46 // }47 //48 // $this->api = $apiClient;49 // $this->default_book = $this->get_option('default_book');50 // }51 24 public function __construct($apiClient = null) 52 25 {
Note: See TracChangeset
for help on using the changeset viewer.