src/Forms/Modules/Backend/RadioForm.php
private function FetchOptions()
    {
        $strOptions = $this->Value('Options');
        $lines = Str::SplitLines($strOptions);
        $result = array();
        foreach ($lines as $line)
        {
            $dpPos = strpos($line, ':');
            if ($dpPos !== false)
            {
                $value = trim(substr($line, 0, $dpPos));
                $text = trim(substr($line, $dpPos + 1));
            }
            else
            {
                $value = $line;
                $text = '';
            }
            $result[$value] = $text;
        }
        return $result;
    }
private function FetchOptions()
    {
        $strOptions = $this->Value('Options');
        $lines = Str::SplitLines($strOptions);
        $result = array();
        foreach ($lines as $line)
        {
            $dpPos = strpos($line, ':');
            if ($dpPos !== false)
            {
                $value = trim(substr($line, 0, $dpPos));
                $text = trim(substr($line, $dpPos + 1));
            }
            else
            {
                $value = $line;
                $text = '';
            }
            $result[$value] = $text;
        }
        return $result;
    }
private function FetchOptions ( ) { $ strOptions = $ this -> Value ( 'Options' ) ; $ lines = Str :: SplitLines ( $ strOptions ) ; $ result = array ( ) ; foreach ( $ lines as $ line ) { $ dpPos = strpos ( $ line , ':' ) ; if ( $ dpPos !== false ) { $ value = trim ( substr ( $ line , 0 , $ dpPos ) ) ; $ text = trim ( substr ( $ line , $ dpPos + 1 ) ) ; } else { $ value = $ line ; $ text = '' ; } $ result [ $ value ] = $ text ; } return $ result ; }
Fetches submitted options as array
@return array Returns the submitted options as value=>text array
Fetches submitted options as array