Baikal\Model\Config\System::formMorphologyForThisModelInstance PHP Метод

formMorphologyForThisModelInstance() публичный Метод

    function formMorphologyForThisModelInstance()
    {
        $oMorpho = new \Formal\Form\Morphology();
        $oMorpho->add(new \Formal\Element\Text(["prop" => "BAIKAL_CAL_BASEURI", "label" => "CalDAV base URI", "validation" => "required", "help" => "The absolute web path to cal.php", "popover" => ["title" => "CalDAV base URI", "content" => "If Baïkal is hosted in a subfolder, this path should reflect it.<br /><strong>Whatever happens, it should begin and end with a slash.</strong>"]]));
        $oMorpho->add(new \Formal\Element\Text(["prop" => "BAIKAL_CARD_BASEURI", "label" => "CardDAV base URI", "validation" => "required", "help" => "The absolute web path to card.php", "popover" => ["title" => "CardDAV base URI", "content" => "If Baïkal is hosted in a subfolder, this path should reflect it.<br /><strong>Whatever happens, it should begin and end with a slash.</strong>"]]));
        $oMorpho->add(new \Formal\Element\Text(["prop" => "BAIKAL_DAV_BASEURI", "label" => "CalDAV/CardDAV base URI", "validation" => "required", "help" => "The absolute web path to dav.php", "popover" => ["title" => "DAV base URI", "content" => "If Baïkal is hosted in a subfolder, this path should reflect it.<br /><strong>Whatever happens, it should begin and end with a slash.</strong>"]]));
        $oMorpho->add(new \Formal\Element\Text(["prop" => "BAIKAL_AUTH_REALM", "label" => "Auth realm", "validation" => "required", "help" => "Token used in authentication process.<br />If you change this, you'll have to reset all your users passwords.<br />You'll also loose access to this admin interface.", "popover" => ["title" => "Auth realm", "content" => "If you change this, you'll loose your access to this interface.<br />In other words: <strong>you should not change this, unless YKWYD.</strong>"]]));
        $oMorpho->add(new \Formal\Element\Text(["prop" => "PROJECT_SQLITE_FILE", "label" => "SQLite file path", "validation" => "required", "inputclass" => "input-xxlarge", "help" => "The absolute server path to the SQLite file"]));
        $oMorpho->add(new \Formal\Element\Checkbox(["prop" => "PROJECT_DB_MYSQL", "label" => "Use MySQL", "help" => "If checked, Baïkal will use MySQL instead of SQLite.", "refreshonchange" => true]));
        $oMorpho->add(new \Formal\Element\Text(["prop" => "PROJECT_DB_MYSQL_HOST", "label" => "MySQL host", "help" => "Host ip or name, including ':portnumber' if port is not the default one (3306)"]));
        $oMorpho->add(new \Formal\Element\Text(["prop" => "PROJECT_DB_MYSQL_DBNAME", "label" => "MySQL database name"]));
        $oMorpho->add(new \Formal\Element\Text(["prop" => "PROJECT_DB_MYSQL_USERNAME", "label" => "MySQL username"]));
        $oMorpho->add(new \Formal\Element\Password(["prop" => "PROJECT_DB_MYSQL_PASSWORD", "label" => "MySQL password"]));
        return $oMorpho;
    }