Ubiquity 2.5.2
php rapid development framework
Loading...
Searching...
No Matches
MessagesUpdates Class Reference

Store translation updates. More...

Public Member Functions

 __construct ($locale, $domain)
 
 load ()
 
 exists ()
 
 hasUpdates ()
 
 mergeMessages ($messages, $beforeSave=false)
 
 addToDelete ($key)
 
 updateValue ($key, $value)
 
 addValue ($key, $value, $keyId=null)
 
 removeAddValue ($key)
 
 replaceKey ($key, $newKey, $value)
 
 removeNewKey ($key)
 
 save ()
 
 delete ()
 
 isDirty ()
 
 __toString ()
 

Protected Member Functions

 getKey ()
 

Protected Attributes

 $locale
 
 $domain
 
 $key = "tmp/translations/"
 
 $toUpdate
 
 $toAdd
 
 $toDelete
 
 $dirty
 
 $newKeys
 

Detailed Description

Store translation updates.

Ubiquity\translation$MessagesUpdates This class is part of Ubiquity

Author
jcheron myadd.nosp@m.ress.nosp@m.mail@.nosp@m.gmai.nosp@m.l.com
Version
1.0.0
Since
Ubiquity 2.1.4

Definition at line 17 of file MessagesUpdates.php.

Constructor & Destructor Documentation

◆ __construct()

__construct (   $locale,
  $domain 
)

Definition at line 31 of file MessagesUpdates.php.

Member Function Documentation

◆ __toString()

__toString ( )

Definition at line 147 of file MessagesUpdates.php.

◆ addToDelete()

addToDelete (   $key)

Definition at line 78 of file MessagesUpdates.php.

◆ addValue()

addValue (   $key,
  $value,
  $keyId = null 
)

Definition at line 94 of file MessagesUpdates.php.

◆ delete()

delete ( )

Definition at line 138 of file MessagesUpdates.php.

◆ exists()

exists ( )

Definition at line 48 of file MessagesUpdates.php.

◆ getKey()

getKey ( )
protected

Definition at line 27 of file MessagesUpdates.php.

◆ hasUpdates()

hasUpdates ( )

Definition at line 53 of file MessagesUpdates.php.

◆ isDirty()

isDirty ( )

Definition at line 143 of file MessagesUpdates.php.

◆ load()

load ( )

Definition at line 37 of file MessagesUpdates.php.

◆ mergeMessages()

mergeMessages (   $messages,
  $beforeSave = false 
)

Definition at line 57 of file MessagesUpdates.php.

◆ removeAddValue()

removeAddValue (   $key)

Definition at line 107 of file MessagesUpdates.php.

◆ removeNewKey()

removeNewKey (   $key)

Definition at line 118 of file MessagesUpdates.php.

◆ replaceKey()

replaceKey (   $key,
  $newKey,
  $value 
)

Definition at line 113 of file MessagesUpdates.php.

◆ save()

save ( )

Definition at line 128 of file MessagesUpdates.php.

◆ updateValue()

updateValue (   $key,
  $value 
)

Definition at line 86 of file MessagesUpdates.php.

Field Documentation

◆ $dirty

$dirty
protected

Definition at line 24 of file MessagesUpdates.php.

◆ $domain

$domain
protected

Definition at line 19 of file MessagesUpdates.php.

◆ $key

$key = "tmp/translations/"
protected

Definition at line 20 of file MessagesUpdates.php.

◆ $locale

$locale
protected

Definition at line 18 of file MessagesUpdates.php.

◆ $newKeys

$newKeys
protected

Definition at line 25 of file MessagesUpdates.php.

◆ $toAdd

$toAdd
protected

Definition at line 22 of file MessagesUpdates.php.

◆ $toDelete

$toDelete
protected

Definition at line 23 of file MessagesUpdates.php.

◆ $toUpdate

$toUpdate
protected

Definition at line 21 of file MessagesUpdates.php.


The documentation for this class was generated from the following file: