AdminPageFrameworkLoader_AdminPage_Tool_Generator_Generator::_modifyFileDockblock PHP Метод

_modifyFileDockblock() приватный Метод

Inserts additional information such as an included component list and a date to the file doc-block (the header comment part).
С версии: 3.5.4
private _modifyFileDockblock ( $sFileContents ) : string
Результат string
    private function _modifyFileDockblock($sFileContents)
    {
        $_aCheckedComponents = $this->oFactory->oUtil->getArrayElementsByKeys($this->_getComponentLabels(), $this->_getCheckedComponents());
        $_aInsert = array('Included Components: ' . implode(', ', $_aCheckedComponents), 'Generated on ' . date('Y-m-d'));
        return preg_replace('#\\*/#', implode(PHP_EOL . ' ', $_aInsert) . ' \\0', $sFileContents, 1);
    }