Baikal\Model\Calendar::formMorphologyForThisModelInstance PHP Méthode

formMorphologyForThisModelInstance() public méthode

    function formMorphologyForThisModelInstance()
    {
        $oMorpho = new \Formal\Form\Morphology();
        $oMorpho->add(new \Formal\Element\Text(["prop" => "uri", "label" => "Calendar token ID", "validation" => "required,tokenid", "popover" => ["title" => "Calendar token ID", "content" => "The unique identifier for this calendar."]]));
        $oMorpho->add(new \Formal\Element\Text(["prop" => "displayname", "label" => "Display name", "validation" => "required", "popover" => ["title" => "Display name", "content" => "This is the name that will be displayed in your CalDAV client."]]));
        $oMorpho->add(new \Formal\Element\Text(["prop" => "calendarcolor", "label" => "Calendar color", "validation" => "color", "popover" => ["title" => "Calendar color", "content" => "This is the color that will be displayed in your CalDAV client.</br>" . "Must be supplied in format '#RRGGBBAA' (alpha channel optional) with hexadecimal values.</br>" . "This value is optional."]]));
        $oMorpho->add(new \Formal\Element\Text(["prop" => "description", "label" => "Description"]));
        $oMorpho->add(new \Formal\Element\Checkbox(["prop" => "todos", "label" => "Todos", "help" => "If checked, todos will be enabled on this calendar."]));
        $oMorpho->add(new \Formal\Element\Checkbox(["prop" => "notes", "label" => "Notes", "help" => "If checked, notes will be enabled on this calendar."]));
        if ($this->floating()) {
            $oMorpho->element("uri")->setOption("help", "Allowed characters are digits, lowercase letters and the dash symbol '-'.");
        } else {
            $oMorpho->element("uri")->setOption("readonly", true);
        }
        return $oMorpho;
    }