src/Sulu/Component/Content/Compat/Property.php
public function getIsMultiple()
    {
        $minOccurs = $this->getMinOccurs();
        $maxOccurs = $this->getMaxOccurs();

        if (is_null($minOccurs) && is_null($maxOccurs)) {
            // if no occurs attributes are set it defaults to false
            return false;
        }

        if (0 === $minOccurs && 1 === $maxOccurs) {
            // this one allows to have an optional field
            return true;
        }

        if (1 === $minOccurs && 1 === $maxOccurs) {
            // if the occurences have a high and low limit of 1 it should be displayed as single
            return false;
        }

        // if minOccurs is set a value of 1 is enough, because maxOccurs would be considered "unbound" when null
        return $minOccurs >= 1 || $maxOccurs > 1;
    }
public function getIsMultiple()
    {
        $minOccurs = $this->getMinOccurs();
        $maxOccurs = $this->getMaxOccurs();

        if (is_null($minOccurs) && is_null($maxOccurs)) {
            // if no occurs attributes are set it defaults to false
            return false;
        }

        if (0 === $minOccurs && 1 === $maxOccurs) {
            // this one allows to have an optional field
            return true;
        }

        if (1 === $minOccurs && 1 === $maxOccurs) {
            // if the occurences have a high and low limit of 1 it should be displayed as single
            return false;
        }

        // if minOccurs is set a value of 1 is enough, because maxOccurs would be considered "unbound" when null
        return $minOccurs >= 1 || $maxOccurs > 1;
    }
public function getIsMultiple ( ) { $ minOccurs = $ this -> getMinOccurs ( ) ; $ maxOccurs = $ this -> getMaxOccurs ( ) ; if ( is_null ( $ minOccurs ) && is_null ( $ maxOccurs ) ) { // if no occurs attributes are set it defaults to false return false ; } if ( 0 === $ minOccurs && 1 === $ maxOccurs ) { // this one allows to have an optional field return true ; } if ( 1 === $ minOccurs && 1 === $ maxOccurs ) { // if the occurences have a high and low limit of 1 it should be displayed as single return false ; } // if minOccurs is set a value of 1 is enough, because maxOccurs would be considered "unbound" when null return $ minOccurs >= 1 || $ maxOccurs > 1 ; }
returns TRUE if property is multiple.

@return bool
returns TRUE if property is multiple .