public function isValid()
    {
        if (null === $this->_isValid) {
            $this->_isValid = false;

            if (null !== $data_object = $this->getDataObject()) {
                if (true === property_exists($data_object, 'templateLayouts')
                        && true === is_array($data_object->templateLayouts)
                        && 0 < count($data_object->templateLayouts)) {
                    $this->_isValid = true;

                    foreach ($data_object->templateLayouts as $zone) {
                        if (false === property_exists($zone, 'id')
                                || false === property_exists($zone, 'defaultContainer')
                                || false === property_exists($zone, 'target')
                                || false === property_exists($zone, 'gridClassPrefix')
                                || false === property_exists($zone, 'gridSize')) {
                            $this->_isValid = false;
                            break;
                        }
                    }
                }
            }
        }

        return $this->_isValid;
    }
public function isValid()
    {
        if (null === $this->_isValid) {
            $this->_isValid = false;

            if (null !== $data_object = $this->getDataObject()) {
                if (true === property_exists($data_object, 'templateLayouts')
                        && true === is_array($data_object->templateLayouts)
                        && 0 < count($data_object->templateLayouts)) {
                    $this->_isValid = true;

                    foreach ($data_object->templateLayouts as $zone) {
                        if (false === property_exists($zone, 'id')
                                || false === property_exists($zone, 'defaultContainer')
                                || false === property_exists($zone, 'target')
                                || false === property_exists($zone, 'gridClassPrefix')
                                || false === property_exists($zone, 'gridSize')) {
                            $this->_isValid = false;
                            break;
                        }
                    }
                }
            }
        }

        return $this->_isValid;
    }
public function isValid ( ) { if ( null === $ this -> _isValid ) { $ this -> _isValid = false ; if ( null !== $ data_object = $ this -> getDataObject ( ) ) { if ( true === property_exists ( $ data_object , 'templateLayouts' ) && true === is_array ( $ data_object -> templateLayouts ) && 0 < count ( $ data_object -> templateLayouts ) ) { $ this -> _isValid = true ; foreach ( $ data_object -> templateLayouts as $ zone ) { if ( false === property_exists ( $ zone , 'id' ) || false === property_exists ( $ zone , 'defaultContainer' ) || false === property_exists ( $ zone , 'target' ) || false === property_exists ( $ zone , 'gridClassPrefix' ) || false === property_exists ( $ zone , 'gridSize' ) ) { $ this -> _isValid = false ; break ; } } } } } return $ this -> _isValid ; }
Checks for a valid structure of the unserialized data object.

@return Boolean Returns TRUE if the data object is valid, FALSE otherwise
Checks for a valid structure of the unserialized data object .