src/Forms/Logic/Tree/RadioListProvider.php
public function TopMost()
    {
        $sql = Access::SqlBuilder();
        $tblOption = RadioOption::Schema()->Table();
        $where = $sql->Equals($tblOption->Field('RadioField'), $sql->Value($this->radio->GetID()))
                ->And_($sql->IsNull($tblOption->Field('Previous')));
        
        return RadioOption::Schema()->First($where);
    }
public function TopMost()
    {
        $sql = Access::SqlBuilder();
        $tblOption = RadioOption::Schema()->Table();
        $where = $sql->Equals($tblOption->Field('RadioField'), $sql->Value($this->radio->GetID()))
                ->And_($sql->IsNull($tblOption->Field('Previous')));
        
        return RadioOption::Schema()->First($where);
    }
public function TopMost ( ) { $ sql = Access :: SqlBuilder ( ) ; $ tblOption = RadioOption :: Schema ( ) -> Table ( ) ; $ where = $ sql -> Equals ( $ tblOption -> Field ( 'RadioField' ) , $ sql -> Value ( $ this -> radio -> GetID ( ) ) ) -> And_ ( $ sql -> IsNull ( $ tblOption -> Field ( 'Previous' ) ) ) ; return RadioOption :: Schema ( ) -> First ( $ where ) ; }
Returns the top most option
@return RadioOption
Returns the top most option