Package Cake

Package summary

Function summary

  • Returns a translated string if one is found; Otherwise, the submitted message.

  • The category argument allows a specific category of the locale settings to be used for fetching a message. Valid categories are: LC_CTYPE, LC_NUMERIC, LC_TIME, LC_COLLATE, LC_MONETARY, LC_MESSAGES and LC_ALL.

  • Allows you to override the current domain for a single message lookup.

  • Allows you to override the current domain for a single message lookup. It also allows you to specify a category.

  • Allows you to override the current domain for a single plural message lookup. It also allows you to specify a category. Returns correct plural form of message identified by $singular and $plural for count $count from domain $domain.

  • Allows you to override the current domain for a single plural message lookup. Returns correct plural form of message identified by $singular and $plural for count $count from domain $domain.

  • Allows you to override the current domain for a single message lookup.

  • Allows you to override the current domain for a single message lookup. It also allows you to specify a category.

  • Allows you to override the current domain for a single plural message lookup. It also allows you to specify a category. Returns correct plural form of message identified by $singular and $plural for count $count from domain $domain.

  • Allows you to override the current domain for a single plural message lookup. Returns correct plural form of message identified by $singular and $plural for count $count from domain $domain.

  • Returns correct plural form of message identified by $singular and $plural for count $count. Some languages have more than one form for plural messages dependent on the count.

  • Returns a translated string if one is found; Otherwise, the submitted message.

  • The category argument allows a specific category of the locale settings to be used for fetching a message. Valid categories are: LC_CTYPE, LC_NUMERIC, LC_TIME, LC_COLLATE, LC_MONETARY, LC_MESSAGES and LC_ALL.

  • Returns correct plural form of message identified by $singular and $plural for count $count. Some languages have more than one form for plural messages dependent on the count.

  • Merge a group of arrays

  • Reads/writes temporary data to cache files or session.

  • Used to delete files in the cache directories, or clear contents of cache directories

  • Loads configuration files. Receives a set of configuration files to load. Example:

  • Convert forward slashes to underscores and removes first and last underscores in a string

  • Prints out debug information about given variable.

  • Gets an environment variable from available sources, and provides emulation for unsupported or inconsistent environment variables (i.e. DOCUMENT_ROOT on IIS, or SCRIPT_NAME in CGI mode). Also exposes some additional custom environment information.

  • Searches include path for files.

  • Convenience method for htmlspecialchars.

  • Provides the fallback implementation of json_last_error_msg() available in PHP 5.5 and above.

  • Shortcut to Log::write.

  • Encode string for MIME header

  • Find position of first occurrence of a case-insensitive string.

  • Finds first occurrence of a string within another, case insensitive.

  • Get string length.

  • Find position of first occurrence of a string.

  • Finds the last occurrence of a character in a string within another.

  • Finds the last occurrence of a character in a string within another, case insensitive.

  • Finds position of last occurrence of a string within another, case insensitive

  • Find position of last occurrence of a string in a string.

  • Finds first occurrence of a string within another

  • Make a string lowercase

  • Make a string uppercase

  • Get part of string

  • Count the number of substring occurrences

  • Splits a dot syntax plugin name into its plugin and class name. If $name does not have a dot, then index 0 will be null.

  • print_r() convenience function

  • Sorts given $array by key $sortBy.

  • Outputs a stack trace based on the supplied options.

  • Recursively strips slashes from all values in an array

© 2005–2017 The Cake Software Foundation, Inc.
Licensed under the MIT License.
CakePHP is a registered trademark of Cake Software Foundation, Inc.
We are not endorsed by or affiliated with CakePHP.
https://api.cakephp.org/2.10/package-Cake.html