src/Forms/Modules/Frontend/Select.php
protected function Init()
    {
        $select = ContentSelect::Schema()->ByContent($this->Content());
        $disableValidation = $select->GetDisableFrontendValidation();
        $this->label = $select->GetLabel();
        $this->name = $select->GetName();
        $this->required = $disableValidation ? false : $select->GetRequired();
        $this->value = $this->Value($this->name, $select->GetValue());
        $this->id = $this->CssID() ? $this->CssID(): $this->name;
        $list = new SelectListProvider($select);
        $this->options = $list->ToArray();
        $this->RealizeField($this->name);
        return parent::Init();
    }
protected function Init()
    {
        $select = ContentSelect::Schema()->ByContent($this->Content());
        $disableValidation = $select->GetDisableFrontendValidation();
        $this->label = $select->GetLabel();
        $this->name = $select->GetName();
        $this->required = $disableValidation ? false : $select->GetRequired();
        $this->value = $this->Value($this->name, $select->GetValue());
        $this->id = $this->CssID() ? $this->CssID(): $this->name;
        $list = new SelectListProvider($select);
        $this->options = $list->ToArray();
        $this->RealizeField($this->name);
        return parent::Init();
    }
protected function Init ( ) { $ select = ContentSelect :: Schema ( ) -> ByContent ( $ this -> Content ( ) ) ; $ disableValidation = $ select -> GetDisableFrontendValidation ( ) ; $ this -> label = $ select -> GetLabel ( ) ; $ this -> name = $ select -> GetName ( ) ; $ this -> required = $ disableValidation ? false : $ select -> GetRequired ( ) ; $ this -> value = $ this -> Value ( $ this -> name , $ select -> GetValue ( ) ) ; $ this -> id = $ this -> CssID ( ) ? $ this -> CssID ( ) : $ this -> name ; $ list = new SelectListProvider ( $ select ) ; $ this -> options = $ list -> ToArray ( ) ; $ this -> RealizeField ( $ this -> name ) ; return parent :: Init ( ) ; }
Initializes the select content
@return boolean Returns false if processing shall continue
Initializes the select content