original_string: public function unserializeContentClassAttribute( $classAttribute, $attributeNode, $attributeParametersNode )
      {
          /** @var $domNodes DOMNodeList */
          $subTreeLimit = 0;
          $domNodes = $attributeParametersNode->getElementsByTagName( 'subtree-limit' );
          if ( $domNodes->length > 0 )
              $subTreeLimit = (int) $domNodes->item( 0 )->textContent;
  
          $maxTags = 0;
          $domNodes = $attributeParametersNode->getElementsByTagName( 'max-tags' );
          if ( $domNodes->length > 0 )
              $maxTags = (int) $domNodes->item( 0 )->textContent;
  
          $hideRootTag = 0;
          $domNodes = $attributeParametersNode->getElementsByTagName( 'hide-root-tag' );
          if ( $domNodes->length > 0 && $domNodes->item( 0 )->textContent === 'true' )
              $hideRootTag = 1;
  
          $editView = self::EDIT_VIEW_DEFAULT_VALUE;
          $domNodes = $attributeParametersNode->getElementsByTagName( 'edit-view' );
          if ( $domNodes->length > 0 )
          {
              $domNodeContent = trim( $domNodes->item( 0 )->textContent );
              if ( !empty( $domNodeContent ) )
              {
                  $editView = $domNodeContent;
              }
          }
  
          $classAttribute->setAttribute( self::SUBTREE_LIMIT_FIELD, $subTreeLimit );
          $classAttribute->setAttribute( self::MAX_TAGS_FIELD, $maxTags );
          $classAttribute->setAttribute( self::HIDE_ROOT_TAG_FIELD, $hideRootTag );
          $classAttribute->setAttribute( self::EDIT_VIEW_FIELD, $editView );
      }
code: public function unserializeContentClassAttribute( $classAttribute, $attributeNode, $attributeParametersNode )
      {
          /** @var $domNodes DOMNodeList */
          $subTreeLimit = 0;
          $domNodes = $attributeParametersNode->getElementsByTagName( 'subtree-limit' );
          if ( $domNodes->length > 0 )
              $subTreeLimit = (int) $domNodes->item( 0 )->textContent;
  
          $maxTags = 0;
          $domNodes = $attributeParametersNode->getElementsByTagName( 'max-tags' );
          if ( $domNodes->length > 0 )
              $maxTags = (int) $domNodes->item( 0 )->textContent;
  
          $hideRootTag = 0;
          $domNodes = $attributeParametersNode->getElementsByTagName( 'hide-root-tag' );
          if ( $domNodes->length > 0 && $domNodes->item( 0 )->textContent === 'true' )
              $hideRootTag = 1;
  
          $editView = self::EDIT_VIEW_DEFAULT_VALUE;
          $domNodes = $attributeParametersNode->getElementsByTagName( 'edit-view' );
          if ( $domNodes->length > 0 )
          {
              $domNodeContent = trim( $domNodes->item( 0 )->textContent );
              if ( !empty( $domNodeContent ) )
              {
                  $editView = $domNodeContent;
              }
          }
  
          $classAttribute->setAttribute( self::SUBTREE_LIMIT_FIELD, $subTreeLimit );
          $classAttribute->setAttribute( self::MAX_TAGS_FIELD, $maxTags );
          $classAttribute->setAttribute( self::HIDE_ROOT_TAG_FIELD, $hideRootTag );
          $classAttribute->setAttribute( self::EDIT_VIEW_FIELD, $editView );
      }
code_tokens: public function unserializeContentClassAttribute ( $ classAttribute , $ attributeNode , $ attributeParametersNode ) { /** @var $domNodes DOMNodeList */ $ subTreeLimit = 0 ; $ domNodes = $ attributeParametersNode -> getElementsByTagName ( 'subtree-limit' ) ; if ( $ domNodes -> length > 0 ) $ subTreeLimit = ( int ) $ domNodes -> item ( 0 ) -> textContent ; $ maxTags = 0 ; $ domNodes = $ attributeParametersNode -> getElementsByTagName ( 'max-tags' ) ; if ( $ domNodes -> length > 0 ) $ maxTags = ( int ) $ domNodes -> item ( 0 ) -> textContent ; $ hideRootTag = 0 ; $ domNodes = $ attributeParametersNode -> getElementsByTagName ( 'hide-root-tag' ) ; if ( $ domNodes -> length > 0 && $ domNodes -> item ( 0 ) -> textContent === 'true' ) $ hideRootTag = 1 ; $ editView = self :: EDIT_VIEW_DEFAULT_VALUE ; $ domNodes = $ attributeParametersNode -> getElementsByTagName ( 'edit-view' ) ; if ( $ domNodes -> length > 0 ) { $ domNodeContent = trim ( $ domNodes -> item ( 0 ) -> textContent ) ; if ( ! empty ( $ domNodeContent ) ) { $ editView = $ domNodeContent ; } } $ classAttribute -> setAttribute ( self :: SUBTREE_LIMIT_FIELD , $ subTreeLimit ) ; $ classAttribute -> setAttribute ( self :: MAX_TAGS_FIELD , $ maxTags ) ; $ classAttribute -> setAttribute ( self :: HIDE_ROOT_TAG_FIELD , $ hideRootTag ) ; $ classAttribute -> setAttribute ( self :: EDIT_VIEW_FIELD , $ editView ) ; }
docstring: Extracts values from the attribute parameters and sets it in the class attribute.
  
  @param eZContentClassAttribute $classAttribute
  @param DOMElement $attributeNode
  @param DOMElement $attributeParametersNode
docstring_tokens: Extracts values from the attribute parameters and sets it in the class attribute .