public function saveEntityClass($path = null) { if (empty($path)) { $path = $this->config->getClassPath(); } Tools::_fixFilePath($path); if ('/' != substr($path, 0, 1)) { $path = '/bitrix/modules/' . $this->config->getModuleID() . '/' . $path; } if (!CheckDirPath(OBX_DOC_ROOT . $path)) { throw new Err('', Err::E_CLASS_SAVE_FAILED); } if (false === file_put_contents(OBX_DOC_ROOT . $path, $this->phpClass->generateClass())) { return false; } return true; }
protected static function normalizePath($path) { Tools::_fixFilePath($path); return $path; }