Changeset 2474729
- Timestamp:
- 02/15/2021 08:10:25 AM (5 years ago)
- Location:
- miqid-core/trunk
- Files:
-
- 3 added
- 6 edited
-
miqid-core.php (modified) (1 diff)
-
readme.md (modified) (1 diff)
-
src/Classes/API/Base.php (modified) (2 diffs)
-
src/Classes/API/CompanyProfile.php (modified) (1 diff)
-
src/Classes/DTO/Profile.php (modified) (1 diff)
-
src/Frontend/Ajax (added)
-
src/Frontend/Ajax/Ajax.php (added)
-
src/Frontend/Ajax/CompanyProfile.php (added)
-
src/Frontend/Frontend.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
miqid-core/trunk/miqid-core.php
r2467105 r2474729 3 3 * Plugin Name: MIQID-Core 4 4 * Description: MIQID-Core handle the basics. 5 * Version: 1.5. 45 * Version: 1.5.5 6 6 * Requires at least: 5.2 7 7 * Requires PHP: 7.2 -
miqid-core/trunk/readme.md
r2467105 r2474729 4 4 Tested up to: 5.6 5 5 Requires PHP: 7.2 6 Stable tag: 1.5. 46 Stable tag: 1.5.5 7 7 License: GPL v3 or later 8 8 -
miqid-core/trunk/src/Classes/API/Base.php
r2466954 r2474729 23 23 */ 24 24 protected function RemoteGet( $url, $JWT = null, array $args = [] ): HttpResponse { 25 if ( !is_null($JWT) && is_string( $JWT ) ) { 26 $JWT = new JWT( $JWT ); 27 } 25 28 26 29 $default = [ 'headers' => [ 'Content-Type' => 'application/json; charset=utf-8' ] ]; … … 47 50 if ( is_object( $body ) || is_array( $body ) ) { 48 51 $body = json_encode( $body ); 52 } 53 if ( !is_null($JWT) && is_string( $JWT ) ) { 54 $JWT = new JWT( $JWT ); 49 55 } 50 56 -
miqid-core/trunk/src/Classes/API/CompanyProfile.php
r2466954 r2474729 27 27 28 28 if ( in_array( $HttpResponse->get_response_code(), [ 200 ] ) ) { 29 return new \MIQID\Plugin\Core\Classes\DTO\ Profile( $HttpResponse->get_body() );29 return new \MIQID\Plugin\Core\Classes\DTO\CompanyProfile( $HttpResponse->get_body() ); 30 30 } 31 $HttpResponse->save_log( $this, __FUNCTION__ ); 32 33 return new \MIQID\Plugin\Core\Classes\DTO\Profile( [ 34 'HttpResponse' => $HttpResponse, 35 ] ); 31 return $HttpResponse; 36 32 } 37 33 } -
miqid-core/trunk/src/Classes/DTO/Profile.php
r2467105 r2474729 189 189 } 190 190 191 public function get_full_name() { 192 return implode( ' ', array_filter( [ $this->get_first_name(), $this->get_last_name() ] ) ); 193 } 194 191 195 /** 192 196 * @return string -
miqid-core/trunk/src/Frontend/Frontend.php
r2466954 r2474729 4 4 namespace MIQID\Plugin\Core\Frontend; 5 5 6 use MIQID\Plugin\Core\Frontend\Ajax\Ajax; 6 7 use MIQID\Plugin\Core\Frontend\Filter\Filter; 7 8 use MIQID\Plugin\Core\Frontend\Shortcode\Shortcode; … … 26 27 } 27 28 29 Ajax::Instance(); 30 28 31 Filter::Instance(); 29 32
Note: See TracChangeset
for help on using the changeset viewer.