Swat/SwatListEntry.php
public function getNote()
    {
        $message = null;
        $locale = SwatI18NLocale::get();

        if (
            $this->max_entries !== null &&
            $this->max_entries > 0 &&
            $this->min_entries === null
        ) {
            $message = new SwatMessage(
                sprintf(
                    Swat::ngettext(
                        'List can contain at most %s entry',
                        'List can contain at most %s entries',
                        $this->max_entries
                    ),
                    $locale->formatNumber($this->max_entries)
                )
            );
        } elseif (
            ($this->max_entries === null || $this->max_entries === 0) &&
            $this->min_entries > 1 &&
            $this->required == true
        ) {
            $message = new SwatMessage(
                sprintf(
                    Swat::ngettext(
                        'List must contain at least %s entry',
                        'List must contain at least %s entries',
                        $this->min_entries
                    ),
                    $locale->formatNumber($this->min_entries)
                )
            );
        } elseif (
            $this->max_entries !== null &&
            $this->max_entries > 0 &&
            $this->min_entries !== null &&
            $this->required == true
        ) {
            $message = new SwatMessage(
                sprintf(
                    'List must contain between %s and %s entries.',
                    $locale->formatNumber($this->min_entries),
                    $locale->formatNumber($this->max_entries)
                )
            );
        }

        return $message;
    }
public function getNote()
    {
        $message = null;
        $locale = SwatI18NLocale::get();

        if (
            $this->max_entries !== null &&
            $this->max_entries > 0 &&
            $this->min_entries === null
        ) {
            $message = new SwatMessage(
                sprintf(
                    Swat::ngettext(
                        'List can contain at most %s entry',
                        'List can contain at most %s entries',
                        $this->max_entries
                    ),
                    $locale->formatNumber($this->max_entries)
                )
            );
        } elseif (
            ($this->max_entries === null || $this->max_entries === 0) &&
            $this->min_entries > 1 &&
            $this->required == true
        ) {
            $message = new SwatMessage(
                sprintf(
                    Swat::ngettext(
                        'List must contain at least %s entry',
                        'List must contain at least %s entries',
                        $this->min_entries
                    ),
                    $locale->formatNumber($this->min_entries)
                )
            );
        } elseif (
            $this->max_entries !== null &&
            $this->max_entries > 0 &&
            $this->min_entries !== null &&
            $this->required == true
        ) {
            $message = new SwatMessage(
                sprintf(
                    'List must contain between %s and %s entries.',
                    $locale->formatNumber($this->min_entries),
                    $locale->formatNumber($this->max_entries)
                )
            );
        }

        return $message;
    }
public function getNote ( ) { $ message = null ; $ locale = SwatI18NLocale :: get ( ) ; if ( $ this -> max_entries !== null && $ this -> max_entries > 0 && $ this -> min_entries === null ) { $ message = new SwatMessage ( sprintf ( Swat :: ngettext ( 'List can contain at most %s entry' , 'List can contain at most %s entries' , $ this -> max_entries ) , $ locale -> formatNumber ( $ this -> max_entries ) ) ) ; } elseif ( ( $ this -> max_entries === null || $ this -> max_entries === 0 ) && $ this -> min_entries > 1 && $ this -> required == true ) { $ message = new SwatMessage ( sprintf ( Swat :: ngettext ( 'List must contain at least %s entry' , 'List must contain at least %s entries' , $ this -> min_entries ) , $ locale -> formatNumber ( $ this -> min_entries ) ) ) ; } elseif ( $ this -> max_entries !== null && $ this -> max_entries > 0 && $ this -> min_entries !== null && $ this -> required == true ) { $ message = new SwatMessage ( sprintf ( 'List must contain between %s and %s entries.' , $ locale -> formatNumber ( $ this -> min_entries ) , $ locale -> formatNumber ( $ this -> max_entries ) ) ) ; } return $ message ; }
Gets a note describing the rules on this list entry

This note informs the user what numbers of entries are valid for this
list entry. This note does not mention anything about what type of
delimiter is used. Developers are responsible for ensuring that users
are notified what type of delimiters are used.

@return SwatMessage an informative note of how to use this list entry.

@see SwatControl::getNote()
Gets a note describing the rules on this list entry