Version: current

# Class phpMorphy_Fsa_Tree_Mem

This file is autogenerated at Wed, 14 Oct 2009 01:33:59 +0400, don`t change it!

  phpMorphy_Fsa implements phpMorphy_Fsa_Interface
  phpMorphy_Fsa_Tree_Mem

Located at search/code/phpmorphy/fsa/access/fsa_tree_mem.php

## Methods summary

`public boolean` | # `walk( mixed $trans, string $word, boolean $readAnnot = true )` Find word in automat Find word in automat #### Parameters $trans mixed $trans starting transition $word string $word $readAnnot bool $readAnnot read annot or simple check if word exists in automat #### Returns `boolean` TRUE if word is found, FALSE otherwise
`public` | # `collect( mixed $startNode, mixed $callback, boolean $readAnnot = true, string $path = '' )` Traverse automat and collect words For each found words $callback function invoked with follow arguments: call_user_func($callback, $word, $annot) when $readAnnot is FALSE then $annot arg is always NULL Traverse automat and collect words For each found words $callback function invoked with follow arguments: call_user_func($callback, $word, $annot) when $readAnnot is FALSE then $annot arg is always NULL #### Parameters $startNode mixed $startNode $callback mixed $callback callback function(in php format callback i.e. string or array(obj, method) or array(class, method) $readAnnot bool $readAnnot read annot $path string $path string to be append to all words
`public array` | # `readState( integer $index )` Read state at given index Read state at given index #### Parameters $index int $index #### Returns `array` array
`public array` | # `unpackTranses( mixed $rawTranses )` Unpack transition from binary form to array Unpack transition from binary form to array #### Parameters $rawTranses mixed $rawTranses may be array for convert more than one transitions #### Returns `array` array
`protected` | # `readRootTrans( )`
`protected` | # `readAlphabet( )`
`public string` | # `getAnnot( array $trans )` Return annotation for given transition(if annotation flag is set for given trans) Return annotation for given transition(if annotation flag is set for given trans) #### Parameters $trans array $trans #### Returns `string` string

### Methods inherited from phpMorphy_Fsa

`create()`, `createState()`, `getAlphabet()`, `getRootState()`, `getRootStateIndex()`, `getRootTrans()`, `phpMorphy_Fsa()`, `readHeader()`, `validateHeader()`

### Magic methods summary

## Constants summary

### Constants inherited from phpMorphy_Fsa

`HEADER_SIZE`

## Properties summary

### Properties inherited from phpMorphy_Fsa

`$alphabet`, `$fsa_start`, `$header`, `$resource`, `$root_trans`

[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. -