Swat/SwatCheckboxEntryList.php
public function setEntryValue($option_value, $entry_value)
    {
        $options = $this->getOptions();
        $option_values = array();
        foreach ($options as $option) {
            $option_values[] = $option->value;
        }

        if (!in_array($option_value, $option_values)) {
            throw new SwatInvalidPropertyException(
                sprintf(
                    'No option with a value of "%s" exists in this checkbox ' .
                        'entry list',
                    $option_value
                )
            );
        }

        $this->getEntryWidget($option_value)->getFirst()->value = $entry_value;
    }
public function setEntryValue($option_value, $entry_value)
    {
        $options = $this->getOptions();
        $option_values = array();
        foreach ($options as $option) {
            $option_values[] = $option->value;
        }

        if (!in_array($option_value, $option_values)) {
            throw new SwatInvalidPropertyException(
                sprintf(
                    'No option with a value of "%s" exists in this checkbox ' .
                        'entry list',
                    $option_value
                )
            );
        }

        $this->getEntryWidget($option_value)->getFirst()->value = $entry_value;
    }
public function setEntryValue ( $ option_value , $ entry_value ) { $ options = $ this -> getOptions ( ) ; $ option_values = array ( ) ; foreach ( $ options as $ option ) { $ option_values [ ] = $ option -> value ; } if ( ! in_array ( $ option_value , $ option_values ) ) { throw new SwatInvalidPropertyException ( sprintf ( 'No option with a value of "%s" exists in this checkbox ' . 'entry list' , $ option_value ) ) ; } $ this -> getEntryWidget ( $ option_value ) -> getFirst ( ) -> value = $ entry_value ; }
Sets the value of an entry widget in this checkbox entry list

@param string $option_value the value of the option for which to set
the entry widget value.
@param string $entry_value the value to set on the entry widget.

@throws SwatInvalidPropertyException if the option value does not match
an existing option value in this
checkbox entry list.
Sets the value of an entry widget in this checkbox entry list