Elgg
Version 1.11
|
Public Member Functions | |
__construct (Pool $cache, Database $db) | |
Constructor. More... | |
getId ($string, $case_sensitive=true) | |
Gets the metastring identifier for a value. More... | |
add ($string) | |
Add a metastring. More... | |
getTableName () | |
The full name of the metastrings table, including prefix. More... | |
Definition at line 21 of file MetastringsTable.php.
Constructor.
Pool | $cache | A cache for this table. |
Database | $db | The database. |
Definition at line 35 of file MetastringsTable.php.
Elgg\Database\MetastringsTable::add | ( | $string | ) |
Add a metastring.
string | $string | The value to be normalized |
Definition at line 116 of file MetastringsTable.php.
Elgg\Database\MetastringsTable::getId | ( | $string, | |
$case_sensitive = true |
|||
) |
Gets the metastring identifier for a value.
Elgg normalizes the names and values of annotations and metadata. This function provides the identifier used as the index in the metastrings table. Plugin developers should only use this if denormalizing names/values for performance reasons (to avoid multiple joins on the metastrings table).
string | $string | The value |
bool | $case_sensitive | Should the retrieval be case sensitive? If not, there may be more than one result |
Definition at line 54 of file MetastringsTable.php.
Elgg\Database\MetastringsTable::getTableName | ( | ) |
The full name of the metastrings table, including prefix.
Definition at line 127 of file MetastringsTable.php.