CDTClient
4 weeks ago
admin-notices
4 weeks ago
buy-url
4 weeks ago
debug
4 weeks ago
exceptions
5 years ago
instances
4 weeks ago
loader
5 years ago
products
4 weeks ago
repository
4 weeks ago
rest
4 weeks ago
site-key
4 weeks ago
support
4 weeks ago
template-service
4 weeks ago
upgrade
4 weeks ago
utilities
4 weeks ago
wpml-content-stats
4 weeks ago
class-installer-dependencies.php
4 weeks ago
class-installer-theme.php
4 weeks ago
class-installer-upgrader-skins.php
4 weeks ago
class-otgs-installer-autoloader.php
5 years ago
class-otgs-installer-cloned-sites-handler.php
4 weeks ago
class-otgs-installer-debug-info.php
4 weeks ago
class-otgs-installer-factory.php
4 weeks ago
class-otgs-installer-filename-hooks.php
4 weeks ago
class-otgs-installer-icons.php
4 weeks ago
class-otgs-installer-loader.php
10 months ago
class-otgs-installer-package-product-finder.php
4 weeks ago
class-otgs-installer-package-product.php
4 weeks ago
class-otgs-installer-package.php
5 years ago
class-otgs-installer-php-functions.php
4 weeks ago
class-otgs-installer-plugin-factory.php
4 weeks ago
class-otgs-installer-plugin-finder.php
4 weeks ago
class-otgs-installer-plugin.php
4 weeks ago
class-otgs-installer-plugins-page-notice.php
4 weeks ago
class-otgs-installer-plugins-update-cache-cleaner.php
5 years ago
class-otgs-installer-settings.php
4 weeks ago
class-otgs-installer-source-factory.php
5 years ago
class-otgs-installer-source.php
4 weeks ago
class-otgs-installer-subscription-factory.php
5 years ago
class-otgs-installer-subscription-warning-message.php
4 weeks ago
class-otgs-installer-subscription.php
4 weeks ago
class-otgs-installer-wp-components-hooks.php
4 weeks ago
class-otgs-installer-wp-components-sender.php
4 weeks ago
class-otgs-installer-wp-components-setting-ajax.php
4 weeks ago
class-otgs-installer-wp-components-setting-resources.php
4 weeks ago
class-otgs-installer-wp-components-storage.php
4 weeks ago
class-otgs-installer-wp-share-local-components-setting-hooks.php
4 weeks ago
class-otgs-installer-wp-share-local-components-setting.php
4 weeks ago
class-translation-service-info.php
4 weeks ago
class-wp-installer-api.php
4 weeks ago
class-wp-installer-channels.php
4 weeks ago
class-wp-installer.php
4 weeks ago
functions-core.php
4 weeks ago
functions-templates.php
4 weeks ago
otgs-installer-autoload-classmap.php
10 months ago
class-otgs-installer-plugin.php
98 lines
| 1 | <?php |
| 2 | |
| 3 | class OTGS_Installer_Plugin { |
| 4 | |
| 5 | private $name; |
| 6 | private $slug; |
| 7 | private $description; |
| 8 | private $changelog; |
| 9 | private $version; |
| 10 | private $date; |
| 11 | private $url; |
| 12 | private $free_on_wporg; |
| 13 | private $fallback_on_wporg; |
| 14 | private $basename; |
| 15 | private $external_repo; |
| 16 | private $is_lite; |
| 17 | private $repo; |
| 18 | private $id; |
| 19 | private $installed_version; |
| 20 | private $channel; |
| 21 | private $tested; |
| 22 | |
| 23 | public function __construct( array $params = array() ) { |
| 24 | foreach ( get_object_vars( $this ) as $property => $value ) { |
| 25 | if ( array_key_exists( $property, $params ) ) { |
| 26 | $this->$property = $params[ $property ]; |
| 27 | } |
| 28 | } |
| 29 | } |
| 30 | |
| 31 | public function get_name() { |
| 32 | return $this->name; |
| 33 | } |
| 34 | |
| 35 | public function get_slug() { |
| 36 | return $this->slug; |
| 37 | } |
| 38 | |
| 39 | public function get_description() { |
| 40 | return $this->description; |
| 41 | } |
| 42 | |
| 43 | public function get_changelog() { |
| 44 | return $this->changelog; |
| 45 | } |
| 46 | |
| 47 | public function get_version() { |
| 48 | return $this->version; |
| 49 | } |
| 50 | |
| 51 | public function get_date() { |
| 52 | return $this->date; |
| 53 | } |
| 54 | |
| 55 | public function get_url() { |
| 56 | return $this->url; |
| 57 | } |
| 58 | |
| 59 | public function get_repo() { |
| 60 | return $this->repo; |
| 61 | } |
| 62 | |
| 63 | public function is_free_on_wporg() { |
| 64 | return (bool) $this->free_on_wporg; |
| 65 | } |
| 66 | |
| 67 | public function has_fallback_on_wporg() { |
| 68 | return (bool) $this->fallback_on_wporg; |
| 69 | } |
| 70 | |
| 71 | public function get_basename() { |
| 72 | return $this->basename; |
| 73 | } |
| 74 | |
| 75 | public function get_external_repo() { |
| 76 | return $this->external_repo; |
| 77 | } |
| 78 | |
| 79 | public function get_id() { |
| 80 | return $this->id; |
| 81 | } |
| 82 | |
| 83 | public function get_installed_version() { |
| 84 | return $this->installed_version; |
| 85 | } |
| 86 | |
| 87 | public function get_channel() { |
| 88 | return $this->channel; |
| 89 | } |
| 90 | |
| 91 | public function get_tested() { |
| 92 | return $this->tested; |
| 93 | } |
| 94 | |
| 95 | public function is_lite() { |
| 96 | return $this->is_lite; |
| 97 | } |
| 98 | } |