Changeset 2962811
- Timestamp:
- 09/05/2023 06:46:52 AM (3 years ago)
- Location:
- appful-app
- Files:
-
- 28 added
- 3 deleted
- 27 edited
- 79 copied
-
tags/3.1.9 (copied) (copied from appful-app/trunk)
-
tags/3.1.9/appful-app.php (copied) (copied from appful-app/trunk/appful-app.php) (1 diff)
-
tags/3.1.9/appful.log (copied) (copied from appful-app/trunk/appful.log)
-
tags/3.1.9/frontend/scripts/user.js (copied) (copied from appful-app/trunk/frontend/scripts/user.js)
-
tags/3.1.9/frontend/styles/style.css (copied) (copied from appful-app/trunk/frontend/styles/style.css)
-
tags/3.1.9/frontend/templates/appful_menu_page.html.twig (copied) (copied from appful-app/trunk/frontend/templates/appful_menu_page.html.twig)
-
tags/3.1.9/includes/api/Api.php (copied) (copied from appful-app/trunk/includes/api/Api.php)
-
tags/3.1.9/includes/api/Endpoints.php (copied) (copied from appful-app/trunk/includes/api/Endpoints.php) (2 diffs)
-
tags/3.1.9/includes/api/ReqHandler.php (copied) (copied from appful-app/trunk/includes/api/ReqHandler.php) (3 diffs)
-
tags/3.1.9/includes/api/Rewrites.php (copied) (copied from appful-app/trunk/includes/api/Rewrites.php)
-
tags/3.1.9/includes/api/client/BackendClient.php (copied) (copied from appful-app/trunk/includes/api/client/BackendClient.php)
-
tags/3.1.9/includes/api/client/SelfClient.php (copied) (copied from appful-app/trunk/includes/api/client/SelfClient.php)
-
tags/3.1.9/includes/api/dtos/BlogHooksDto.php (copied) (copied from appful-app/trunk/includes/api/dtos/BlogHooksDto.php)
-
tags/3.1.9/includes/api/dtos/BlogInfoDto.php (copied) (copied from appful-app/trunk/includes/api/dtos/BlogInfoDto.php)
-
tags/3.1.9/includes/api/dtos/PostDto.php (modified) (4 diffs)
-
tags/3.1.9/includes/api/dtos/RoleDto.php (added)
-
tags/3.1.9/includes/api/dtos/UserDto.php (modified) (2 diffs)
-
tags/3.1.9/includes/api/dtos/UserRoleDto.php (added)
-
tags/3.1.9/includes/api/handlers/AuthenticateUserRequestHandler.php (copied) (copied from appful-app/trunk/includes/api/handlers/AuthenticateUserRequestHandler.php)
-
tags/3.1.9/includes/api/handlers/ClearLogRequestHandler.php (copied) (copied from appful-app/trunk/includes/api/handlers/ClearLogRequestHandler.php)
-
tags/3.1.9/includes/api/handlers/CreateCommentRequestHandler.php (copied) (copied from appful-app/trunk/includes/api/handlers/CreateCommentRequestHandler.php)
-
tags/3.1.9/includes/api/handlers/GetRolesRequestHandler.php (added)
-
tags/3.1.9/includes/api/handlers/PullLocalPostContentRequestHandler.php (copied) (copied from appful-app/trunk/includes/api/handlers/PullLocalPostContentRequestHandler.php)
-
tags/3.1.9/includes/api/handlers/RoleSyncRequestHandler.php (added)
-
tags/3.1.9/includes/api/mapper/BlogHooksMapper.php (copied) (copied from appful-app/trunk/includes/api/mapper/BlogHooksMapper.php)
-
tags/3.1.9/includes/api/mapper/BlogInfoMapper.php (copied) (copied from appful-app/trunk/includes/api/mapper/BlogInfoMapper.php)
-
tags/3.1.9/includes/api/mapper/PostMapper.php (modified) (2 diffs)
-
tags/3.1.9/includes/api/mapper/RoleMapper.php (added)
-
tags/3.1.9/includes/api/mapper/UserMapper.php (modified) (2 diffs)
-
tags/3.1.9/includes/api/mapper/UserRoleMapper.php (added)
-
tags/3.1.9/includes/api/reponses/BackendResponse.php (deleted)
-
tags/3.1.9/includes/api/reponses/HttpResponse.php (copied) (copied from appful-app/trunk/includes/api/reponses/HttpResponse.php)
-
tags/3.1.9/includes/api/requests/BackendRequest.php (deleted)
-
tags/3.1.9/includes/api/requests/HttpRequest.php (copied) (copied from appful-app/trunk/includes/api/requests/HttpRequest.php)
-
tags/3.1.9/includes/domain/AuthenticateRequest.php (copied) (copied from appful-app/trunk/includes/domain/AuthenticateRequest.php)
-
tags/3.1.9/includes/domain/BlogHooks.php (copied) (copied from appful-app/trunk/includes/domain/BlogHooks.php)
-
tags/3.1.9/includes/domain/BlogInfo.php (copied) (copied from appful-app/trunk/includes/domain/BlogInfo.php)
-
tags/3.1.9/includes/domain/CreateCommentRequest.php (copied) (copied from appful-app/trunk/includes/domain/CreateCommentRequest.php)
-
tags/3.1.9/includes/domain/Post.php (modified) (6 diffs)
-
tags/3.1.9/includes/domain/Role.php (added)
-
tags/3.1.9/includes/domain/User.php (modified) (4 diffs)
-
tags/3.1.9/includes/domain/UserRole.php (added)
-
tags/3.1.9/includes/helper/ClientTokenManager.php (copied) (copied from appful-app/trunk/includes/helper/ClientTokenManager.php)
-
tags/3.1.9/includes/helper/Constants.php (copied) (copied from appful-app/trunk/includes/helper/Constants.php) (2 diffs)
-
tags/3.1.9/includes/helper/Logger.php (copied) (copied from appful-app/trunk/includes/helper/Logger.php)
-
tags/3.1.9/includes/hooks/AttachmentHook.php (copied) (copied from appful-app/trunk/includes/hooks/AttachmentHook.php)
-
tags/3.1.9/includes/hooks/PostHook.php (copied) (copied from appful-app/trunk/includes/hooks/PostHook.php)
-
tags/3.1.9/includes/hooks/SessionHook.php (copied) (copied from appful-app/trunk/includes/hooks/SessionHook.php)
-
tags/3.1.9/includes/hooks/UserHook.php (copied) (copied from appful-app/trunk/includes/hooks/UserHook.php)
-
tags/3.1.9/includes/main/AppfulPlugin.php (copied) (copied from appful-app/trunk/includes/main/AppfulPlugin.php)
-
tags/3.1.9/includes/menu/Menu.php (copied) (copied from appful-app/trunk/includes/menu/Menu.php) (1 diff)
-
tags/3.1.9/includes/use_cases/AttachmentDeleteUseCase.php (copied) (copied from appful-app/trunk/includes/use_cases/AttachmentDeleteUseCase.php)
-
tags/3.1.9/includes/use_cases/AttachmentSaveUseCase.php (copied) (copied from appful-app/trunk/includes/use_cases/AttachmentSaveUseCase.php)
-
tags/3.1.9/includes/use_cases/AuthenticateUserUseCase.php (copied) (copied from appful-app/trunk/includes/use_cases/AuthenticateUserUseCase.php)
-
tags/3.1.9/includes/use_cases/CategoryDeleteUseCase.php (copied) (copied from appful-app/trunk/includes/use_cases/CategoryDeleteUseCase.php)
-
tags/3.1.9/includes/use_cases/CategorySaveUseCase.php (copied) (copied from appful-app/trunk/includes/use_cases/CategorySaveUseCase.php)
-
tags/3.1.9/includes/use_cases/ClearLogsUseCase.php (copied) (copied from appful-app/trunk/includes/use_cases/ClearLogsUseCase.php)
-
tags/3.1.9/includes/use_cases/CommentDeleteUseCase.php (copied) (copied from appful-app/trunk/includes/use_cases/CommentDeleteUseCase.php)
-
tags/3.1.9/includes/use_cases/CommentSaveUseCase.php (copied) (copied from appful-app/trunk/includes/use_cases/CommentSaveUseCase.php)
-
tags/3.1.9/includes/use_cases/CreateCommentUseCase.php (copied) (copied from appful-app/trunk/includes/use_cases/CreateCommentUseCase.php)
-
tags/3.1.9/includes/use_cases/DeleteSessionUseCase.php (copied) (copied from appful-app/trunk/includes/use_cases/DeleteSessionUseCase.php)
-
tags/3.1.9/includes/use_cases/GetLocalPostContentByIdUseCase.php (copied) (copied from appful-app/trunk/includes/use_cases/GetLocalPostContentByIdUseCase.php)
-
tags/3.1.9/includes/use_cases/GetPostContentsByIdUseCase.php (copied) (copied from appful-app/trunk/includes/use_cases/GetPostContentsByIdUseCase.php)
-
tags/3.1.9/includes/use_cases/GetRoleSyncDataUseCase.php (added)
-
tags/3.1.9/includes/use_cases/GetRolesByIdUseCase.php (added)
-
tags/3.1.9/includes/use_cases/IsLoggedInUseCase.php (copied) (copied from appful-app/trunk/includes/use_cases/IsLoggedInUseCase.php)
-
tags/3.1.9/includes/use_cases/LogoutUserUseCase.php (copied) (copied from appful-app/trunk/includes/use_cases/LogoutUserUseCase.php)
-
tags/3.1.9/includes/use_cases/PostDeleteUseCase.php (copied) (copied from appful-app/trunk/includes/use_cases/PostDeleteUseCase.php)
-
tags/3.1.9/includes/use_cases/PostSaveUseCase.php (copied) (copied from appful-app/trunk/includes/use_cases/PostSaveUseCase.php)
-
tags/3.1.9/includes/use_cases/PullLocalPostContentUseCase.php (copied) (copied from appful-app/trunk/includes/use_cases/PullLocalPostContentUseCase.php)
-
tags/3.1.9/includes/use_cases/RegisterBlogUseCase.php (copied) (copied from appful-app/trunk/includes/use_cases/RegisterBlogUseCase.php)
-
tags/3.1.9/includes/use_cases/SendAttachmentChunkSyncUseCase.php (copied) (copied from appful-app/trunk/includes/use_cases/SendAttachmentChunkSyncUseCase.php)
-
tags/3.1.9/includes/use_cases/SendCategoryChunkSyncUseCase.php (copied) (copied from appful-app/trunk/includes/use_cases/SendCategoryChunkSyncUseCase.php)
-
tags/3.1.9/includes/use_cases/SendCommentChunkSyncUseCase.php (copied) (copied from appful-app/trunk/includes/use_cases/SendCommentChunkSyncUseCase.php)
-
tags/3.1.9/includes/use_cases/SendPostChunkSyncUseCase.php (copied) (copied from appful-app/trunk/includes/use_cases/SendPostChunkSyncUseCase.php)
-
tags/3.1.9/includes/use_cases/SendRoleChunkSyncUseCase.php (added)
-
tags/3.1.9/includes/use_cases/SendTagChunkSyncUseCase.php (copied) (copied from appful-app/trunk/includes/use_cases/SendTagChunkSyncUseCase.php)
-
tags/3.1.9/includes/use_cases/SendUserChunkSyncUseCase.php (copied) (copied from appful-app/trunk/includes/use_cases/SendUserChunkSyncUseCase.php)
-
tags/3.1.9/includes/use_cases/SyncAllUseCase.php (copied) (copied from appful-app/trunk/includes/use_cases/SyncAllUseCase.php)
-
tags/3.1.9/includes/use_cases/SyncRolesUseCase.php (added)
-
tags/3.1.9/includes/use_cases/TagDeleteUseCase.php (copied) (copied from appful-app/trunk/includes/use_cases/TagDeleteUseCase.php)
-
tags/3.1.9/includes/use_cases/TagSaveUseCase.php (copied) (copied from appful-app/trunk/includes/use_cases/TagSaveUseCase.php)
-
tags/3.1.9/includes/use_cases/UseCaseManager.php (copied) (copied from appful-app/trunk/includes/use_cases/UseCaseManager.php) (3 diffs)
-
tags/3.1.9/includes/use_cases/UserDeleteUseCase.php (copied) (copied from appful-app/trunk/includes/use_cases/UserDeleteUseCase.php)
-
tags/3.1.9/includes/use_cases/UserSaveUseCase.php (copied) (copied from appful-app/trunk/includes/use_cases/UserSaveUseCase.php)
-
tags/3.1.9/includes/wp/WPBlogManager.php (copied) (copied from appful-app/trunk/includes/wp/WPBlogManager.php)
-
tags/3.1.9/includes/wp/WPCommentManager.php (copied) (copied from appful-app/trunk/includes/wp/WPCommentManager.php)
-
tags/3.1.9/includes/wp/WPOptionsManager.php (copied) (copied from appful-app/trunk/includes/wp/WPOptionsManager.php)
-
tags/3.1.9/includes/wp/WPPostManager.php (copied) (copied from appful-app/trunk/includes/wp/WPPostManager.php) (1 diff)
-
tags/3.1.9/includes/wp/WPRoleManager.php (added)
-
tags/3.1.9/includes/wp/WPUserManager.php (copied) (copied from appful-app/trunk/includes/wp/WPUserManager.php) (2 diffs)
-
tags/3.1.9/includes/wp/mapper/PostMapper.php (modified) (2 diffs)
-
tags/3.1.9/includes/wp/mapper/UserMapper.php (copied) (copied from appful-app/trunk/includes/wp/mapper/UserMapper.php) (1 diff)
-
tags/3.1.9/includes/wp/plugins/RoleHelper.php (added)
-
tags/3.1.9/lib/.gitignore (deleted)
-
tags/3.1.9/lib/vendor/autoload.php (copied) (copied from appful-app/trunk/lib/vendor/autoload.php)
-
tags/3.1.9/lib/vendor/composer/ClassLoader.php (copied) (copied from appful-app/trunk/lib/vendor/composer/ClassLoader.php)
-
tags/3.1.9/lib/vendor/composer/autoload_classmap.php (copied) (copied from appful-app/trunk/lib/vendor/composer/autoload_classmap.php) (10 diffs)
-
tags/3.1.9/lib/vendor/composer/autoload_psr4.php (copied) (copied from appful-app/trunk/lib/vendor/composer/autoload_psr4.php)
-
tags/3.1.9/lib/vendor/composer/autoload_real.php (copied) (copied from appful-app/trunk/lib/vendor/composer/autoload_real.php)
-
tags/3.1.9/lib/vendor/composer/autoload_static.php (copied) (copied from appful-app/trunk/lib/vendor/composer/autoload_static.php) (10 diffs)
-
tags/3.1.9/lib/vendor/composer/installed.php (copied) (copied from appful-app/trunk/lib/vendor/composer/installed.php) (2 diffs)
-
tags/3.1.9/readme.txt (copied) (copied from appful-app/trunk/readme.txt) (1 diff)
-
trunk/appful-app.php (modified) (1 diff)
-
trunk/includes/api/Endpoints.php (modified) (2 diffs)
-
trunk/includes/api/ReqHandler.php (modified) (3 diffs)
-
trunk/includes/api/dtos/PostDto.php (modified) (4 diffs)
-
trunk/includes/api/dtos/RoleDto.php (added)
-
trunk/includes/api/dtos/UserDto.php (modified) (2 diffs)
-
trunk/includes/api/dtos/UserRoleDto.php (added)
-
trunk/includes/api/handlers/GetRolesRequestHandler.php (added)
-
trunk/includes/api/handlers/RoleSyncRequestHandler.php (added)
-
trunk/includes/api/mapper/PostMapper.php (modified) (2 diffs)
-
trunk/includes/api/mapper/RoleMapper.php (added)
-
trunk/includes/api/mapper/UserMapper.php (modified) (2 diffs)
-
trunk/includes/api/mapper/UserRoleMapper.php (added)
-
trunk/includes/domain/Post.php (modified) (6 diffs)
-
trunk/includes/domain/Role.php (added)
-
trunk/includes/domain/User.php (modified) (4 diffs)
-
trunk/includes/domain/UserRole.php (added)
-
trunk/includes/helper/Constants.php (modified) (2 diffs)
-
trunk/includes/menu/Menu.php (modified) (1 diff)
-
trunk/includes/use_cases/GetRoleSyncDataUseCase.php (added)
-
trunk/includes/use_cases/GetRolesByIdUseCase.php (added)
-
trunk/includes/use_cases/SendRoleChunkSyncUseCase.php (added)
-
trunk/includes/use_cases/SyncRolesUseCase.php (added)
-
trunk/includes/use_cases/UseCaseManager.php (modified) (3 diffs)
-
trunk/includes/wp/WPPostManager.php (modified) (1 diff)
-
trunk/includes/wp/WPRoleManager.php (added)
-
trunk/includes/wp/WPUserManager.php (modified) (2 diffs)
-
trunk/includes/wp/mapper/PostMapper.php (modified) (2 diffs)
-
trunk/includes/wp/mapper/UserMapper.php (modified) (1 diff)
-
trunk/includes/wp/plugins/RoleHelper.php (added)
-
trunk/lib/vendor/composer/autoload_classmap.php (modified) (10 diffs)
-
trunk/lib/vendor/composer/autoload_static.php (modified) (10 diffs)
-
trunk/lib/vendor/composer/installed.php (modified) (2 diffs)
-
trunk/readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
appful-app/tags/3.1.9/appful-app.php
r2954441 r2962811 12 12 * Plugin URI: https://appful.io 13 13 * Description: Appful® is the number 1 plugin for turning your WordPress Content into a native, beautiful app on iOS & Android in under 5 minutes. 14 * Version: 3.1. 814 * Version: 3.1.9 15 15 * Requires at least: 5.8 16 16 * Requires PHP: 7.4 -
appful-app/tags/3.1.9/includes/api/Endpoints.php
r2920184 r2962811 13 13 public static string $SYNC_COMMENTS = "sync-comment"; 14 14 public static string $SYNC_TAGS = "sync-tag"; 15 public static string $SYNC_ROLES = "sync-role"; 15 16 public static string $SYNC_USERS = "sync-user"; 16 17 public static string $SYNC_ATTACHMENTS = "sync-attachment"; … … 25 26 public static string $GET_USERS = "get-user"; 26 27 public static string $GET_TAGS = "get-tag"; 28 public static string $GET_ROLES = "get-role"; 27 29 28 30 public static string $ASSET_LINKS = "android-asset-links"; -
appful-app/tags/3.1.9/includes/api/ReqHandler.php
r2954441 r2962811 16 16 use AppfulPlugin\Api\Handlers\GetPostContentsRequestHandler; 17 17 use AppfulPlugin\Api\Handlers\GetPostsRequestHandler; 18 use AppfulPlugin\Api\Handlers\GetRolesRequestHandler; 18 19 use AppfulPlugin\Api\Handlers\GetTagsRequestHandler; 19 20 use AppfulPlugin\Api\Handlers\GetUsersRequestHandler; … … 23 24 use AppfulPlugin\Api\Handlers\PullLocalPostContentRequestHandler; 24 25 use AppfulPlugin\Api\Handlers\RequestHandler; 26 use AppfulPlugin\Api\Handlers\RoleSyncRequestHandler; 25 27 use AppfulPlugin\Api\Handlers\SyncRequestHandler; 26 28 use AppfulPlugin\Api\Handlers\TagSyncRequestHandler; … … 57 59 new AuthenticateUserRequestHandler( $use_case_manager->get_authenticate_user_use_case() ), 58 60 new PullLocalPostContentRequestHandler( $use_case_manager->get_get_local_post_content_by_id_use_case() ), 59 new CreateCommentRequestHandler( $use_case_manager->create_comment_use_case() ), 61 new CreateCommentRequestHandler( $use_case_manager->create_comment_use_case() ), 62 new GetRolesRequestHandler( $use_case_manager->get_roles_by_id_use_case() ), 63 new RoleSyncRequestHandler( $use_case_manager->sync_roles_use_case() ), 60 64 ]; 61 65 } -
appful-app/tags/3.1.9/includes/api/dtos/PostDto.php
r2907312 r2962811 22 22 public bool $sticky = false; 23 23 public bool $send_push = false; 24 /** @var RoleDto[] */ 25 public array $roles = []; 24 26 25 27 /** … … 27 29 * @param TagDto[] $tags 28 30 * @param AttachmentDto[] $attachments 31 * @param RoleDto[] $roles 29 32 */ 30 33 public function __construct( … … 43 46 string $comment_status, 44 47 bool $sticky, 45 bool $send_push 48 bool $send_push, 49 array $roles 46 50 ) { 47 51 $this->id = $id; … … 60 64 $this->sticky = $sticky; 61 65 $this->send_push = $send_push; 66 $this->roles = $roles; 62 67 } 63 68 } -
appful-app/tags/3.1.9/includes/api/dtos/UserDto.php
r2907312 r2962811 9 9 public string $avatar = ""; 10 10 public string $display_name = ""; 11 /** @var UserRoleDto[] */ 12 public array $roles = []; 11 13 12 public function __construct( int $id, string $firstname, string $lastname, string $avatar, string $display_name ) { 14 /** 15 * @param UserRoleDto[] $roles 16 */ 17 public function __construct( int $id, string $firstname, string $lastname, string $avatar, string $display_name, array $roles ) { 13 18 $this->id = $id; 14 19 $this->firstname = $firstname; … … 16 21 $this->avatar = $avatar; 17 22 $this->display_name = $display_name; 23 $this->roles = $roles; 18 24 } 19 25 } -
appful-app/tags/3.1.9/includes/api/mapper/PostMapper.php
r2907312 r2962811 7 7 use AppfulPlugin\Domain\Category; 8 8 use AppfulPlugin\Domain\Post; 9 use AppfulPlugin\Domain\Role; 9 10 use AppfulPlugin\Domain\Tag; 10 11 use AppfulPlugin\Helper\DateParser; … … 58 59 $post->get_comment_status(), 59 60 $post->get_sticky(), 60 $post->get_send_push() 61 $post->get_send_push(), 62 array_map( 63 function ( Role $role ) { 64 return RoleMapper::to_dto( $role ); 65 }, 66 $post->get_roles() 67 ), 61 68 ); 62 69 } -
appful-app/tags/3.1.9/includes/api/mapper/UserMapper.php
r2907312 r2962811 5 5 use AppfulPlugin\Api\Dtos\UserDto; 6 6 use AppfulPlugin\Domain\User; 7 use AppfulPlugin\Domain\UserRole; 7 8 8 9 class UserMapper { … … 13 14 $author->get_lastname(), 14 15 $author->get_avatar(), 15 $author->get_display_name() 16 $author->get_display_name(), 17 array_map( 18 function ( UserRole $role ) { 19 return UserRoleMapper::to_dto( $role ); 20 }, 21 $author->get_roles() 22 ), 16 23 ); 17 24 } -
appful-app/tags/3.1.9/includes/domain/Post.php
r2907312 r2962811 24 24 private bool $sticky = false; 25 25 private bool $send_push = true; 26 /** @var Role[] */ 27 private array $roles = []; 26 28 27 29 public function __construct() { … … 34 36 * @param Tag[] $tags 35 37 * @param Attachment[] $attachments 38 * @param Role[] $roles 36 39 */ 37 40 public static function post( … … 50 53 string $comment_status = "", 51 54 bool $sticky = false, 52 bool $send_push = true 55 bool $send_push = true, 56 array $roles = [] 53 57 ): Post { 54 58 return ( new Post() ) … … 67 71 ->comment_status( $comment_status ) 68 72 ->sticky( $sticky ) 69 ->send_push( $send_push ); 73 ->send_push( $send_push ) 74 ->roles( $roles ); 70 75 } 71 76 … … 119 124 120 125 /** 126 * @param Role[] $roles 127 */ 128 public function roles( array $roles ): Post { 129 $this->roles = $roles; 130 131 return $this; 132 } 133 134 /** 121 135 * @param Category[] $categories 122 136 */ … … 167 181 168 182 return $this; 183 } 184 185 /** 186 * @return Role[] 187 */ 188 public function get_roles(): array { 189 return $this->roles; 169 190 } 170 191 -
appful-app/tags/3.1.9/includes/domain/User.php
r2907312 r2962811 9 9 private string $display_name = ""; 10 10 private string $avatar = ""; 11 /** @var UserRole[] */ 12 private array $roles = []; 11 13 14 /** 15 * @param UserRole[] $roles 16 */ 12 17 public static function user( 13 18 int $id = - 1, … … 15 20 string $lastname = "", 16 21 string $avatar = "", 17 string $display_name = "" 22 string $display_name = "", 23 array $roles = [] 18 24 ): User { 19 return ( new User() )->id( $id )->firstname( $firstname )->lastname( $lastname )->avatar( $avatar )->display_name( $display_name ); 25 return ( new User() ) 26 ->id( $id ) 27 ->firstname( $firstname ) 28 ->lastname( $lastname ) 29 ->avatar( $avatar ) 30 ->display_name( $display_name ) 31 ->roles( $roles ); 20 32 } 21 33 … … 50 62 } 51 63 64 /** 65 * @param UserRole[] $roles 66 */ 67 public function roles( array $roles ): User { 68 $this->roles = $roles; 69 70 return $this; 71 } 72 52 73 public function get_firstname(): string { 53 74 return $this->firstname; … … 69 90 return $this->avatar; 70 91 } 92 93 /** 94 * @return UserRole[] 95 */ 96 public function get_roles(): array { 97 return $this->roles; 98 } 71 99 } -
appful-app/tags/3.1.9/includes/helper/Constants.php
r2936340 r2962811 33 33 public static string $ATTACHMENT_PATH = "/attachments"; 34 34 public static string $TAXONOMY_PATH = "/taxonomies"; 35 public static string $ROLE_PATH = "/roles"; 35 36 36 37 public static string $API_VERSION_1 = "/v1"; … … 42 43 public static int $CATEGORY_SYNC_CHUNK_SIZE = 50; 43 44 public static int $TAG_SYNC_CHUNK_SIZE = 50; 45 public static int $ROLE_SYNC_CHUNK_SIZE = 50; 44 46 } -
appful-app/tags/3.1.9/includes/menu/Menu.php
r2936340 r2962811 84 84 "active" => $this->has_plugin( "appful-wpml/appful-wpml.php" ), 85 85 "link" => "https://appful.io" 86 ], 87 [ 88 "name" => "Woocomerce", 89 "active" => $this->has_plugin( "appful-woocomerce/appful-woocomerce.php" ), 90 "link" => "https://appful.io" 86 91 ] 87 92 ] -
appful-app/tags/3.1.9/includes/use_cases/UseCaseManager.php
r2954441 r2962811 57 57 private PullLocalPostContentUseCase $pull_local_post_content_use_case; 58 58 private GetLocalPostContentByIdUseCase $get_local_post_content_by_id_use_case; 59 private CreateCommentUseCase $create_comment_use_case; 59 private CreateCommentUseCase $create_comment_use_case; 60 private GetRolesByIdUseCase $get_roles_by_id_use_case; 61 private SyncRolesUseCase $sync_roles_use_case; 62 private GetRoleSyncDataUseCase $get_role_sync_data_use_case; 63 private SendRoleChunkSyncUseCase $send_role_chunk_sync_use_case; 60 64 61 65 public function __construct( BackendClient $backend_client, SelfClient $self_client ) { … … 110 114 $this->get_local_post_content_by_id_use_case = new GetLocalPostContentByIdUseCase(); 111 115 $this->get_post_contents_by_id_use_case = new GetPostContentsByIdUseCase( $this->pull_local_post_content_use_case ); 112 $this->create_comment_use_case = new CreateCommentUseCase(); 116 $this->create_comment_use_case = new CreateCommentUseCase(); 117 $this->get_roles_by_id_use_case = new GetRolesByIdUseCase(); 118 $this->get_role_sync_data_use_case = new GetRoleSyncDataUseCase(); 119 $this->send_role_chunk_sync_use_case = new SendRoleChunkSyncUseCase( $backend_client ); 120 $this->sync_roles_use_case = new SyncRolesUseCase( $this->get_role_sync_data_use_case, $this->send_role_chunk_sync_use_case ); 113 121 } 114 122 … … 313 321 } 314 322 315 public function create_comment_use_case(): CreateCommentUseCase { 316 return $this->create_comment_use_case; 317 } 323 public function create_comment_use_case(): CreateCommentUseCase { 324 return $this->create_comment_use_case; 325 } 326 327 public function get_roles_by_id_use_case(): GetRolesByIdUseCase { 328 return $this->get_roles_by_id_use_case; 329 } 330 331 public function get_role_sync_data_use_case(): GetRoleSyncDataUseCase { 332 return $this->get_role_sync_data_use_case; 333 } 334 335 public function send_role_chunk_sync_use_case(): SendRoleChunkSyncUseCase { 336 return $this->send_role_chunk_sync_use_case; 337 } 338 339 public function sync_roles_use_case(): SyncRolesUseCase { 340 return $this->sync_roles_use_case; 341 } 318 342 } -
appful-app/tags/3.1.9/includes/wp/WPPostManager.php
r2920184 r2962811 5 5 use AppfulPlugin\Domain\Post; 6 6 use AppfulPlugin\Domain\PostContent; 7 use AppfulPlugin\Domain\Role; 8 use AppfulPlugin\Domain\UserRole; 7 9 use AppfulPlugin\Helper\Constants; 8 10 use AppfulPlugin\Wp\Mapper\PostMapper; 9 11 use AppfulPlugin\Wp\Plugins\LanguageHelper; 12 use AppfulPlugin\Wp\Plugins\RoleHelper; 10 13 use WP_Post; 11 14 -
appful-app/tags/3.1.9/includes/wp/WPUserManager.php
r2920030 r2962811 4 4 5 5 use AppfulPlugin\Domain\User; 6 use AppfulPlugin\Domain\UserRole; 6 7 use AppfulPlugin\Wp\Mapper\UserMapper; 8 use AppfulPlugin\Wp\Plugins\RoleHelper; 7 9 use WP_User; 8 10 … … 16 18 17 19 return $avatar_url; 20 } 21 22 /** @return UserRole[] */ 23 public static function get_user_roles( int $user_id ): array { 24 return RoleHelper::get_user_roles( $user_id ); 18 25 } 19 26 -
appful-app/tags/3.1.9/includes/wp/mapper/PostMapper.php
r2907312 r2962811 6 6 use AppfulPlugin\Helper\DateParser; 7 7 use AppfulPlugin\Wp\WPAttachmentManager; 8 use AppfulPlugin\Wp\WPAuthorManager;9 8 use AppfulPlugin\Wp\WPCategoryManager; 10 9 use AppfulPlugin\Wp\WPPostManager; 10 use AppfulPlugin\Wp\WPRoleManager; 11 11 use AppfulPlugin\Wp\WPTagManager; 12 12 use AppfulPlugin\Wp\WPUserManager; … … 32 32 ->comment_status( $post->comment_status ) 33 33 ->sticky( WPPostManager::is_post_sticky( $post->ID ) ) 34 ->send_push( WPPostManager::should_send_push( $post->ID ) ); 34 ->send_push( WPPostManager::should_send_push( $post->ID ) ) 35 ->roles( WPRoleManager::get_roles_for_post_id( $post->ID ) ); 35 36 } 36 37 } -
appful-app/tags/3.1.9/includes/wp/mapper/UserMapper.php
r2927004 r2962811 30 30 ->lastname( $last_name ) 31 31 ->display_name( $display_name ) 32 ->avatar( WPUserManager::get_user_avatar( $user->ID ) ); 32 ->avatar( WPUserManager::get_user_avatar( $user->ID ) ) 33 ->roles( WPUserManager::get_user_roles( $user->ID ) ); 33 34 } 34 35 } -
appful-app/tags/3.1.9/lib/vendor/composer/autoload_classmap.php
r2954441 r2962811 18 18 'AppfulPlugin\\Api\\Dtos\\PostContentDto' => $baseDir . '/../includes/api/dtos/PostContentDto.php', 19 19 'AppfulPlugin\\Api\\Dtos\\PostDto' => $baseDir . '/../includes/api/dtos/PostDto.php', 20 'AppfulPlugin\\Api\\Dtos\\RoleDto' => $baseDir . '/../includes/api/dtos/RoleDto.php', 20 21 'AppfulPlugin\\Api\\Dtos\\SyncChunkDto' => $baseDir . '/../includes/api/dtos/SyncChunkDto.php', 21 22 'AppfulPlugin\\Api\\Dtos\\SyncItemDto' => $baseDir . '/../includes/api/dtos/SyncItemDto.php', 22 23 'AppfulPlugin\\Api\\Dtos\\TagDto' => $baseDir . '/../includes/api/dtos/TagDto.php', 23 24 'AppfulPlugin\\Api\\Dtos\\UserDto' => $baseDir . '/../includes/api/dtos/UserDto.php', 25 'AppfulPlugin\\Api\\Dtos\\UserRoleDto' => $baseDir . '/../includes/api/dtos/UserRoleDto.php', 24 26 'AppfulPlugin\\Api\\Endpoints' => $baseDir . '/../includes/api/Endpoints.php', 25 27 'AppfulPlugin\\Api\\Handlers\\AndroidAssetLinkRequestHandler' => $baseDir . '/../includes/api/handlers/AndroidAssetLinkRequestHandler.php', … … 36 38 'AppfulPlugin\\Api\\Handlers\\GetPostContentsRequestHandler' => $baseDir . '/../includes/api/handlers/GetPostContentsRequestHandler.php', 37 39 'AppfulPlugin\\Api\\Handlers\\GetPostsRequestHandler' => $baseDir . '/../includes/api/handlers/GetPostsRequestHandler.php', 40 'AppfulPlugin\\Api\\Handlers\\GetRolesRequestHandler' => $baseDir . '/../includes/api/handlers/GetRolesRequestHandler.php', 38 41 'AppfulPlugin\\Api\\Handlers\\GetTagsRequestHandler' => $baseDir . '/../includes/api/handlers/GetTagsRequestHandler.php', 39 42 'AppfulPlugin\\Api\\Handlers\\GetUsersRequestHandler' => $baseDir . '/../includes/api/handlers/GetUsersRequestHandler.php', … … 43 46 'AppfulPlugin\\Api\\Handlers\\PullLocalPostContentRequestHandler' => $baseDir . '/../includes/api/handlers/PullLocalPostContentRequestHandler.php', 44 47 'AppfulPlugin\\Api\\Handlers\\RequestHandler' => $baseDir . '/../includes/api/handlers/RequestHandler.php', 48 'AppfulPlugin\\Api\\Handlers\\RoleSyncRequestHandler' => $baseDir . '/../includes/api/handlers/RoleSyncRequestHandler.php', 45 49 'AppfulPlugin\\Api\\Handlers\\SyncRequestHandler' => $baseDir . '/../includes/api/handlers/SyncRequestHandler.php', 46 50 'AppfulPlugin\\Api\\Handlers\\TagSyncRequestHandler' => $baseDir . '/../includes/api/handlers/TagSyncRequestHandler.php', … … 53 57 'AppfulPlugin\\Api\\Mapper\\PostContentMapper' => $baseDir . '/../includes/api/mapper/PostContentMapper.php', 54 58 'AppfulPlugin\\Api\\Mapper\\PostMapper' => $baseDir . '/../includes/api/mapper/PostMapper.php', 59 'AppfulPlugin\\Api\\Mapper\\RoleMapper' => $baseDir . '/../includes/api/mapper/RoleMapper.php', 55 60 'AppfulPlugin\\Api\\Mapper\\SyncChunkMapper' => $baseDir . '/../includes/api/mapper/SyncChunkMapper.php', 56 61 'AppfulPlugin\\Api\\Mapper\\SyncItemMapper' => $baseDir . '/../includes/api/mapper/SyncItemMapper.php', … … 74 79 'AppfulPlugin\\Domain\\Post' => $baseDir . '/../includes/domain/Post.php', 75 80 'AppfulPlugin\\Domain\\PostContent' => $baseDir . '/../includes/domain/PostContent.php', 81 'AppfulPlugin\\Domain\\Role' => $baseDir . '/../includes/domain/Role.php', 76 82 'AppfulPlugin\\Domain\\SyncChunk' => $baseDir . '/../includes/domain/SyncChunk.php', 77 83 'AppfulPlugin\\Domain\\SyncItem' => $baseDir . '/../includes/domain/SyncItem.php', 78 84 'AppfulPlugin\\Domain\\Tag' => $baseDir . '/../includes/domain/Tag.php', 79 85 'AppfulPlugin\\Domain\\User' => $baseDir . '/../includes/domain/User.php', 86 'AppfulPlugin\\Domain\\UserRole' => $baseDir . '/../includes/domain/UserRole.php', 80 87 'AppfulPlugin\\Helper\\AssetLoader' => $baseDir . '/../includes/helper/AssetLoader.php', 81 88 'AppfulPlugin\\Helper\\ClientTokenManager' => $baseDir . '/../includes/helper/ClientTokenManager.php', … … 121 128 'AppfulPlugin\\UseCases\\GetPostSyncDataUseCase' => $baseDir . '/../includes/use_cases/GetPostSyncDataUseCase.php', 122 129 'AppfulPlugin\\UseCases\\GetPostsByIdUseCase' => $baseDir . '/../includes/use_cases/GetPostsByIdUseCase.php', 130 'AppfulPlugin\\UseCases\\GetRoleSyncDataUseCase' => $baseDir . '/../includes/use_cases/GetRoleSyncDataUseCase.php', 131 'AppfulPlugin\\UseCases\\GetRolesByIdUseCase' => $baseDir . '/../includes/use_cases/GetRolesByIdUseCase.php', 123 132 'AppfulPlugin\\UseCases\\GetTagSyncDataUseCase' => $baseDir . '/../includes/use_cases/GetTagSyncDataUseCase.php', 124 133 'AppfulPlugin\\UseCases\\GetTagsByIdUseCase' => $baseDir . '/../includes/use_cases/GetTagsByIdUseCase.php', … … 135 144 'AppfulPlugin\\UseCases\\SendCommentChunkSyncUseCase' => $baseDir . '/../includes/use_cases/SendCommentChunkSyncUseCase.php', 136 145 'AppfulPlugin\\UseCases\\SendPostChunkSyncUseCase' => $baseDir . '/../includes/use_cases/SendPostChunkSyncUseCase.php', 146 'AppfulPlugin\\UseCases\\SendRoleChunkSyncUseCase' => $baseDir . '/../includes/use_cases/SendRoleChunkSyncUseCase.php', 137 147 'AppfulPlugin\\UseCases\\SendTagChunkSyncUseCase' => $baseDir . '/../includes/use_cases/SendTagChunkSyncUseCase.php', 138 148 'AppfulPlugin\\UseCases\\SendUserChunkSyncUseCase' => $baseDir . '/../includes/use_cases/SendUserChunkSyncUseCase.php', … … 142 152 'AppfulPlugin\\UseCases\\SyncCommentsUseCase' => $baseDir . '/../includes/use_cases/SyncCommentsUseCase.php', 143 153 'AppfulPlugin\\UseCases\\SyncPostsUseCase' => $baseDir . '/../includes/use_cases/SyncPostsUseCase.php', 154 'AppfulPlugin\\UseCases\\SyncRolesUseCase' => $baseDir . '/../includes/use_cases/SyncRolesUseCase.php', 144 155 'AppfulPlugin\\UseCases\\SyncTagsUseCase' => $baseDir . '/../includes/use_cases/SyncTagsUseCase.php', 145 156 'AppfulPlugin\\UseCases\\SyncUsersUseCase' => $baseDir . '/../includes/use_cases/SyncUsersUseCase.php', … … 156 167 'AppfulPlugin\\Wp\\Mapper\\UserMapper' => $baseDir . '/../includes/wp/mapper/UserMapper.php', 157 168 'AppfulPlugin\\Wp\\Plugins\\LanguageHelper' => $baseDir . '/../includes/wp/plugins/LanguageHelper.php', 169 'AppfulPlugin\\Wp\\Plugins\\RoleHelper' => $baseDir . '/../includes/wp/plugins/RoleHelper.php', 158 170 'AppfulPlugin\\Wp\\WPAttachmentManager' => $baseDir . '/../includes/wp/WPAttachmentManager.php', 159 171 'AppfulPlugin\\Wp\\WPBlogManager' => $baseDir . '/../includes/wp/WPBlogManager.php', … … 162 174 'AppfulPlugin\\Wp\\WPOptionsManager' => $baseDir . '/../includes/wp/WPOptionsManager.php', 163 175 'AppfulPlugin\\Wp\\WPPostManager' => $baseDir . '/../includes/wp/WPPostManager.php', 176 'AppfulPlugin\\Wp\\WPRoleManager' => $baseDir . '/../includes/wp/WPRoleManager.php', 164 177 'AppfulPlugin\\Wp\\WPTagManager' => $baseDir . '/../includes/wp/WPTagManager.php', 165 178 'AppfulPlugin\\Wp\\WPUserManager' => $baseDir . '/../includes/wp/WPUserManager.php', -
appful-app/tags/3.1.9/lib/vendor/composer/autoload_static.php
r2954441 r2962811 185 185 'AppfulPlugin\\Api\\Dtos\\PostContentDto' => __DIR__ . '/../..' . '/../includes/api/dtos/PostContentDto.php', 186 186 'AppfulPlugin\\Api\\Dtos\\PostDto' => __DIR__ . '/../..' . '/../includes/api/dtos/PostDto.php', 187 'AppfulPlugin\\Api\\Dtos\\RoleDto' => __DIR__ . '/../..' . '/../includes/api/dtos/RoleDto.php', 187 188 'AppfulPlugin\\Api\\Dtos\\SyncChunkDto' => __DIR__ . '/../..' . '/../includes/api/dtos/SyncChunkDto.php', 188 189 'AppfulPlugin\\Api\\Dtos\\SyncItemDto' => __DIR__ . '/../..' . '/../includes/api/dtos/SyncItemDto.php', 189 190 'AppfulPlugin\\Api\\Dtos\\TagDto' => __DIR__ . '/../..' . '/../includes/api/dtos/TagDto.php', 190 191 'AppfulPlugin\\Api\\Dtos\\UserDto' => __DIR__ . '/../..' . '/../includes/api/dtos/UserDto.php', 192 'AppfulPlugin\\Api\\Dtos\\UserRoleDto' => __DIR__ . '/../..' . '/../includes/api/dtos/UserRoleDto.php', 191 193 'AppfulPlugin\\Api\\Endpoints' => __DIR__ . '/../..' . '/../includes/api/Endpoints.php', 192 194 'AppfulPlugin\\Api\\Handlers\\AndroidAssetLinkRequestHandler' => __DIR__ . '/../..' . '/../includes/api/handlers/AndroidAssetLinkRequestHandler.php', … … 203 205 'AppfulPlugin\\Api\\Handlers\\GetPostContentsRequestHandler' => __DIR__ . '/../..' . '/../includes/api/handlers/GetPostContentsRequestHandler.php', 204 206 'AppfulPlugin\\Api\\Handlers\\GetPostsRequestHandler' => __DIR__ . '/../..' . '/../includes/api/handlers/GetPostsRequestHandler.php', 207 'AppfulPlugin\\Api\\Handlers\\GetRolesRequestHandler' => __DIR__ . '/../..' . '/../includes/api/handlers/GetRolesRequestHandler.php', 205 208 'AppfulPlugin\\Api\\Handlers\\GetTagsRequestHandler' => __DIR__ . '/../..' . '/../includes/api/handlers/GetTagsRequestHandler.php', 206 209 'AppfulPlugin\\Api\\Handlers\\GetUsersRequestHandler' => __DIR__ . '/../..' . '/../includes/api/handlers/GetUsersRequestHandler.php', … … 210 213 'AppfulPlugin\\Api\\Handlers\\PullLocalPostContentRequestHandler' => __DIR__ . '/../..' . '/../includes/api/handlers/PullLocalPostContentRequestHandler.php', 211 214 'AppfulPlugin\\Api\\Handlers\\RequestHandler' => __DIR__ . '/../..' . '/../includes/api/handlers/RequestHandler.php', 215 'AppfulPlugin\\Api\\Handlers\\RoleSyncRequestHandler' => __DIR__ . '/../..' . '/../includes/api/handlers/RoleSyncRequestHandler.php', 212 216 'AppfulPlugin\\Api\\Handlers\\SyncRequestHandler' => __DIR__ . '/../..' . '/../includes/api/handlers/SyncRequestHandler.php', 213 217 'AppfulPlugin\\Api\\Handlers\\TagSyncRequestHandler' => __DIR__ . '/../..' . '/../includes/api/handlers/TagSyncRequestHandler.php', … … 220 224 'AppfulPlugin\\Api\\Mapper\\PostContentMapper' => __DIR__ . '/../..' . '/../includes/api/mapper/PostContentMapper.php', 221 225 'AppfulPlugin\\Api\\Mapper\\PostMapper' => __DIR__ . '/../..' . '/../includes/api/mapper/PostMapper.php', 226 'AppfulPlugin\\Api\\Mapper\\RoleMapper' => __DIR__ . '/../..' . '/../includes/api/mapper/RoleMapper.php', 222 227 'AppfulPlugin\\Api\\Mapper\\SyncChunkMapper' => __DIR__ . '/../..' . '/../includes/api/mapper/SyncChunkMapper.php', 223 228 'AppfulPlugin\\Api\\Mapper\\SyncItemMapper' => __DIR__ . '/../..' . '/../includes/api/mapper/SyncItemMapper.php', … … 241 246 'AppfulPlugin\\Domain\\Post' => __DIR__ . '/../..' . '/../includes/domain/Post.php', 242 247 'AppfulPlugin\\Domain\\PostContent' => __DIR__ . '/../..' . '/../includes/domain/PostContent.php', 248 'AppfulPlugin\\Domain\\Role' => __DIR__ . '/../..' . '/../includes/domain/Role.php', 243 249 'AppfulPlugin\\Domain\\SyncChunk' => __DIR__ . '/../..' . '/../includes/domain/SyncChunk.php', 244 250 'AppfulPlugin\\Domain\\SyncItem' => __DIR__ . '/../..' . '/../includes/domain/SyncItem.php', 245 251 'AppfulPlugin\\Domain\\Tag' => __DIR__ . '/../..' . '/../includes/domain/Tag.php', 246 252 'AppfulPlugin\\Domain\\User' => __DIR__ . '/../..' . '/../includes/domain/User.php', 253 'AppfulPlugin\\Domain\\UserRole' => __DIR__ . '/../..' . '/../includes/domain/UserRole.php', 247 254 'AppfulPlugin\\Helper\\AssetLoader' => __DIR__ . '/../..' . '/../includes/helper/AssetLoader.php', 248 255 'AppfulPlugin\\Helper\\ClientTokenManager' => __DIR__ . '/../..' . '/../includes/helper/ClientTokenManager.php', … … 288 295 'AppfulPlugin\\UseCases\\GetPostSyncDataUseCase' => __DIR__ . '/../..' . '/../includes/use_cases/GetPostSyncDataUseCase.php', 289 296 'AppfulPlugin\\UseCases\\GetPostsByIdUseCase' => __DIR__ . '/../..' . '/../includes/use_cases/GetPostsByIdUseCase.php', 297 'AppfulPlugin\\UseCases\\GetRoleSyncDataUseCase' => __DIR__ . '/../..' . '/../includes/use_cases/GetRoleSyncDataUseCase.php', 298 'AppfulPlugin\\UseCases\\GetRolesByIdUseCase' => __DIR__ . '/../..' . '/../includes/use_cases/GetRolesByIdUseCase.php', 290 299 'AppfulPlugin\\UseCases\\GetTagSyncDataUseCase' => __DIR__ . '/../..' . '/../includes/use_cases/GetTagSyncDataUseCase.php', 291 300 'AppfulPlugin\\UseCases\\GetTagsByIdUseCase' => __DIR__ . '/../..' . '/../includes/use_cases/GetTagsByIdUseCase.php', … … 302 311 'AppfulPlugin\\UseCases\\SendCommentChunkSyncUseCase' => __DIR__ . '/../..' . '/../includes/use_cases/SendCommentChunkSyncUseCase.php', 303 312 'AppfulPlugin\\UseCases\\SendPostChunkSyncUseCase' => __DIR__ . '/../..' . '/../includes/use_cases/SendPostChunkSyncUseCase.php', 313 'AppfulPlugin\\UseCases\\SendRoleChunkSyncUseCase' => __DIR__ . '/../..' . '/../includes/use_cases/SendRoleChunkSyncUseCase.php', 304 314 'AppfulPlugin\\UseCases\\SendTagChunkSyncUseCase' => __DIR__ . '/../..' . '/../includes/use_cases/SendTagChunkSyncUseCase.php', 305 315 'AppfulPlugin\\UseCases\\SendUserChunkSyncUseCase' => __DIR__ . '/../..' . '/../includes/use_cases/SendUserChunkSyncUseCase.php', … … 309 319 'AppfulPlugin\\UseCases\\SyncCommentsUseCase' => __DIR__ . '/../..' . '/../includes/use_cases/SyncCommentsUseCase.php', 310 320 'AppfulPlugin\\UseCases\\SyncPostsUseCase' => __DIR__ . '/../..' . '/../includes/use_cases/SyncPostsUseCase.php', 321 'AppfulPlugin\\UseCases\\SyncRolesUseCase' => __DIR__ . '/../..' . '/../includes/use_cases/SyncRolesUseCase.php', 311 322 'AppfulPlugin\\UseCases\\SyncTagsUseCase' => __DIR__ . '/../..' . '/../includes/use_cases/SyncTagsUseCase.php', 312 323 'AppfulPlugin\\UseCases\\SyncUsersUseCase' => __DIR__ . '/../..' . '/../includes/use_cases/SyncUsersUseCase.php', … … 323 334 'AppfulPlugin\\Wp\\Mapper\\UserMapper' => __DIR__ . '/../..' . '/../includes/wp/mapper/UserMapper.php', 324 335 'AppfulPlugin\\Wp\\Plugins\\LanguageHelper' => __DIR__ . '/../..' . '/../includes/wp/plugins/LanguageHelper.php', 336 'AppfulPlugin\\Wp\\Plugins\\RoleHelper' => __DIR__ . '/../..' . '/../includes/wp/plugins/RoleHelper.php', 325 337 'AppfulPlugin\\Wp\\WPAttachmentManager' => __DIR__ . '/../..' . '/../includes/wp/WPAttachmentManager.php', 326 338 'AppfulPlugin\\Wp\\WPBlogManager' => __DIR__ . '/../..' . '/../includes/wp/WPBlogManager.php', … … 329 341 'AppfulPlugin\\Wp\\WPOptionsManager' => __DIR__ . '/../..' . '/../includes/wp/WPOptionsManager.php', 330 342 'AppfulPlugin\\Wp\\WPPostManager' => __DIR__ . '/../..' . '/../includes/wp/WPPostManager.php', 343 'AppfulPlugin\\Wp\\WPRoleManager' => __DIR__ . '/../..' . '/../includes/wp/WPRoleManager.php', 331 344 'AppfulPlugin\\Wp\\WPTagManager' => __DIR__ . '/../..' . '/../includes/wp/WPTagManager.php', 332 345 'AppfulPlugin\\Wp\\WPUserManager' => __DIR__ . '/../..' . '/../includes/wp/WPUserManager.php', -
appful-app/tags/3.1.9/lib/vendor/composer/installed.php
r2954441 r2962811 2 2 'root' => array( 3 3 'name' => '__root__', 4 'pretty_version' => ' dev-main',5 'version' => ' dev-main',6 'reference' => '4d8e7b6e341ee0d4e0bee5c8146a5f473c37c66b',4 'pretty_version' => '1.0.0+no-version-set', 5 'version' => '1.0.0.0', 6 'reference' => NULL, 7 7 'type' => 'library', 8 8 'install_path' => __DIR__ . '/../../', … … 12 12 'versions' => array( 13 13 '__root__' => array( 14 'pretty_version' => ' dev-main',15 'version' => ' dev-main',16 'reference' => '4d8e7b6e341ee0d4e0bee5c8146a5f473c37c66b',14 'pretty_version' => '1.0.0+no-version-set', 15 'version' => '1.0.0.0', 16 'reference' => NULL, 17 17 'type' => 'library', 18 18 'install_path' => __DIR__ . '/../../', -
appful-app/tags/3.1.9/readme.txt
r2954441 r2962811 6 6 Tested up to: 6.2 7 7 Requires PHP: 7.4 8 Stable tag: 3.1. 88 Stable tag: 3.1.9 9 9 License: GPLv2 or later 10 10 License URI: http://www.gnu.org/licenses/gpl-2.0.html -
appful-app/trunk/appful-app.php
r2954441 r2962811 12 12 * Plugin URI: https://appful.io 13 13 * Description: Appful® is the number 1 plugin for turning your WordPress Content into a native, beautiful app on iOS & Android in under 5 minutes. 14 * Version: 3.1. 814 * Version: 3.1.9 15 15 * Requires at least: 5.8 16 16 * Requires PHP: 7.4 -
appful-app/trunk/includes/api/Endpoints.php
r2920184 r2962811 13 13 public static string $SYNC_COMMENTS = "sync-comment"; 14 14 public static string $SYNC_TAGS = "sync-tag"; 15 public static string $SYNC_ROLES = "sync-role"; 15 16 public static string $SYNC_USERS = "sync-user"; 16 17 public static string $SYNC_ATTACHMENTS = "sync-attachment"; … … 25 26 public static string $GET_USERS = "get-user"; 26 27 public static string $GET_TAGS = "get-tag"; 28 public static string $GET_ROLES = "get-role"; 27 29 28 30 public static string $ASSET_LINKS = "android-asset-links"; -
appful-app/trunk/includes/api/ReqHandler.php
r2954441 r2962811 16 16 use AppfulPlugin\Api\Handlers\GetPostContentsRequestHandler; 17 17 use AppfulPlugin\Api\Handlers\GetPostsRequestHandler; 18 use AppfulPlugin\Api\Handlers\GetRolesRequestHandler; 18 19 use AppfulPlugin\Api\Handlers\GetTagsRequestHandler; 19 20 use AppfulPlugin\Api\Handlers\GetUsersRequestHandler; … … 23 24 use AppfulPlugin\Api\Handlers\PullLocalPostContentRequestHandler; 24 25 use AppfulPlugin\Api\Handlers\RequestHandler; 26 use AppfulPlugin\Api\Handlers\RoleSyncRequestHandler; 25 27 use AppfulPlugin\Api\Handlers\SyncRequestHandler; 26 28 use AppfulPlugin\Api\Handlers\TagSyncRequestHandler; … … 57 59 new AuthenticateUserRequestHandler( $use_case_manager->get_authenticate_user_use_case() ), 58 60 new PullLocalPostContentRequestHandler( $use_case_manager->get_get_local_post_content_by_id_use_case() ), 59 new CreateCommentRequestHandler( $use_case_manager->create_comment_use_case() ), 61 new CreateCommentRequestHandler( $use_case_manager->create_comment_use_case() ), 62 new GetRolesRequestHandler( $use_case_manager->get_roles_by_id_use_case() ), 63 new RoleSyncRequestHandler( $use_case_manager->sync_roles_use_case() ), 60 64 ]; 61 65 } -
appful-app/trunk/includes/api/dtos/PostDto.php
r2907312 r2962811 22 22 public bool $sticky = false; 23 23 public bool $send_push = false; 24 /** @var RoleDto[] */ 25 public array $roles = []; 24 26 25 27 /** … … 27 29 * @param TagDto[] $tags 28 30 * @param AttachmentDto[] $attachments 31 * @param RoleDto[] $roles 29 32 */ 30 33 public function __construct( … … 43 46 string $comment_status, 44 47 bool $sticky, 45 bool $send_push 48 bool $send_push, 49 array $roles 46 50 ) { 47 51 $this->id = $id; … … 60 64 $this->sticky = $sticky; 61 65 $this->send_push = $send_push; 66 $this->roles = $roles; 62 67 } 63 68 } -
appful-app/trunk/includes/api/dtos/UserDto.php
r2907312 r2962811 9 9 public string $avatar = ""; 10 10 public string $display_name = ""; 11 /** @var UserRoleDto[] */ 12 public array $roles = []; 11 13 12 public function __construct( int $id, string $firstname, string $lastname, string $avatar, string $display_name ) { 14 /** 15 * @param UserRoleDto[] $roles 16 */ 17 public function __construct( int $id, string $firstname, string $lastname, string $avatar, string $display_name, array $roles ) { 13 18 $this->id = $id; 14 19 $this->firstname = $firstname; … … 16 21 $this->avatar = $avatar; 17 22 $this->display_name = $display_name; 23 $this->roles = $roles; 18 24 } 19 25 } -
appful-app/trunk/includes/api/mapper/PostMapper.php
r2907312 r2962811 7 7 use AppfulPlugin\Domain\Category; 8 8 use AppfulPlugin\Domain\Post; 9 use AppfulPlugin\Domain\Role; 9 10 use AppfulPlugin\Domain\Tag; 10 11 use AppfulPlugin\Helper\DateParser; … … 58 59 $post->get_comment_status(), 59 60 $post->get_sticky(), 60 $post->get_send_push() 61 $post->get_send_push(), 62 array_map( 63 function ( Role $role ) { 64 return RoleMapper::to_dto( $role ); 65 }, 66 $post->get_roles() 67 ), 61 68 ); 62 69 } -
appful-app/trunk/includes/api/mapper/UserMapper.php
r2907312 r2962811 5 5 use AppfulPlugin\Api\Dtos\UserDto; 6 6 use AppfulPlugin\Domain\User; 7 use AppfulPlugin\Domain\UserRole; 7 8 8 9 class UserMapper { … … 13 14 $author->get_lastname(), 14 15 $author->get_avatar(), 15 $author->get_display_name() 16 $author->get_display_name(), 17 array_map( 18 function ( UserRole $role ) { 19 return UserRoleMapper::to_dto( $role ); 20 }, 21 $author->get_roles() 22 ), 16 23 ); 17 24 } -
appful-app/trunk/includes/domain/Post.php
r2907312 r2962811 24 24 private bool $sticky = false; 25 25 private bool $send_push = true; 26 /** @var Role[] */ 27 private array $roles = []; 26 28 27 29 public function __construct() { … … 34 36 * @param Tag[] $tags 35 37 * @param Attachment[] $attachments 38 * @param Role[] $roles 36 39 */ 37 40 public static function post( … … 50 53 string $comment_status = "", 51 54 bool $sticky = false, 52 bool $send_push = true 55 bool $send_push = true, 56 array $roles = [] 53 57 ): Post { 54 58 return ( new Post() ) … … 67 71 ->comment_status( $comment_status ) 68 72 ->sticky( $sticky ) 69 ->send_push( $send_push ); 73 ->send_push( $send_push ) 74 ->roles( $roles ); 70 75 } 71 76 … … 119 124 120 125 /** 126 * @param Role[] $roles 127 */ 128 public function roles( array $roles ): Post { 129 $this->roles = $roles; 130 131 return $this; 132 } 133 134 /** 121 135 * @param Category[] $categories 122 136 */ … … 167 181 168 182 return $this; 183 } 184 185 /** 186 * @return Role[] 187 */ 188 public function get_roles(): array { 189 return $this->roles; 169 190 } 170 191 -
appful-app/trunk/includes/domain/User.php
r2907312 r2962811 9 9 private string $display_name = ""; 10 10 private string $avatar = ""; 11 /** @var UserRole[] */ 12 private array $roles = []; 11 13 14 /** 15 * @param UserRole[] $roles 16 */ 12 17 public static function user( 13 18 int $id = - 1, … … 15 20 string $lastname = "", 16 21 string $avatar = "", 17 string $display_name = "" 22 string $display_name = "", 23 array $roles = [] 18 24 ): User { 19 return ( new User() )->id( $id )->firstname( $firstname )->lastname( $lastname )->avatar( $avatar )->display_name( $display_name ); 25 return ( new User() ) 26 ->id( $id ) 27 ->firstname( $firstname ) 28 ->lastname( $lastname ) 29 ->avatar( $avatar ) 30 ->display_name( $display_name ) 31 ->roles( $roles ); 20 32 } 21 33 … … 50 62 } 51 63 64 /** 65 * @param UserRole[] $roles 66 */ 67 public function roles( array $roles ): User { 68 $this->roles = $roles; 69 70 return $this; 71 } 72 52 73 public function get_firstname(): string { 53 74 return $this->firstname; … … 69 90 return $this->avatar; 70 91 } 92 93 /** 94 * @return UserRole[] 95 */ 96 public function get_roles(): array { 97 return $this->roles; 98 } 71 99 } -
appful-app/trunk/includes/helper/Constants.php
r2936340 r2962811 33 33 public static string $ATTACHMENT_PATH = "/attachments"; 34 34 public static string $TAXONOMY_PATH = "/taxonomies"; 35 public static string $ROLE_PATH = "/roles"; 35 36 36 37 public static string $API_VERSION_1 = "/v1"; … … 42 43 public static int $CATEGORY_SYNC_CHUNK_SIZE = 50; 43 44 public static int $TAG_SYNC_CHUNK_SIZE = 50; 45 public static int $ROLE_SYNC_CHUNK_SIZE = 50; 44 46 } -
appful-app/trunk/includes/menu/Menu.php
r2936340 r2962811 84 84 "active" => $this->has_plugin( "appful-wpml/appful-wpml.php" ), 85 85 "link" => "https://appful.io" 86 ], 87 [ 88 "name" => "Woocomerce", 89 "active" => $this->has_plugin( "appful-woocomerce/appful-woocomerce.php" ), 90 "link" => "https://appful.io" 86 91 ] 87 92 ] -
appful-app/trunk/includes/use_cases/UseCaseManager.php
r2954441 r2962811 57 57 private PullLocalPostContentUseCase $pull_local_post_content_use_case; 58 58 private GetLocalPostContentByIdUseCase $get_local_post_content_by_id_use_case; 59 private CreateCommentUseCase $create_comment_use_case; 59 private CreateCommentUseCase $create_comment_use_case; 60 private GetRolesByIdUseCase $get_roles_by_id_use_case; 61 private SyncRolesUseCase $sync_roles_use_case; 62 private GetRoleSyncDataUseCase $get_role_sync_data_use_case; 63 private SendRoleChunkSyncUseCase $send_role_chunk_sync_use_case; 60 64 61 65 public function __construct( BackendClient $backend_client, SelfClient $self_client ) { … … 110 114 $this->get_local_post_content_by_id_use_case = new GetLocalPostContentByIdUseCase(); 111 115 $this->get_post_contents_by_id_use_case = new GetPostContentsByIdUseCase( $this->pull_local_post_content_use_case ); 112 $this->create_comment_use_case = new CreateCommentUseCase(); 116 $this->create_comment_use_case = new CreateCommentUseCase(); 117 $this->get_roles_by_id_use_case = new GetRolesByIdUseCase(); 118 $this->get_role_sync_data_use_case = new GetRoleSyncDataUseCase(); 119 $this->send_role_chunk_sync_use_case = new SendRoleChunkSyncUseCase( $backend_client ); 120 $this->sync_roles_use_case = new SyncRolesUseCase( $this->get_role_sync_data_use_case, $this->send_role_chunk_sync_use_case ); 113 121 } 114 122 … … 313 321 } 314 322 315 public function create_comment_use_case(): CreateCommentUseCase { 316 return $this->create_comment_use_case; 317 } 323 public function create_comment_use_case(): CreateCommentUseCase { 324 return $this->create_comment_use_case; 325 } 326 327 public function get_roles_by_id_use_case(): GetRolesByIdUseCase { 328 return $this->get_roles_by_id_use_case; 329 } 330 331 public function get_role_sync_data_use_case(): GetRoleSyncDataUseCase { 332 return $this->get_role_sync_data_use_case; 333 } 334 335 public function send_role_chunk_sync_use_case(): SendRoleChunkSyncUseCase { 336 return $this->send_role_chunk_sync_use_case; 337 } 338 339 public function sync_roles_use_case(): SyncRolesUseCase { 340 return $this->sync_roles_use_case; 341 } 318 342 } -
appful-app/trunk/includes/wp/WPPostManager.php
r2920184 r2962811 5 5 use AppfulPlugin\Domain\Post; 6 6 use AppfulPlugin\Domain\PostContent; 7 use AppfulPlugin\Domain\Role; 8 use AppfulPlugin\Domain\UserRole; 7 9 use AppfulPlugin\Helper\Constants; 8 10 use AppfulPlugin\Wp\Mapper\PostMapper; 9 11 use AppfulPlugin\Wp\Plugins\LanguageHelper; 12 use AppfulPlugin\Wp\Plugins\RoleHelper; 10 13 use WP_Post; 11 14 -
appful-app/trunk/includes/wp/WPUserManager.php
r2920030 r2962811 4 4 5 5 use AppfulPlugin\Domain\User; 6 use AppfulPlugin\Domain\UserRole; 6 7 use AppfulPlugin\Wp\Mapper\UserMapper; 8 use AppfulPlugin\Wp\Plugins\RoleHelper; 7 9 use WP_User; 8 10 … … 16 18 17 19 return $avatar_url; 20 } 21 22 /** @return UserRole[] */ 23 public static function get_user_roles( int $user_id ): array { 24 return RoleHelper::get_user_roles( $user_id ); 18 25 } 19 26 -
appful-app/trunk/includes/wp/mapper/PostMapper.php
r2907312 r2962811 6 6 use AppfulPlugin\Helper\DateParser; 7 7 use AppfulPlugin\Wp\WPAttachmentManager; 8 use AppfulPlugin\Wp\WPAuthorManager;9 8 use AppfulPlugin\Wp\WPCategoryManager; 10 9 use AppfulPlugin\Wp\WPPostManager; 10 use AppfulPlugin\Wp\WPRoleManager; 11 11 use AppfulPlugin\Wp\WPTagManager; 12 12 use AppfulPlugin\Wp\WPUserManager; … … 32 32 ->comment_status( $post->comment_status ) 33 33 ->sticky( WPPostManager::is_post_sticky( $post->ID ) ) 34 ->send_push( WPPostManager::should_send_push( $post->ID ) ); 34 ->send_push( WPPostManager::should_send_push( $post->ID ) ) 35 ->roles( WPRoleManager::get_roles_for_post_id( $post->ID ) ); 35 36 } 36 37 } -
appful-app/trunk/includes/wp/mapper/UserMapper.php
r2927004 r2962811 30 30 ->lastname( $last_name ) 31 31 ->display_name( $display_name ) 32 ->avatar( WPUserManager::get_user_avatar( $user->ID ) ); 32 ->avatar( WPUserManager::get_user_avatar( $user->ID ) ) 33 ->roles( WPUserManager::get_user_roles( $user->ID ) ); 33 34 } 34 35 } -
appful-app/trunk/lib/vendor/composer/autoload_classmap.php
r2954441 r2962811 18 18 'AppfulPlugin\\Api\\Dtos\\PostContentDto' => $baseDir . '/../includes/api/dtos/PostContentDto.php', 19 19 'AppfulPlugin\\Api\\Dtos\\PostDto' => $baseDir . '/../includes/api/dtos/PostDto.php', 20 'AppfulPlugin\\Api\\Dtos\\RoleDto' => $baseDir . '/../includes/api/dtos/RoleDto.php', 20 21 'AppfulPlugin\\Api\\Dtos\\SyncChunkDto' => $baseDir . '/../includes/api/dtos/SyncChunkDto.php', 21 22 'AppfulPlugin\\Api\\Dtos\\SyncItemDto' => $baseDir . '/../includes/api/dtos/SyncItemDto.php', 22 23 'AppfulPlugin\\Api\\Dtos\\TagDto' => $baseDir . '/../includes/api/dtos/TagDto.php', 23 24 'AppfulPlugin\\Api\\Dtos\\UserDto' => $baseDir . '/../includes/api/dtos/UserDto.php', 25 'AppfulPlugin\\Api\\Dtos\\UserRoleDto' => $baseDir . '/../includes/api/dtos/UserRoleDto.php', 24 26 'AppfulPlugin\\Api\\Endpoints' => $baseDir . '/../includes/api/Endpoints.php', 25 27 'AppfulPlugin\\Api\\Handlers\\AndroidAssetLinkRequestHandler' => $baseDir . '/../includes/api/handlers/AndroidAssetLinkRequestHandler.php', … … 36 38 'AppfulPlugin\\Api\\Handlers\\GetPostContentsRequestHandler' => $baseDir . '/../includes/api/handlers/GetPostContentsRequestHandler.php', 37 39 'AppfulPlugin\\Api\\Handlers\\GetPostsRequestHandler' => $baseDir . '/../includes/api/handlers/GetPostsRequestHandler.php', 40 'AppfulPlugin\\Api\\Handlers\\GetRolesRequestHandler' => $baseDir . '/../includes/api/handlers/GetRolesRequestHandler.php', 38 41 'AppfulPlugin\\Api\\Handlers\\GetTagsRequestHandler' => $baseDir . '/../includes/api/handlers/GetTagsRequestHandler.php', 39 42 'AppfulPlugin\\Api\\Handlers\\GetUsersRequestHandler' => $baseDir . '/../includes/api/handlers/GetUsersRequestHandler.php', … … 43 46 'AppfulPlugin\\Api\\Handlers\\PullLocalPostContentRequestHandler' => $baseDir . '/../includes/api/handlers/PullLocalPostContentRequestHandler.php', 44 47 'AppfulPlugin\\Api\\Handlers\\RequestHandler' => $baseDir . '/../includes/api/handlers/RequestHandler.php', 48 'AppfulPlugin\\Api\\Handlers\\RoleSyncRequestHandler' => $baseDir . '/../includes/api/handlers/RoleSyncRequestHandler.php', 45 49 'AppfulPlugin\\Api\\Handlers\\SyncRequestHandler' => $baseDir . '/../includes/api/handlers/SyncRequestHandler.php', 46 50 'AppfulPlugin\\Api\\Handlers\\TagSyncRequestHandler' => $baseDir . '/../includes/api/handlers/TagSyncRequestHandler.php', … … 53 57 'AppfulPlugin\\Api\\Mapper\\PostContentMapper' => $baseDir . '/../includes/api/mapper/PostContentMapper.php', 54 58 'AppfulPlugin\\Api\\Mapper\\PostMapper' => $baseDir . '/../includes/api/mapper/PostMapper.php', 59 'AppfulPlugin\\Api\\Mapper\\RoleMapper' => $baseDir . '/../includes/api/mapper/RoleMapper.php', 55 60 'AppfulPlugin\\Api\\Mapper\\SyncChunkMapper' => $baseDir . '/../includes/api/mapper/SyncChunkMapper.php', 56 61 'AppfulPlugin\\Api\\Mapper\\SyncItemMapper' => $baseDir . '/../includes/api/mapper/SyncItemMapper.php', … … 74 79 'AppfulPlugin\\Domain\\Post' => $baseDir . '/../includes/domain/Post.php', 75 80 'AppfulPlugin\\Domain\\PostContent' => $baseDir . '/../includes/domain/PostContent.php', 81 'AppfulPlugin\\Domain\\Role' => $baseDir . '/../includes/domain/Role.php', 76 82 'AppfulPlugin\\Domain\\SyncChunk' => $baseDir . '/../includes/domain/SyncChunk.php', 77 83 'AppfulPlugin\\Domain\\SyncItem' => $baseDir . '/../includes/domain/SyncItem.php', 78 84 'AppfulPlugin\\Domain\\Tag' => $baseDir . '/../includes/domain/Tag.php', 79 85 'AppfulPlugin\\Domain\\User' => $baseDir . '/../includes/domain/User.php', 86 'AppfulPlugin\\Domain\\UserRole' => $baseDir . '/../includes/domain/UserRole.php', 80 87 'AppfulPlugin\\Helper\\AssetLoader' => $baseDir . '/../includes/helper/AssetLoader.php', 81 88 'AppfulPlugin\\Helper\\ClientTokenManager' => $baseDir . '/../includes/helper/ClientTokenManager.php', … … 121 128 'AppfulPlugin\\UseCases\\GetPostSyncDataUseCase' => $baseDir . '/../includes/use_cases/GetPostSyncDataUseCase.php', 122 129 'AppfulPlugin\\UseCases\\GetPostsByIdUseCase' => $baseDir . '/../includes/use_cases/GetPostsByIdUseCase.php', 130 'AppfulPlugin\\UseCases\\GetRoleSyncDataUseCase' => $baseDir . '/../includes/use_cases/GetRoleSyncDataUseCase.php', 131 'AppfulPlugin\\UseCases\\GetRolesByIdUseCase' => $baseDir . '/../includes/use_cases/GetRolesByIdUseCase.php', 123 132 'AppfulPlugin\\UseCases\\GetTagSyncDataUseCase' => $baseDir . '/../includes/use_cases/GetTagSyncDataUseCase.php', 124 133 'AppfulPlugin\\UseCases\\GetTagsByIdUseCase' => $baseDir . '/../includes/use_cases/GetTagsByIdUseCase.php', … … 135 144 'AppfulPlugin\\UseCases\\SendCommentChunkSyncUseCase' => $baseDir . '/../includes/use_cases/SendCommentChunkSyncUseCase.php', 136 145 'AppfulPlugin\\UseCases\\SendPostChunkSyncUseCase' => $baseDir . '/../includes/use_cases/SendPostChunkSyncUseCase.php', 146 'AppfulPlugin\\UseCases\\SendRoleChunkSyncUseCase' => $baseDir . '/../includes/use_cases/SendRoleChunkSyncUseCase.php', 137 147 'AppfulPlugin\\UseCases\\SendTagChunkSyncUseCase' => $baseDir . '/../includes/use_cases/SendTagChunkSyncUseCase.php', 138 148 'AppfulPlugin\\UseCases\\SendUserChunkSyncUseCase' => $baseDir . '/../includes/use_cases/SendUserChunkSyncUseCase.php', … … 142 152 'AppfulPlugin\\UseCases\\SyncCommentsUseCase' => $baseDir . '/../includes/use_cases/SyncCommentsUseCase.php', 143 153 'AppfulPlugin\\UseCases\\SyncPostsUseCase' => $baseDir . '/../includes/use_cases/SyncPostsUseCase.php', 154 'AppfulPlugin\\UseCases\\SyncRolesUseCase' => $baseDir . '/../includes/use_cases/SyncRolesUseCase.php', 144 155 'AppfulPlugin\\UseCases\\SyncTagsUseCase' => $baseDir . '/../includes/use_cases/SyncTagsUseCase.php', 145 156 'AppfulPlugin\\UseCases\\SyncUsersUseCase' => $baseDir . '/../includes/use_cases/SyncUsersUseCase.php', … … 156 167 'AppfulPlugin\\Wp\\Mapper\\UserMapper' => $baseDir . '/../includes/wp/mapper/UserMapper.php', 157 168 'AppfulPlugin\\Wp\\Plugins\\LanguageHelper' => $baseDir . '/../includes/wp/plugins/LanguageHelper.php', 169 'AppfulPlugin\\Wp\\Plugins\\RoleHelper' => $baseDir . '/../includes/wp/plugins/RoleHelper.php', 158 170 'AppfulPlugin\\Wp\\WPAttachmentManager' => $baseDir . '/../includes/wp/WPAttachmentManager.php', 159 171 'AppfulPlugin\\Wp\\WPBlogManager' => $baseDir . '/../includes/wp/WPBlogManager.php', … … 162 174 'AppfulPlugin\\Wp\\WPOptionsManager' => $baseDir . '/../includes/wp/WPOptionsManager.php', 163 175 'AppfulPlugin\\Wp\\WPPostManager' => $baseDir . '/../includes/wp/WPPostManager.php', 176 'AppfulPlugin\\Wp\\WPRoleManager' => $baseDir . '/../includes/wp/WPRoleManager.php', 164 177 'AppfulPlugin\\Wp\\WPTagManager' => $baseDir . '/../includes/wp/WPTagManager.php', 165 178 'AppfulPlugin\\Wp\\WPUserManager' => $baseDir . '/../includes/wp/WPUserManager.php', -
appful-app/trunk/lib/vendor/composer/autoload_static.php
r2954441 r2962811 185 185 'AppfulPlugin\\Api\\Dtos\\PostContentDto' => __DIR__ . '/../..' . '/../includes/api/dtos/PostContentDto.php', 186 186 'AppfulPlugin\\Api\\Dtos\\PostDto' => __DIR__ . '/../..' . '/../includes/api/dtos/PostDto.php', 187 'AppfulPlugin\\Api\\Dtos\\RoleDto' => __DIR__ . '/../..' . '/../includes/api/dtos/RoleDto.php', 187 188 'AppfulPlugin\\Api\\Dtos\\SyncChunkDto' => __DIR__ . '/../..' . '/../includes/api/dtos/SyncChunkDto.php', 188 189 'AppfulPlugin\\Api\\Dtos\\SyncItemDto' => __DIR__ . '/../..' . '/../includes/api/dtos/SyncItemDto.php', 189 190 'AppfulPlugin\\Api\\Dtos\\TagDto' => __DIR__ . '/../..' . '/../includes/api/dtos/TagDto.php', 190 191 'AppfulPlugin\\Api\\Dtos\\UserDto' => __DIR__ . '/../..' . '/../includes/api/dtos/UserDto.php', 192 'AppfulPlugin\\Api\\Dtos\\UserRoleDto' => __DIR__ . '/../..' . '/../includes/api/dtos/UserRoleDto.php', 191 193 'AppfulPlugin\\Api\\Endpoints' => __DIR__ . '/../..' . '/../includes/api/Endpoints.php', 192 194 'AppfulPlugin\\Api\\Handlers\\AndroidAssetLinkRequestHandler' => __DIR__ . '/../..' . '/../includes/api/handlers/AndroidAssetLinkRequestHandler.php', … … 203 205 'AppfulPlugin\\Api\\Handlers\\GetPostContentsRequestHandler' => __DIR__ . '/../..' . '/../includes/api/handlers/GetPostContentsRequestHandler.php', 204 206 'AppfulPlugin\\Api\\Handlers\\GetPostsRequestHandler' => __DIR__ . '/../..' . '/../includes/api/handlers/GetPostsRequestHandler.php', 207 'AppfulPlugin\\Api\\Handlers\\GetRolesRequestHandler' => __DIR__ . '/../..' . '/../includes/api/handlers/GetRolesRequestHandler.php', 205 208 'AppfulPlugin\\Api\\Handlers\\GetTagsRequestHandler' => __DIR__ . '/../..' . '/../includes/api/handlers/GetTagsRequestHandler.php', 206 209 'AppfulPlugin\\Api\\Handlers\\GetUsersRequestHandler' => __DIR__ . '/../..' . '/../includes/api/handlers/GetUsersRequestHandler.php', … … 210 213 'AppfulPlugin\\Api\\Handlers\\PullLocalPostContentRequestHandler' => __DIR__ . '/../..' . '/../includes/api/handlers/PullLocalPostContentRequestHandler.php', 211 214 'AppfulPlugin\\Api\\Handlers\\RequestHandler' => __DIR__ . '/../..' . '/../includes/api/handlers/RequestHandler.php', 215 'AppfulPlugin\\Api\\Handlers\\RoleSyncRequestHandler' => __DIR__ . '/../..' . '/../includes/api/handlers/RoleSyncRequestHandler.php', 212 216 'AppfulPlugin\\Api\\Handlers\\SyncRequestHandler' => __DIR__ . '/../..' . '/../includes/api/handlers/SyncRequestHandler.php', 213 217 'AppfulPlugin\\Api\\Handlers\\TagSyncRequestHandler' => __DIR__ . '/../..' . '/../includes/api/handlers/TagSyncRequestHandler.php', … … 220 224 'AppfulPlugin\\Api\\Mapper\\PostContentMapper' => __DIR__ . '/../..' . '/../includes/api/mapper/PostContentMapper.php', 221 225 'AppfulPlugin\\Api\\Mapper\\PostMapper' => __DIR__ . '/../..' . '/../includes/api/mapper/PostMapper.php', 226 'AppfulPlugin\\Api\\Mapper\\RoleMapper' => __DIR__ . '/../..' . '/../includes/api/mapper/RoleMapper.php', 222 227 'AppfulPlugin\\Api\\Mapper\\SyncChunkMapper' => __DIR__ . '/../..' . '/../includes/api/mapper/SyncChunkMapper.php', 223 228 'AppfulPlugin\\Api\\Mapper\\SyncItemMapper' => __DIR__ . '/../..' . '/../includes/api/mapper/SyncItemMapper.php', … … 241 246 'AppfulPlugin\\Domain\\Post' => __DIR__ . '/../..' . '/../includes/domain/Post.php', 242 247 'AppfulPlugin\\Domain\\PostContent' => __DIR__ . '/../..' . '/../includes/domain/PostContent.php', 248 'AppfulPlugin\\Domain\\Role' => __DIR__ . '/../..' . '/../includes/domain/Role.php', 243 249 'AppfulPlugin\\Domain\\SyncChunk' => __DIR__ . '/../..' . '/../includes/domain/SyncChunk.php', 244 250 'AppfulPlugin\\Domain\\SyncItem' => __DIR__ . '/../..' . '/../includes/domain/SyncItem.php', 245 251 'AppfulPlugin\\Domain\\Tag' => __DIR__ . '/../..' . '/../includes/domain/Tag.php', 246 252 'AppfulPlugin\\Domain\\User' => __DIR__ . '/../..' . '/../includes/domain/User.php', 253 'AppfulPlugin\\Domain\\UserRole' => __DIR__ . '/../..' . '/../includes/domain/UserRole.php', 247 254 'AppfulPlugin\\Helper\\AssetLoader' => __DIR__ . '/../..' . '/../includes/helper/AssetLoader.php', 248 255 'AppfulPlugin\\Helper\\ClientTokenManager' => __DIR__ . '/../..' . '/../includes/helper/ClientTokenManager.php', … … 288 295 'AppfulPlugin\\UseCases\\GetPostSyncDataUseCase' => __DIR__ . '/../..' . '/../includes/use_cases/GetPostSyncDataUseCase.php', 289 296 'AppfulPlugin\\UseCases\\GetPostsByIdUseCase' => __DIR__ . '/../..' . '/../includes/use_cases/GetPostsByIdUseCase.php', 297 'AppfulPlugin\\UseCases\\GetRoleSyncDataUseCase' => __DIR__ . '/../..' . '/../includes/use_cases/GetRoleSyncDataUseCase.php', 298 'AppfulPlugin\\UseCases\\GetRolesByIdUseCase' => __DIR__ . '/../..' . '/../includes/use_cases/GetRolesByIdUseCase.php', 290 299 'AppfulPlugin\\UseCases\\GetTagSyncDataUseCase' => __DIR__ . '/../..' . '/../includes/use_cases/GetTagSyncDataUseCase.php', 291 300 'AppfulPlugin\\UseCases\\GetTagsByIdUseCase' => __DIR__ . '/../..' . '/../includes/use_cases/GetTagsByIdUseCase.php', … … 302 311 'AppfulPlugin\\UseCases\\SendCommentChunkSyncUseCase' => __DIR__ . '/../..' . '/../includes/use_cases/SendCommentChunkSyncUseCase.php', 303 312 'AppfulPlugin\\UseCases\\SendPostChunkSyncUseCase' => __DIR__ . '/../..' . '/../includes/use_cases/SendPostChunkSyncUseCase.php', 313 'AppfulPlugin\\UseCases\\SendRoleChunkSyncUseCase' => __DIR__ . '/../..' . '/../includes/use_cases/SendRoleChunkSyncUseCase.php', 304 314 'AppfulPlugin\\UseCases\\SendTagChunkSyncUseCase' => __DIR__ . '/../..' . '/../includes/use_cases/SendTagChunkSyncUseCase.php', 305 315 'AppfulPlugin\\UseCases\\SendUserChunkSyncUseCase' => __DIR__ . '/../..' . '/../includes/use_cases/SendUserChunkSyncUseCase.php', … … 309 319 'AppfulPlugin\\UseCases\\SyncCommentsUseCase' => __DIR__ . '/../..' . '/../includes/use_cases/SyncCommentsUseCase.php', 310 320 'AppfulPlugin\\UseCases\\SyncPostsUseCase' => __DIR__ . '/../..' . '/../includes/use_cases/SyncPostsUseCase.php', 321 'AppfulPlugin\\UseCases\\SyncRolesUseCase' => __DIR__ . '/../..' . '/../includes/use_cases/SyncRolesUseCase.php', 311 322 'AppfulPlugin\\UseCases\\SyncTagsUseCase' => __DIR__ . '/../..' . '/../includes/use_cases/SyncTagsUseCase.php', 312 323 'AppfulPlugin\\UseCases\\SyncUsersUseCase' => __DIR__ . '/../..' . '/../includes/use_cases/SyncUsersUseCase.php', … … 323 334 'AppfulPlugin\\Wp\\Mapper\\UserMapper' => __DIR__ . '/../..' . '/../includes/wp/mapper/UserMapper.php', 324 335 'AppfulPlugin\\Wp\\Plugins\\LanguageHelper' => __DIR__ . '/../..' . '/../includes/wp/plugins/LanguageHelper.php', 336 'AppfulPlugin\\Wp\\Plugins\\RoleHelper' => __DIR__ . '/../..' . '/../includes/wp/plugins/RoleHelper.php', 325 337 'AppfulPlugin\\Wp\\WPAttachmentManager' => __DIR__ . '/../..' . '/../includes/wp/WPAttachmentManager.php', 326 338 'AppfulPlugin\\Wp\\WPBlogManager' => __DIR__ . '/../..' . '/../includes/wp/WPBlogManager.php', … … 329 341 'AppfulPlugin\\Wp\\WPOptionsManager' => __DIR__ . '/../..' . '/../includes/wp/WPOptionsManager.php', 330 342 'AppfulPlugin\\Wp\\WPPostManager' => __DIR__ . '/../..' . '/../includes/wp/WPPostManager.php', 343 'AppfulPlugin\\Wp\\WPRoleManager' => __DIR__ . '/../..' . '/../includes/wp/WPRoleManager.php', 331 344 'AppfulPlugin\\Wp\\WPTagManager' => __DIR__ . '/../..' . '/../includes/wp/WPTagManager.php', 332 345 'AppfulPlugin\\Wp\\WPUserManager' => __DIR__ . '/../..' . '/../includes/wp/WPUserManager.php', -
appful-app/trunk/lib/vendor/composer/installed.php
r2954441 r2962811 2 2 'root' => array( 3 3 'name' => '__root__', 4 'pretty_version' => ' dev-main',5 'version' => ' dev-main',6 'reference' => '4d8e7b6e341ee0d4e0bee5c8146a5f473c37c66b',4 'pretty_version' => '1.0.0+no-version-set', 5 'version' => '1.0.0.0', 6 'reference' => NULL, 7 7 'type' => 'library', 8 8 'install_path' => __DIR__ . '/../../', … … 12 12 'versions' => array( 13 13 '__root__' => array( 14 'pretty_version' => ' dev-main',15 'version' => ' dev-main',16 'reference' => '4d8e7b6e341ee0d4e0bee5c8146a5f473c37c66b',14 'pretty_version' => '1.0.0+no-version-set', 15 'version' => '1.0.0.0', 16 'reference' => NULL, 17 17 'type' => 'library', 18 18 'install_path' => __DIR__ . '/../../', -
appful-app/trunk/readme.txt
r2954441 r2962811 6 6 Tested up to: 6.2 7 7 Requires PHP: 7.4 8 Stable tag: 3.1. 88 Stable tag: 3.1.9 9 9 License: GPLv2 or later 10 10 License URI: http://www.gnu.org/licenses/gpl-2.0.html
Note: See TracChangeset
for help on using the changeset viewer.