private function getZoneOptions(\stdClass $zone)
    {
        $options = array(
            'parameters' => array(
                'class' => array(
                    'type' => 'scalar',
                    'options' => array('default' => 'row'),
                ),
            ),
        );

        if (true === property_exists($zone, 'accept')
                && true === is_array($zone->accept)
                && 0 < count($zone->accept)
                && $zone->accept[0] != '') {
            $options['accept'] = $zone->accept;

            $func = function (&$item, $key) {
                        $item = ('' == $item) ? null : 'BackBee\ClassContent\\'.$item;
                    };

            array_walk($options['accept'], $func);
        }

        if (true === property_exists($zone, 'maxentry') && 0 < $zone->maxentry) {
            $options['maxentry'] = $zone->maxentry;
        }

        return $options;
    }
private function getZoneOptions(\stdClass $zone)
    {
        $options = array(
            'parameters' => array(
                'class' => array(
                    'type' => 'scalar',
                    'options' => array('default' => 'row'),
                ),
            ),
        );

        if (true === property_exists($zone, 'accept')
                && true === is_array($zone->accept)
                && 0 < count($zone->accept)
                && $zone->accept[0] != '') {
            $options['accept'] = $zone->accept;

            $func = function (&$item, $key) {
                        $item = ('' == $item) ? null : 'BackBee\ClassContent\\'.$item;
                    };

            array_walk($options['accept'], $func);
        }

        if (true === property_exists($zone, 'maxentry') && 0 < $zone->maxentry) {
            $options['maxentry'] = $zone->maxentry;
        }

        return $options;
    }
private function getZoneOptions ( \ stdClass $ zone ) { $ options = array ( 'parameters' => array ( 'class' => array ( 'type' => 'scalar' , 'options' => array ( 'default' => 'row' ) , ) , ) , ) ; if ( true === property_exists ( $ zone , 'accept' ) && true === is_array ( $ zone -> accept ) && 0 < count ( $ zone -> accept ) && $ zone -> accept [ 0 ] != '' ) { $ options [ 'accept' ] = $ zone -> accept ; $ func = function ( & $ item , $ key ) { $ item = ( '' == $ item ) ? null : 'BackBee\ClassContent\\' . $ item ; } ; array_walk ( $ options [ 'accept' ] , $ func ) ; } if ( true === property_exists ( $ zone , 'maxentry' ) && 0 < $ zone -> maxentry ) { $ options [ 'maxentry' ] = $ zone -> maxentry ; } return $ options ; }
Returns a contentset options according to the layout zone.

@param \StdClass $zone

@return array
Returns a contentset options according to the layout zone .