/** * @return string */ public static function DataPath() { $dataPath = 'data'; if (!defined('API_DATA_FOLDER') && @file_exists(CApi::WebMailPath() . 'inc_settings_path.php')) { include CApi::WebMailPath() . 'inc_settings_path.php'; } if (!defined('API_DATA_FOLDER') && isset($dataPath) && null !== $dataPath) { define('API_DATA_FOLDER', api_Utils::GetFullPath($dataPath, CApi::WebMailPath())); } return defined('API_DATA_FOLDER') ? API_DATA_FOLDER : ''; }