public function acceptSubcontent($var)
    {
        if (!array_key_exists($var, $this->_accept)) {
            return false;
        }

        foreach ($this->_accept[$var] as $type) {
            if (!in_array($type, ['scalar', 'array'])) {
                return true;
            }
        }

        return false;
    }
public function acceptSubcontent($var)
    {
        if (!array_key_exists($var, $this->_accept)) {
            return false;
        }

        foreach ($this->_accept[$var] as $type) {
            if (!in_array($type, ['scalar', 'array'])) {
                return true;
            }
        }

        return false;
    }
public function acceptSubcontent ( $ var ) { if ( ! array_key_exists ( $ var , $ this -> _accept ) ) { return false ; } foreach ( $ this -> _accept [ $ var ] as $ type ) { if ( ! in_array ( $ type , [ 'scalar' , 'array' ] ) ) { return true ; } } return false ; }
Checks if the element accept subcontent.

@param string $var the element

@return Boolean TRUE if a subcontents are accepted, FALSE otherwise
Checks if the element accept subcontent .