# Memory

final class Memory

## Methods

static Memory
getInstance()

No description

void
setDictionary(object $newDictionary)

No description

object|null
getDictionary()

No description

object|null
getLoader()

No description

static string
find(string $content)

Translate a content. If not exists turn it back

findFromAdditionalWords(string $content)

No description

Memory
registerLanguages(array $languages)

Massive registration language list

Memory
registerLanguage(string $code, string $englishName, string $nativeName, string $path = LIB . 'lang/locale/')

Register a language into list

registerLanguageFromPlugin()

No description

void
appendWords(array $words)

Add additional word

array
getLanguages()

Getter for language list

void
setLocale(string $locale)

Setter for locate prop

void
setLocalePath(string $localePath)

No description

void
setLocaleFormat(string $localeFormat)

No description

bool
isLocaleExists()

No description

string
getLocalePath()

Concating some property into string as locale path

void
forgetTempLanguage(string $languageName, string $remeberAs = 'select_lang')

Remove last temp language cookie

string
rememberTempLanguage(string $languageName, string $remeberAs = 'select_lang')

Register new temp language

string|null
getLastTempLanguage(string $remeberAs = 'select_lang')

Getter for temp language

findLanguage(string $localeInput)

No description

bool
hasTempLanguage(string $remeberAs = 'select_lang')

No description

loadPluginLocale()

No description

void
load(Closure|string $callback = '')

Load all configuration and setup dictionary

## Details

###
at line 91
`static Memory getInstance()`

No description

#### Return Value

Memory |

###
at line 97
`void setDictionary(object $newDictionary)`

No description

#### Parameters

object | $newDictionary |

#### Return Value

void |

###
at line 102
`object|null getDictionary()`

No description

#### Return Value

object|null |

###
at line 107
`object|null getLoader()`

No description

#### Return Value

object|null |

###
at line 119
`static string find(string $content)`

Translate a content. If not exists turn it back

#### Parameters

string | $content |

#### Return Value

string |

###
at line 126
`findFromAdditionalWords(string $content)`

No description

#### Parameters

string | $content |

###
at line 137
`Memory registerLanguages(array $languages)`

Massive registration language list

#### Parameters

array | $languages |

#### Return Value

Memory |

###
at line 151
`Memory registerLanguage(string $code, string $englishName, string $nativeName, string $path = LIB . 'lang/locale/')`

Register a language into list

#### Parameters

string | $code |
string | $englishName |
string | $nativeName |
string | $path |

#### Return Value

Memory |

###
at line 157
`registerLanguageFromPlugin()`

No description

###
at line 172
`void appendWords(array $words)`

Add additional word

#### Parameters

array | $words |

#### Return Value

void |

###
at line 182
`array getLanguages()`

Getter for language list

#### Return Value

array |

###
at line 193
`void setLocale(string $locale)`

Setter for locate prop

#### Parameters

string | $locale |

#### Return Value

void |

###
at line 198
`void setLocalePath(string $localePath)`

No description

#### Parameters

string | $localePath |

#### Return Value

void |

###
at line 203
`void setLocaleFormat(string $localeFormat)`

No description

#### Parameters

string | $localeFormat |

#### Return Value

void |

###
at line 211
`bool isLocaleExists()`

No description

#### Return Value

bool |

###
at line 222
`string getLocalePath()`

Concating some property into string as locale path

#### Return Value

string |

###
at line 234
`void forgetTempLanguage(string $languageName, string $remeberAs = 'select_lang')`

Remove last temp language cookie

#### Parameters

string | $languageName |
string | $remeberAs |

#### Return Value

void |

###
at line 253
`string rememberTempLanguage(string $languageName, string $remeberAs = 'select_lang')`

Register new temp language

#### Parameters

string | $languageName |
string | $remeberAs |

#### Return Value

string |

###
at line 273
`string|null getLastTempLanguage(string $remeberAs = 'select_lang')`

Getter for temp language

#### Parameters

string | $remeberAs |

#### Return Value

string|null |

###
at line 278
`findLanguage(string $localeInput)`

No description

#### Parameters

string | $localeInput |

###
at line 289
`bool hasTempLanguage(string $remeberAs = 'select_lang')`

No description

#### Parameters

string | $remeberAs |

#### Return Value

bool |

###
at line 294
`loadPluginLocale()`

No description

###
at line 310
`void load(Closure|string $callback = '')`

Load all configuration and setup dictionary

#### Parameters

Closure|string | $callback |

#### Return Value

void |