function i18n_object_wrapper::get_key in Internationalization 7
Get key value from object/array
2 calls to i18n_object_wrapper::get_key()
- i18n_object_wrapper::get_index in ./
i18n_object.inc - Get string numeric key for indexing.
- i18n_string_object_wrapper::get_string_context in i18n_string/
i18n_string.inc - Get string context
File
- ./
i18n_object.inc, line 64 - i18n Object Class
Class
- i18n_object_wrapper
- Object wrapper
Code
function get_key($default = NULL) {
if ($field = $this
->get_info('key')) {
return $this
->get_field($field, $default);
}
else {
return $default;
}
}