-
Notifications
You must be signed in to change notification settings - Fork 80
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
new: added adobe account group and create adobe account class
feat(adobe): add feat(font): add font awesome call test feat: make request tio adobe fix: adobe url ref: try headers check the Host bagrinsergiu/blox-editor#24306 - Proxy for adobe fonts added adobe fonts feat(add) api call feat(ref) after review feat(ref) after review feat(ref) after review feat(refactor) after review fix(import) after rebase fix(remove) brizy.php from PR fix(remove) comment
- Loading branch information
1 parent
695ac3c
commit 1dc67d7
Showing
10 changed files
with
292 additions
and
39 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 |
---|---|---|
@@ -0,0 +1,56 @@ | ||
<?php | ||
/** | ||
* Created by PhpStorm. | ||
* User: alex | ||
* Date: 11/26/18 | ||
* Time: 5:00 PM | ||
*/ | ||
|
||
class Brizy_Editor_Accounts_AdobeAccount extends Brizy_Editor_Accounts_Account { | ||
|
||
/** | ||
* @return mixed | ||
*/ | ||
public function getGroup() { | ||
return Brizy_Editor_Accounts_AbstractAccount::ADOBE_GROUP; | ||
} | ||
|
||
/** | ||
* @param $data | ||
* | ||
* @return Brizy_Editor_Accounts_AbstractAccount | ||
* @throws Exception | ||
*/ | ||
static public function createFromSerializedData( $data ) { | ||
|
||
$data['group'] = Brizy_Editor_Accounts_AbstractAccount::ADOBE_GROUP; | ||
|
||
return Brizy_Editor_Accounts_AbstractAccount::createFromSerializedData( $data ); | ||
} | ||
|
||
/** | ||
* @param $json_obj | ||
* | ||
* @return Brizy_Editor_Accounts_AbstractAccount | ||
* @throws Exception | ||
*/ | ||
public static function createFromJson( $json_obj ) { | ||
|
||
if ( ! isset( $json_obj ) ) { | ||
throw new Exception( 'Bad Request', 400 ); | ||
} | ||
|
||
if ( is_object( $json_obj ) ) { | ||
|
||
$json_obj->group = Brizy_Editor_Accounts_AbstractAccount::ADOBE_GROUP; | ||
|
||
return Brizy_Editor_Accounts_AbstractAccount::createFromSerializedData( get_object_vars( $json_obj ) ); | ||
} | ||
|
||
throw new Exception( 'Invalid json provided.' ); | ||
} | ||
|
||
public function getKey() { | ||
return ! empty( $this->data['key'] ) ? $this->data['key'] : null; | ||
} | ||
} |
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
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.