Pimcore\Model\Object\ClassDefinition::getInfoDocBlock PHP Method

getInfoDocBlock() protected method

protected getInfoDocBlock ( ) : string
return string
    protected function getInfoDocBlock()
    {
        $cd = "";
        $cd .= "/** ";
        $cd .= "\n";
        $cd .= "* Generated at: " . date('c') . "\n";
        $cd .= "* Inheritance: " . ($this->getAllowInherit() ? "yes" : "no") . "\n";
        $cd .= "* Variants: " . ($this->getAllowVariants() ? "yes" : "no") . "\n";
        $user = Model\User::getById($this->getUserModification());
        if ($user) {
            $cd .= "* Changed by: " . $user->getName() . " (" . $user->getId() . ")" . "\n";
        }
        if (isset($_SERVER["REMOTE_ADDR"])) {
            $cd .= "* IP: " . $_SERVER["REMOTE_ADDR"] . "\n";
        }
        if ($this->getDescription()) {
            $description = str_replace(["/**", "*/", "//"], "", $this->getDescription());
            $description = str_replace("\n", "\n* ", $description);
            $cd .= "* " . $description . "\n";
        }
        $cd .= "\n\n";
        $cd .= "Fields Summary: \n";
        $cd = $this->getInfoDocBlockForFields($this, $cd, 1);
        $cd .= "*/ ";
        return $cd;
    }