Version: current

# Class phpMorphy_GramInfo_Decorator

This file is part of phpMorphy library

Copyright c 2007-2008 Kamaev Vladimir <heromantor@users.sourceforge.net>

This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.

  phpMorphy_GramInfo_Decorator implements phpMorphy_GramInfo_Interace

### Direct known subclasses

`phpMorphy_GramInfo_AncodeCache`, `phpMorphy_GramInfo_Proxy`, `phpMorphy_GramInfo_RuntimeCaching`

### Indirect known subclasses

`phpMorphy_GramInfo_Proxy_WithHeader`

Located at search/code/phpmorphy/graminfo/graminfo.php

## Methods summary

`public` | # `phpMorphy_GramInfo_Decorator( `phpMorphy_GramInfo_Interace` $info )`
`public array` | # `readGramInfoHeader( integer $offset )` Reads graminfo header Reads graminfo header #### Parameters $offset int $offset #### Returns `array` array #### Implementation of `phpMorphy_GramInfo_Interace::readGramInfoHeader()`
`public` | # `getGramInfoHeaderSize( )` Returns size of header struct Returns size of header struct #### Implementation of `phpMorphy_GramInfo_Interace::getGramInfoHeaderSize()`
`public array` | # `readAncodes( array $info )` Read ancodes section for header retrieved with readGramInfoHeader Read ancodes section for header retrieved with readGramInfoHeader #### Parameters $info array $info #### Returns `array` array #### Implementation of `phpMorphy_GramInfo_Interace::readAncodes()`
`public array` | # `readFlexiaData( array $info )` Read flexias section for header retrieved with readGramInfoHeader Read flexias section for header retrieved with readGramInfoHeader #### Parameters $info array $info #### Returns `array` array #### Implementation of `phpMorphy_GramInfo_Interace::readFlexiaData()`
`public array` | # `readAllGramInfoOffsets( )` Read all graminfo headers offsets, which can be used latter for readGramInfoHeader method Read all graminfo headers offsets, which can be used latter for readGramInfoHeader method #### Returns `array` array #### Implementation of `phpMorphy_GramInfo_Interace::readAllGramInfoOffsets()`
`public` | # `readAllPartOfSpeech( )` #### Implementation of `phpMorphy_GramInfo_Interace::readAllPartOfSpeech()`
`public` | # `readAllGrammems( )` #### Implementation of `phpMorphy_GramInfo_Interace::readAllGrammems()`
`public` | # `readAllAncodes( )` #### Implementation of `phpMorphy_GramInfo_Interace::readAllAncodes()`
`public string` | # `getLocale( )` Returns langugage for graminfo file Returns langugage for graminfo file #### Returns `string` string #### Implementation of `phpMorphy_GramInfo_Interace::getLocale()`
`public string` | # `getEncoding( )` Return encoding for graminfo file Return encoding for graminfo file #### Returns `string` string #### Implementation of `phpMorphy_GramInfo_Interace::getEncoding()`
`public integer` | # `getCharSize( )` Return size of character (cp1251 - 1, utf8 - 1, utf16 - 2, utf32 - 4 etc) Return size of character (cp1251 - 1, utf8 - 1, utf16 - 2, utf32 - 4 etc) #### Returns `integer` int #### Implementation of `phpMorphy_GramInfo_Interace::getCharSize()`
`public string` | # `getEnds( )` Return end of string value (usually string with \0 value of char_size + 1 length) Return end of string value (usually string with \0 value of char_size + 1 length) #### Returns `string` string #### Implementation of `phpMorphy_GramInfo_Interace::getEnds()`
`public` | # `getHeader( )` #### Implementation of `phpMorphy_GramInfo_Interace::getHeader()`

### Magic methods summary

## Properties summary

`protected mixed` | $info | #

[Raise a SilverStripe Framework issue/bug](https://github.com/silverstripe/silverstripe-framework/issues/new)
- [Raise a SilverStripe CMS issue/bug](https://github.com/silverstripe/silverstripe-cms/issues/new)
- Please use the Silverstripe Forums to ask development related questions. -