/** * Retrieves the plugin environment * * @return IfwPsn_Wp_Env_Plugin */ public function getEnv() { require_once $this->getPathinfo()->getRootLib() . '/IfwPsn/Wp/Env/Plugin.php'; return IfwPsn_Wp_Env_Plugin::getInstance($this->_pathinfo); }
public function loadEnv() { require_once IFW_PSN_LIB_ROOT . '/IfwPsn/Wp/Env/Plugin.php'; $this->_env = IfwPsn_Wp_Env_Plugin::getInstance($this->_pluginPathinfo); }