Create New Item
Item Type
File
Folder
Item Name
Search file in folder and subfolders...
Are you sure want to rename?
polymastigina
/
wp-content
/
plugins
/
wordpress-seo
/
vendor_prefixed
/
wordproof
/
wordpress-sdk
/
app
/
Helpers
:
AppConfigHelper.php
Advanced Search
Upload
New Item
Settings
Back
Back Up
Advanced Editor
Save
<?php namespace YoastSEO_Vendor\WordProof\SDK\Helpers; use YoastSEO_Vendor\WordProof\SDK\WordPressSDK; class AppConfigHelper { /** * Returns the partner set during initialization. * * @return string|null */ public static function getPartner() { $appConfig = self::getAppConfig(); if ($appConfig) { return $appConfig->getPartner(); } return null; } /** * Returns the environment set during initialization. * @return string|null */ public static function getEnvironment() { $appConfig = self::getAppConfig(); if ($appConfig) { return $appConfig->getEnvironment(); } return null; } /** * Returns the environment set during initialization. * @return boolean */ public static function getLoadUikitFromCdn() { $appConfig = self::getAppConfig(); if ($appConfig) { return $appConfig->getLoadUikitFromCdn(); } return null; } public static function getAppConfig() { $sdk = \YoastSEO_Vendor\WordProof\SDK\WordPressSDK::getInstance(); if ($sdk) { return $sdk->appConfig; } return null; } }