/** * @return ICWP_WPSF_YamlProcessor */ public static function loadYamlProcessor() { if (!isset(self::$oYaml)) { require_once dirname(__FILE__) . ICWP_DS . 'icwp-yaml.php'; self::$oYaml = ICWP_WPSF_YamlProcessor::GetInstance(); } return self::$oYaml; }
/** * @return bool|sfYaml */ protected function getSymfonyYamlParser() { if (!isset(self::$oYaml)) { if ($this->loadSymfonyYamlParser()) { self::$oYaml = new sfYaml(); } else { self::$oYaml = false; } } return self::$oYaml; }